Commit a349cce983dfcaeaec798287bc8ba2a4234e3bca
1 parent
54c20cb285
Exists in
master
+ Ajouté les icones de navigation
+ déplacé des fichiers du common qui n'ont pas à être exportés
Showing 13 changed files with 60 additions and 16 deletions Side-by-side Diff
- templates/html/Default.html
- templates/html/Default_with_index.html
- templates/html/common/arrow-left-inact.png
- templates/html/common/arrow-left.png
- templates/html/common/arrow-right-inact.png
- templates/html/common/arrow-right.png
- templates/html/common/arrow-up-inact.png
- templates/html/common/arrow-up.png
- templates/html/common/hljs/highlight.pack.full.js
- templates/html/common/hljs/hljs_octave.js
- templates/html/common/util/highlight.pack.full.js
- templates/html/common/util/hljs_octave.js
- templates/html/common/zim-table-style.css
templates/html/Default.html
... | ... | @@ -49,23 +49,37 @@ |
49 | 49 | |
50 | 50 | <!-- Header --> |
51 | 51 | <div class='header'> |
52 | +<table class='navigation'> | |
53 | +<tr class='navigation'> | |
54 | +<td class='navigation'> | |
52 | 55 | [% IF navigation.prev %] |
53 | - [ <a href='[% uri(navigation.prev) %]'>[% gettext("Prev") %]</a> ] | |
56 | + <a href='[% uri(navigation.prev) %]'> | |
57 | + <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> | |
58 | + </a> | |
54 | 59 | [% ELSE %] |
55 | - [ <span class='insen'>[% gettext("Prev") %]</span> ] | |
60 | + <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> | |
56 | 61 | [% END %] |
57 | - | |
62 | +</td> | |
63 | +<td class='navigation'> | |
58 | 64 | [% IF links.get("index") %] |
59 | - [ <a href='[% uri(links.get("index")) %]'>[% gettext("Index") %]</a> ] | |
65 | + <a href='[% uri(links.get("index")) %]'> | |
66 | + <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> | |
67 | + </a> | |
60 | 68 | [% ELSE %] |
61 | - [ <span class='insen'>[% gettext("Index") %]</span> ] | |
69 | + <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> | |
62 | 70 | [% END %] |
63 | - | |
71 | +</td> | |
72 | +<td class='navigation'> | |
64 | 73 | [% IF navigation.next %] |
65 | - [ <a href='[% uri(navigation.next) %]'>[% gettext("Next") %]</a> ] | |
74 | + <a href='[% uri(navigation.next) %]'> | |
75 | + <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> | |
76 | + </a> | |
66 | 77 | [% ELSE %] |
67 | - [ <span class='insen'>[% gettext("Next") %]</span> ] | |
78 | + <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> | |
68 | 79 | [% END %] |
80 | +</td> | |
81 | +</tr> | |
82 | +</table> | |
69 | 83 | </div> |
70 | 84 | |
71 | 85 | <hr /> |
templates/html/Default_with_index.html
... | ... | @@ -58,23 +58,37 @@ |
58 | 58 | |
59 | 59 | <!-- Header --> |
60 | 60 | <div class='header'> |
61 | +<table class='navigation'> | |
62 | +<tr class='navigation'> | |
63 | +<td class='navigation'> | |
61 | 64 | [% IF navigation.prev %] |
62 | - [ <a href='[% uri(navigation.prev) %]'>[% gettext("Prev") %]</a> ] | |
65 | + <a href='[% uri(navigation.prev) %]'> | |
66 | + <img src="[% resource('common/arrow-left.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> | |
67 | + </a> | |
63 | 68 | [% ELSE %] |
64 | - [ <span class='insen'>[% gettext("Prev") %]</span> ] | |
69 | + <img src="[% resource('common/arrow-left-inact.png') %]" alt="[% gettext('Prev') %]" title="[% gettext('Prev') %]"> | |
65 | 70 | [% END %] |
66 | - | |
71 | +</td> | |
72 | +<td class='navigation'> | |
67 | 73 | [% IF links.get("index") %] |
68 | - [ <a href='[% uri(links.get("index")) %]'>[% gettext("Index") %]</a> ] | |
74 | + <a href='[% uri(links.get("index")) %]'> | |
75 | + <img src="[% resource('common/arrow-up.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> | |
76 | + </a> | |
69 | 77 | [% ELSE %] |
70 | - [ <span class='insen'>[% gettext("Index") %]</span> ] | |
78 | + <img src="[% resource('common/arrow-up-inact.png') %]" alt="[% gettext('Index') %]" title="[% gettext('Index') %]"> | |
71 | 79 | [% END %] |
72 | - | |
80 | +</td> | |
81 | +<td class='navigation'> | |
73 | 82 | [% IF navigation.next %] |
74 | - [ <a href='[% uri(navigation.next) %]'>[% gettext("Next") %]</a> ] | |
83 | + <a href='[% uri(navigation.next) %]'> | |
84 | + <img src="[% resource('common/arrow-right.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> | |
85 | + </a> | |
75 | 86 | [% ELSE %] |
76 | - [ <span class='insen'>[% gettext("Next") %]</span> ] | |
87 | + <img src="[% resource('common/arrow-right-inact.png') %]" alt="[% gettext('Next') %]" title="[% gettext('Next') %]"> | |
77 | 88 | [% END %] |
89 | +</td> | |
90 | +</tr> | |
91 | +</table> | |
78 | 92 | </div> |
79 | 93 | |
80 | 94 | <hr /> |
templates/html/common/arrow-left-inact.png
981 Bytes
templates/html/common/arrow-left.png
1.52 KB
templates/html/common/arrow-right-inact.png
1004 Bytes
templates/html/common/arrow-right.png
1.58 KB
templates/html/common/arrow-up-inact.png
935 Bytes
templates/html/common/arrow-up.png
1.48 KB
templates/html/common/hljs/highlight.pack.full.js
No preview for this file type
templates/html/common/hljs/hljs_octave.js
1 | - /* | |
2 | -Language: Matlab | |
3 | -Author: Denis Bardadym <bardadymchik@gmail.com> | |
4 | -Contributors: Eugene Nizhibitsky <nizhibitsky@ya.ru>, Egor Rogov <e.rogov@postgrespro.ru> | |
5 | -Category: scientific | |
6 | -*/ | |
7 | - | |
8 | -/* | |
9 | - Formal syntax is not published, helpful link: | |
10 | - https://github.com/kornilova-l/matlab-IntelliJ-plugin/blob/master/src/main/grammar/Matlab.bnf | |
11 | -*/ | |
12 | -hljs_octave = function(hljs) { | |
13 | - | |
14 | - var TRANSPOSE_RE = '(\'|\\.\')+'; | |
15 | - var TRANSPOSE = { | |
16 | - relevance: 0, | |
17 | - contains: [ | |
18 | - { begin: TRANSPOSE_RE } | |
19 | - ] | |
20 | - }; | |
21 | - | |
22 | - return { | |
23 | - keywords: { | |
24 | - keyword: | |
25 | - 'break case catch classdef continue else elseif end enumerated events for function ' + | |
26 | - 'global if methods otherwise parfor persistent properties return spmd switch try while', | |
27 | - built_in: | |
28 | - 'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' + | |
29 | - 'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' + | |
30 | - 'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' + | |
31 | - 'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' + | |
32 | - 'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' + | |
33 | - 'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint ' + | |
34 | - /*'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' +*/ | |
35 | - 'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' + | |
36 | - 'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' + | |
37 | - 'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' + | |
38 | - 'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' + | |
39 | - 'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' + | |
40 | - 'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan ' + | |
41 | - 'isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal ' + | |
42 | - 'rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ' + | |
43 | - 'readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun ' + | |
44 | - 'legend intersect ismember procrustes hold num2cell ' | |
45 | - }, | |
46 | - illegal: '(//|"|#|/\\*|\\s+/\\w+)', | |
47 | - contains: [ | |
48 | - { | |
49 | - className: 'function', | |
50 | - beginKeywords: 'function', end: '$', | |
51 | - contains: [ | |
52 | - hljs.UNDERSCORE_TITLE_MODE, | |
53 | - { | |
54 | - className: 'params', | |
55 | - variants: [ | |
56 | - {begin: '\\(', end: '\\)'}, | |
57 | - {begin: '\\[', end: '\\]'} | |
58 | - ] | |
59 | - } | |
60 | - ] | |
61 | - }, | |
62 | - { | |
63 | - className: 'built_in', | |
64 | - begin: /true|false/, | |
65 | - relevance: 0, | |
66 | - starts: TRANSPOSE | |
67 | - }, | |
68 | - { | |
69 | - begin: '[a-zA-Z][a-zA-Z_0-9]*' + TRANSPOSE_RE, | |
70 | - relevance: 0 | |
71 | - }, | |
72 | - { | |
73 | - className: 'number', | |
74 | - begin: hljs.C_NUMBER_RE, | |
75 | - relevance: 0, | |
76 | - starts: TRANSPOSE | |
77 | - }, | |
78 | - { | |
79 | - className: 'string', | |
80 | - begin: '\'', end: '\'', | |
81 | - contains: [ | |
82 | - hljs.BACKSLASH_ESCAPE, | |
83 | - {begin: '\'\''}] | |
84 | - }, | |
85 | - { | |
86 | - begin: /\]|}|\)/, | |
87 | - relevance: 0, | |
88 | - starts: TRANSPOSE | |
89 | - }, | |
90 | - { | |
91 | - className: 'string', | |
92 | - begin: '"', end: '"', | |
93 | - contains: [ | |
94 | - hljs.BACKSLASH_ESCAPE, | |
95 | - {begin: '""'} | |
96 | - ], | |
97 | - starts: TRANSPOSE | |
98 | - }, | |
99 | - hljs.COMMENT('^\\s*\\%\\{\\s*$', '^\\s*\\%\\}\\s*$'), | |
100 | - hljs.COMMENT('\\%', '$') | |
101 | - ] | |
102 | - }; | |
103 | -} |
templates/html/common/util/highlight.pack.full.js
No preview for this file type
templates/html/common/util/hljs_octave.js
1 | + /* | |
2 | +Language: Matlab | |
3 | +Author: Denis Bardadym <bardadymchik@gmail.com> | |
4 | +Contributors: Eugene Nizhibitsky <nizhibitsky@ya.ru>, Egor Rogov <e.rogov@postgrespro.ru> | |
5 | +Category: scientific | |
6 | +*/ | |
7 | + | |
8 | +/* | |
9 | + Formal syntax is not published, helpful link: | |
10 | + https://github.com/kornilova-l/matlab-IntelliJ-plugin/blob/master/src/main/grammar/Matlab.bnf | |
11 | +*/ | |
12 | +hljs_octave = function(hljs) { | |
13 | + | |
14 | + var TRANSPOSE_RE = '(\'|\\.\')+'; | |
15 | + var TRANSPOSE = { | |
16 | + relevance: 0, | |
17 | + contains: [ | |
18 | + { begin: TRANSPOSE_RE } | |
19 | + ] | |
20 | + }; | |
21 | + | |
22 | + return { | |
23 | + keywords: { | |
24 | + keyword: | |
25 | + 'break case catch classdef continue else elseif end enumerated events for function ' + | |
26 | + 'global if methods otherwise parfor persistent properties return spmd switch try while', | |
27 | + built_in: | |
28 | + 'sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan ' + | |
29 | + 'atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot ' + | |
30 | + 'cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog ' + | |
31 | + 'realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal ' + | |
32 | + 'cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli ' + | |
33 | + 'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint ' + | |
34 | + /*'besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma ' +*/ | |
35 | + 'gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms ' + | |
36 | + 'nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones ' + | |
37 | + 'eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ' + | |
38 | + 'ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril ' + | |
39 | + 'triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute ' + | |
40 | + 'shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i inf nan ' + | |
41 | + 'isnan isinf isfinite j why compan gallery hadamard hankel hilb invhilb magic pascal ' + | |
42 | + 'rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table ' + | |
43 | + 'readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun ' + | |
44 | + 'legend intersect ismember procrustes hold num2cell ' | |
45 | + }, | |
46 | + illegal: '(//|"|#|/\\*|\\s+/\\w+)', | |
47 | + contains: [ | |
48 | + { | |
49 | + className: 'function', | |
50 | + beginKeywords: 'function', end: '$', | |
51 | + contains: [ | |
52 | + hljs.UNDERSCORE_TITLE_MODE, | |
53 | + { | |
54 | + className: 'params', | |
55 | + variants: [ | |
56 | + {begin: '\\(', end: '\\)'}, | |
57 | + {begin: '\\[', end: '\\]'} | |
58 | + ] | |
59 | + } | |
60 | + ] | |
61 | + }, | |
62 | + { | |
63 | + className: 'built_in', | |
64 | + begin: /true|false/, | |
65 | + relevance: 0, | |
66 | + starts: TRANSPOSE | |
67 | + }, | |
68 | + { | |
69 | + begin: '[a-zA-Z][a-zA-Z_0-9]*' + TRANSPOSE_RE, | |
70 | + relevance: 0 | |
71 | + }, | |
72 | + { | |
73 | + className: 'number', | |
74 | + begin: hljs.C_NUMBER_RE, | |
75 | + relevance: 0, | |
76 | + starts: TRANSPOSE | |
77 | + }, | |
78 | + { | |
79 | + className: 'string', | |
80 | + begin: '\'', end: '\'', | |
81 | + contains: [ | |
82 | + hljs.BACKSLASH_ESCAPE, | |
83 | + {begin: '\'\''}] | |
84 | + }, | |
85 | + { | |
86 | + begin: /\]|}|\)/, | |
87 | + relevance: 0, | |
88 | + starts: TRANSPOSE | |
89 | + }, | |
90 | + { | |
91 | + className: 'string', | |
92 | + begin: '"', end: '"', | |
93 | + contains: [ | |
94 | + hljs.BACKSLASH_ESCAPE, | |
95 | + {begin: '""'} | |
96 | + ], | |
97 | + starts: TRANSPOSE | |
98 | + }, | |
99 | + hljs.COMMENT('^\\s*\\%\\{\\s*$', '^\\s*\\%\\}\\s*$'), | |
100 | + hljs.COMMENT('\\%', '$') | |
101 | + ] | |
102 | + }; | |
103 | +} |
templates/html/common/zim-table-style.css
... | ... | @@ -31,4 +31,20 @@ |
31 | 31 | background-color: #bbb; |
32 | 32 | color: black; |
33 | 33 | } |
34 | + | |
35 | + table.navigation { | |
36 | + border-collapse: collapse; | |
37 | + width: auto; | |
38 | + margin-left: 0; | |
39 | + margin-right: auto; | |
40 | + } | |
41 | + | |
42 | + td.navigation, th.navigation { | |
43 | + border: 0; | |
44 | + padding: 0; | |
45 | + } | |
46 | + | |
47 | + tr.navigation:hover { | |
48 | + background-color: white; | |
49 | + } |