##// END OF EJS Templates
hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara -
r13863:b602ac02 stable
parent child Browse files
Show More
@@ -1,5 +1,5 b''
1 <div>
1 <div>
2 <a class="title" href="{url}rev/{node|short}{sessionvars%urlparameter}"><span class="age">{date|age}</span>{desc|strip|firstline|escape|nonempty}<span class="logtags"> {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span></a>
2 <a class="title" href="{url}rev/{node|short}{sessionvars%urlparameter}"><span class="age">{date|age}</span>{desc|strip|firstline|escape|nonempty}<span class="logtags"> {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span></a>
3 </div>
3 </div>
4 <div class="title_text">
4 <div class="title_text">
5 <div class="log_link">
5 <div class="log_link">
@@ -26,7 +26,7 b' changeset |'
26 </div>
26 </div>
27
27
28 <div>
28 <div>
29 <a class="title" href="{url}raw-rev/{node|short}">{desc|strip|escape|firstline|nonempty} <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span></a>
29 <a class="title" href="{url}raw-rev/{node|short}">{desc|strip|escape|firstline|nonempty} <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span></a>
30 </div>
30 </div>
31 <div class="title_text">
31 <div class="title_text">
32 <table cellspacing="0">
32 <table cellspacing="0">
@@ -85,7 +85,7 b' graph.vertex = function(x, y, color, par'
85 item = item.replace(/_DATE/, cur[5]);
85 item = item.replace(/_DATE/, cur[5]);
86
86
87 var tagspan = '';
87 var tagspan = '';
88 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) \{
88 if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) \{
89 tagspan = '<span class="logtags">';
89 tagspan = '<span class="logtags">';
90 if (cur[6][1]) \{
90 if (cur[6][1]) \{
91 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
91 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
@@ -100,6 +100,12 b' graph.vertex = function(x, y, color, par'
100 tagspan += '<span class="tagtag">' + tag + '</span> ';
100 tagspan += '<span class="tagtag">' + tag + '</span> ';
101 }
101 }
102 }
102 }
103 if (cur[8].length) \{
104 for (var t in cur[8]) \{
105 var bookmark = cur[8][t];
106 tagspan += '<span class="bookmarktag">' + bookmark + '</span> ';
107 }
108 }
103 tagspan += '</span>';
109 tagspan += '</span>';
104 }
110 }
105
111
@@ -24,7 +24,7 b' files |'
24 <br/>
24 <br/>
25 </div>
25 </div>
26
26
27 <div class="title">{path|escape} <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span></div>
27 <div class="title">{path|escape} <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span></div>
28 <table cellspacing="0">
28 <table cellspacing="0">
29 <tr class="parity{upparity}">
29 <tr class="parity{upparity}">
30 <td style="font-family:monospace">drwxr-xr-x</td>
30 <td style="font-family:monospace">drwxr-xr-x</td>
@@ -214,6 +214,7 b' graph = graph.tmpl'
214 tagtag = '<span class="tagtag" title="{name}">{name}</span> '
214 tagtag = '<span class="tagtag" title="{name}">{name}</span> '
215 branchtag = '<span class="branchtag" title="{name}">{name}</span> '
215 branchtag = '<span class="branchtag" title="{name}">{name}</span> '
216 inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> '
216 inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> '
217 bookmarktag = '<span class="bookmarktag" title="{name}">{name}</span> '
217 shortlogentry = '
218 shortlogentry = '
218 <tr class="parity{parity}">
219 <tr class="parity{parity}">
219 <td class="age"><i>{date|age}</i></td>
220 <td class="age"><i>{date|age}</i></td>
@@ -221,7 +222,7 b" shortlogentry = '"
221 <td>
222 <td>
222 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">
223 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">
223 <b>{desc|strip|firstline|escape|nonempty}</b>
224 <b>{desc|strip|firstline|escape|nonempty}</b>
224 <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}</span>
225 <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>
225 </a>
226 </a>
226 </td>
227 </td>
227 <td class="link" nowrap>
228 <td class="link" nowrap>
@@ -80,6 +80,10 b' span.logtags span.inbranchtag {'
80 background-color: #d5dde6;
80 background-color: #d5dde6;
81 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
81 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
82 }
82 }
83 span.logtags span.bookmarktag {
84 background-color: #afdffa;
85 border-color: #ccecff #46ace6 #46ace6 #ccecff;
86 }
83
87
84 /* Graph */
88 /* Graph */
85 div#wrapper {
89 div#wrapper {
@@ -662,7 +662,7 b' Overviews'
662 <td>
662 <td>
663 <a class="list" href="/rev/1d22e65f027e?style=gitweb">
663 <a class="list" href="/rev/1d22e65f027e?style=gitweb">
664 <b>branch</b>
664 <b>branch</b>
665 <span class="logtags"><span class="branchtag" title="stable">stable</span> <span class="tagtag" title="tip">tip</span> </span>
665 <span class="logtags"><span class="branchtag" title="stable">stable</span> <span class="tagtag" title="tip">tip</span> <span class="bookmarktag" title="something">something</span> </span>
666 </a>
666 </a>
667 </td>
667 </td>
668 <td class="link" nowrap>
668 <td class="link" nowrap>
@@ -853,7 +853,7 b' Overviews'
853 item = item.replace(/_DATE/, cur[5]);
853 item = item.replace(/_DATE/, cur[5]);
854
854
855 var tagspan = '';
855 var tagspan = '';
856 if (cur[7].length || (cur[6][0] != 'default' || cur[6][1])) {
856 if (cur[7].length || cur[8].length || (cur[6][0] != 'default' || cur[6][1])) {
857 tagspan = '<span class="logtags">';
857 tagspan = '<span class="logtags">';
858 if (cur[6][1]) {
858 if (cur[6][1]) {
859 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
859 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
@@ -868,6 +868,12 b' Overviews'
868 tagspan += '<span class="tagtag">' + tag + '</span> ';
868 tagspan += '<span class="tagtag">' + tag + '</span> ';
869 }
869 }
870 }
870 }
871 if (cur[8].length) {
872 for (var t in cur[8]) {
873 var bookmark = cur[8][t];
874 tagspan += '<span class="bookmarktag">' + bookmark + '</span> ';
875 }
876 }
871 tagspan += '</span>';
877 tagspan += '</span>';
872 }
878 }
873
879
@@ -383,6 +383,10 b' static file'
383 background-color: #d5dde6;
383 background-color: #d5dde6;
384 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
384 border-color: #e3ecf4 #9398f4 #9398f4 #e3ecf4;
385 }
385 }
386 span.logtags span.bookmarktag {
387 background-color: #afdffa;
388 border-color: #ccecff #46ace6 #46ace6 #ccecff;
389 }
386
390
387 /* Graph */
391 /* Graph */
388 div#wrapper {
392 div#wrapper {
General Comments 0
You need to be logged in to leave comments. Login now