##// 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 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 3 </div>
4 4 <div class="title_text">
5 5 <div class="log_link">
@@ -26,7 +26,7 b' changeset |'
26 26 </div>
27 27
28 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 30 </div>
31 31 <div class="title_text">
32 32 <table cellspacing="0">
@@ -85,7 +85,7 b' graph.vertex = function(x, y, color, par'
85 85 item = item.replace(/_DATE/, cur[5]);
86 86
87 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 89 tagspan = '<span class="logtags">';
90 90 if (cur[6][1]) \{
91 91 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
@@ -100,6 +100,12 b' graph.vertex = function(x, y, color, par'
100 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 109 tagspan += '</span>';
104 110 }
105 111
@@ -24,7 +24,7 b' files |'
24 24 <br/>
25 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 28 <table cellspacing="0">
29 29 <tr class="parity{upparity}">
30 30 <td style="font-family:monospace">drwxr-xr-x</td>
@@ -214,6 +214,7 b' graph = graph.tmpl'
214 214 tagtag = '<span class="tagtag" title="{name}">{name}</span> '
215 215 branchtag = '<span class="branchtag" title="{name}">{name}</span> '
216 216 inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> '
217 bookmarktag = '<span class="bookmarktag" title="{name}">{name}</span> '
217 218 shortlogentry = '
218 219 <tr class="parity{parity}">
219 220 <td class="age"><i>{date|age}</i></td>
@@ -221,7 +222,7 b" shortlogentry = '"
221 222 <td>
222 223 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">
223 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 226 </a>
226 227 </td>
227 228 <td class="link" nowrap>
@@ -80,6 +80,10 b' span.logtags span.inbranchtag {'
80 80 background-color: #d5dde6;
81 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 88 /* Graph */
85 89 div#wrapper {
@@ -662,7 +662,7 b' Overviews'
662 662 <td>
663 663 <a class="list" href="/rev/1d22e65f027e?style=gitweb">
664 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 666 </a>
667 667 </td>
668 668 <td class="link" nowrap>
@@ -853,7 +853,7 b' Overviews'
853 853 item = item.replace(/_DATE/, cur[5]);
854 854
855 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 857 tagspan = '<span class="logtags">';
858 858 if (cur[6][1]) {
859 859 tagspan += '<span class="branchtag" title="' + cur[6][0] + '">';
@@ -868,6 +868,12 b' Overviews'
868 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 877 tagspan += '</span>';
872 878 }
873 879
@@ -383,6 +383,10 b' static file'
383 383 background-color: #d5dde6;
384 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 391 /* Graph */
388 392 div#wrapper {
General Comments 0
You need to be logged in to leave comments. Login now