##// END OF EJS Templates
Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro -
r3538:9bf92758 beta
parent child Browse files
Show More
@@ -2,6 +2,11 b''
2 * Stylesheets for the context bar
2 * Stylesheets for the context bar
3 */
3 */
4
4
5 #quick .repo_switcher { background-image: url("../images/icons/database.png"); }
6 #quick .journal { background-image: url("../images/icons/book.png"); }
7 #quick .search { background-image: url("../images/icons/search_16.png"); }
8 #quick .admin { background-image: url("../images/icons/cog_edit.png"); }
9
5 #context-bar button.follow { background-image: url("../images/icons/heart.png"); }
10 #context-bar button.follow { background-image: url("../images/icons/heart.png"); }
6 #context-bar button.following { background-image: url("../images/icons/heart_delete.png"); }
11 #context-bar button.following { background-image: url("../images/icons/heart_delete.png"); }
7 #context-bar a.fork { background-image: url("../images/icons/arrow_divide.png"); }
12 #context-bar a.fork { background-image: url("../images/icons/arrow_divide.png"); }
@@ -39,16 +44,18 b''
39 overflow: visible;
44 overflow: visible;
40 }
45 }
41
46
47 #header #header-inner #quick a,
42 #content #context-bar,
48 #content #context-bar,
43 #content #context-bar a,
49 #content #context-bar a,
44 #content #context-bar button {
50 #content #context-bar button {
45 color: #FFFFFF;
51 color: #FFFFFF;
46 }
52 }
47
53
54 #header #header-inner #quick a:hover,
48 #content #context-bar a:hover,
55 #content #context-bar a:hover,
49 #content #context-bar button:hover {
56 #content #context-bar button:hover {
50 text-decoration: none;
57 text-decoration: none;
51 color: #bfe3ff;
58 /* color: #bfe3ff;*/
52 }
59 }
53
60
54 #content #context-bar .icon {
61 #content #context-bar .icon {
@@ -68,6 +75,7 b' ul.horizontal-list > li {'
68 position: relative;
75 position: relative;
69 }
76 }
70
77
78 #header #header-inner #quick ul,
71 ul.horizontal-list > li ul {
79 ul.horizontal-list > li ul {
72 position: absolute;
80 position: absolute;
73 display: none;
81 display: none;
@@ -75,10 +83,12 b' ul.horizontal-list > li ul {'
75 z-index: 999;
83 z-index: 999;
76 }
84 }
77
85
86 #header #header-inner #quick li:hover > ul,
78 ul.horizontal-list li:hover > ul {
87 ul.horizontal-list li:hover > ul {
79 display: block;
88 display: block;
80 }
89 }
81
90
91 #header #header-inner #quick li ul li,
82 ul.horizontal-list ul li {
92 ul.horizontal-list ul li {
83 position: relative;
93 position: relative;
84 border-bottom: 1px solid rgba(0,0,0,0.1);
94 border-bottom: 1px solid rgba(0,0,0,0.1);
@@ -95,14 +105,17 b' ul.horizontal-list > li ul ul {'
95 overflow-y:auto;
105 overflow-y:auto;
96 }
106 }
97
107
98 ul.horizontal-list > li a {
108 #header #header-inner #quick ul a,
109 ul.horizontal-list li a {
99 white-space: nowrap;
110 white-space: nowrap;
100 }
111 }
101
112
102 #breadcrumbs {
113 #breadcrumbs {
103 float:left;
114 float:left;
104 padding: 12px 0;
115 padding: 5px 0;
116 padding-left: 5px;
105 font-weight: bold;
117 font-weight: bold;
118 font-size: 14px;
106 }
119 }
107
120
108 #breadcrumbs span{
121 #breadcrumbs span{
@@ -114,13 +127,15 b' ul.horizontal-list > li a {'
114 position: relative;
127 position: relative;
115 overflow: hidden;
128 overflow: hidden;
116 border-bottom: 1px solid #003162;
129 border-bottom: 1px solid #003162;
117 padding: 10px;
130 padding: 5px;
118 }
131 }
119
132
133 /*#quick,*/
134 #header #header-inner #quick ul,
120 #revision-changer,
135 #revision-changer,
121 #context-pages,
136 #context-pages,
122 #context-pages ul,
137 #context-pages ul /*,
123 ul#context-actions {
138 ul#context-actions */{
124 background: #3b6998; /* Old browsers */
139 background: #3b6998; /* Old browsers */
125 background: -moz-linear-gradient(top, #4574a2 0%, #2f5d8b 100%); /* FF3.6+ */
140 background: -moz-linear-gradient(top, #4574a2 0%, #2f5d8b 100%); /* FF3.6+ */
126 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4574a2), color-stop(100%,#2f5d8b)); /* Chrome,Safari4+ */
141 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4574a2), color-stop(100%,#2f5d8b)); /* Chrome,Safari4+ */
@@ -128,9 +143,10 b' ul#context-actions {'
128 background: -o-linear-gradient(top, #4574a2 0%, #2f5d8b 100%); /* Opera 11.10+ */
143 background: -o-linear-gradient(top, #4574a2 0%, #2f5d8b 100%); /* Opera 11.10+ */
129 background: -ms-linear-gradient(top, #4574a2 0%, #2f5d8b 100%); /* IE10+ */
144 background: -ms-linear-gradient(top, #4574a2 0%, #2f5d8b 100%); /* IE10+ */
130 background: linear-gradient(to bottom, #4574a2 0%, #2f5d8b 100%); /* W3C */
145 background: linear-gradient(to bottom, #4574a2 0%, #2f5d8b 100%); /* W3C */
131 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4574a2', endColorstr='#2f5d8b',GradientType=0 ); /* IE6-9 */
146 /*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4574a2', endColorstr='#2f5d8b',GradientType=0 ); /* IE6-9 */*/
132 }
147 }
133
148
149 #header #header-inner #quick a,
134 #context-actions a,
150 #context-actions a,
135 #context-pages a {
151 #context-pages a {
136 background-repeat: no-repeat;
152 background-repeat: no-repeat;
@@ -138,6 +154,7 b' ul#context-actions {'
138 padding-left: 30px;
154 padding-left: 30px;
139 }
155 }
140
156
157 #quick a,
141 #context-pages ul ul a{
158 #context-pages ul ul a{
142 padding-left: 10px;
159 padding-left: 10px;
143 }
160 }
@@ -146,11 +163,10 b' ul#context-actions {'
146 display: inline-block;
163 display: inline-block;
147 float: right;
164 float: right;
148 border-radius: 4px;
165 border-radius: 4px;
149 background-color:#3b6998;
166 /*background-color:#3b6998;*/
150 background-image: linear-gradient(top, #4574a2 0%, #2f5d8b 100%);
167 background-image: linear-gradient(top, #4574a2 0%, #2f5d8b 100%);
151 padding: 5px;
168 /* padding: 5px;*/
152 }
169 }
153
154 #content ul#context-actions li {
170 #content ul#context-actions li {
155 padding: 0px;
171 padding: 0px;
156 border-right: 1px solid rgba(0,0,0,0.1);
172 border-right: 1px solid rgba(0,0,0,0.1);
@@ -164,31 +180,38 b' ul#context-actions {'
164 background: none;
180 background: none;
165 border: none;
181 border: none;
166 margin: 0px;
182 margin: 0px;
167 height: 13px;
183 height: auto;
168 padding: 3px 7px;
184 padding: 10px 10px 10px 30px;
169 background-repeat: no-repeat;
185 background-repeat: no-repeat;
170 background-position: 50% 3px;
186 background-position: 10px 50%;
171 padding-top: 24px;
187 font-size: 1em;
188 /*padding-top: 24px;*/
172 }
189 }
173
190
174 #context-actions button{
191 #context-actions a {
192 padding: 11px 10px 12px 30px;
193 }
194
195 /*#context-actions button{
175 padding-top: 22px;
196 padding-top: 22px;
176 height: 40px;
197 height: 40px;
177 }
198 }*/
178
199 #header #header-inner #quick li:hover,
179 #revision-changer:hover,
200 #revision-changer:hover,
180 #context-pages li:hover,
201 #context-pages li:hover,
181 #context-actions li:hover,
202 #context-actions li:hover,
182 #content #context-actions li:hover {
203 #content #context-actions li:hover,
204 #header #header-inner #quick li.current,
205 #context-pages li.current {
183 /*background: rgba(255,255,255,0.2);*/
206 /*background: rgba(255,255,255,0.2);*/
184 background: #6388ad; /* Old browsers */
207 background: #6388ad; /* Old browsers */
185 background: -moz-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
208 background: -moz-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* FF3.6+ */
186 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
209 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
187 background: -webkit-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
210 background: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* Chrome10+,Safari5.1+ */
188 background: -o-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); /* Opera 11.10+ */
211 background: -o-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* Opera 11.10+ */
189 background: -ms-linear-gradient(top, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); /* IE10+ */
212 background: -ms-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* IE10+ */
190 background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); /* W3C */
213 background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* W3C */
191 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#88bfe8', endColorstr='#70b0e0',GradientType=0 ); /* IE6-9 */
214 /*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#88bfe8', endColorstr='#70b0e0',GradientType=0 ); /* IE6-9 */*/
192
215
193 background-image: -webkit-gradient(linear, left top, left bottom, rgb(255,255,255) 0%, rgb(255,255,255) 100%);
216 background-image: -webkit-gradient(linear, left top, left bottom, rgb(255,255,255) 0%, rgb(255,255,255) 100%);
194
217
@@ -246,7 +269,7 b' ul#context-actions {'
246 /* overflow: hidden;*/
269 /* overflow: hidden;*/
247 }
270 }
248
271
249 #context-pages li.current{
272 #context-pages li.curreasdnt{
250 background: #535353; /* Old browsers */
273 background: #535353; /* Old browsers */
251 background: -moz-linear-gradient(top, #5d5d5d 0%, #484848 100%); /* FF3.6+ */
274 background: -moz-linear-gradient(top, #5d5d5d 0%, #484848 100%); /* FF3.6+ */
252 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5d5d5d), color-stop(100%,#484848)); /* Chrome,Safari4+ */
275 background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#5d5d5d), color-stop(100%,#484848)); /* Chrome,Safari4+ */
@@ -254,23 +277,32 b' ul#context-actions {'
254 background: -o-linear-gradient(top, #5d5d5d 0%, #484848 100%); /* Opera 11.10+ */
277 background: -o-linear-gradient(top, #5d5d5d 0%, #484848 100%); /* Opera 11.10+ */
255 background: -ms-linear-gradient(top, #5d5d5d 0%, #484848 100%); /* IE10+ */
278 background: -ms-linear-gradient(top, #5d5d5d 0%, #484848 100%); /* IE10+ */
256 background: linear-gradient(to bottom, #5d5d5d 0%, #484848 100%); /* W3C */
279 background: linear-gradient(to bottom, #5d5d5d 0%, #484848 100%); /* W3C */
257 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5d5d5d', endColorstr='#484848',GradientType=0 ); /* IE6-9 */
258 }
280 }
259
281
260 #content #context-pages .icon {
282 #content #context-pages .icon {
261 margin-right:5px;
283 margin-right:5px;
262 }
284 }
263
285
286 #header #header-inner #quick li,
264 #content #context-pages li {
287 #content #context-pages li {
265 border-right: 1px solid rgba(0,0,0,0.1);
288 border-right: 1px solid rgba(0,0,0,0.1);
266 border-left: 1px solid rgba(255,255,255,0.1);
289 border-left: 1px solid rgba(255,255,255,0.1);
267 padding: 0;
290 padding: 0;
268 }
291 }
269
292 #header #header-inner #quick li:last-child,
270 #content #context-pages li:last-child {
293 #content #context-pages li:last-child {
271 border-right:none;
294 border-right:none;
272 }
295 }
273
296
297 #header #header-inner #quick li:first-child{
298 border-left:none;
299 }
300
301 #header #header-inner #quick > li:first-child > a{
302 border-radius: 4px 0 0 4px;
303 }
304
305 #header #header-inner #quick a,
274 #context-pages a,
306 #context-pages a,
275 #context-pages .admin_menu a{
307 #context-pages .admin_menu a{
276 display: block;
308 display: block;
@@ -279,14 +311,27 b' ul#context-actions {'
279 line-height: 35px;
311 line-height: 35px;
280 }
312 }
281
313
314 #header #header-inner #quick a#quick_login_link {
315 padding-left: 0px;
316 }
317
318 #header #header-inner #quick a {
319 overflow: hidden;
320 }
321 #quick a.childs:after,
282 #revision-changer:before,
322 #revision-changer:before,
283 #context-pages a.childs:after,
323 #context-pages a.childs:after,
284 #context-pages a.dropdown:after {
324 #context-pages a.dropdown:after {
285 content: ' \25BE';
325 content: ' \25BE';
286 }
326 }
327 #context-pages a.childs {
328 padding-right: 20px;
329 }
287 #context-pages a.childs:after{
330 #context-pages a.childs:after{
331 position: absolute;
288 float: right;
332 float: right;
289 padding-left: 5px;
333 padding-left: 5px;
334 padding-right: 5px;
290 }
335 }
291
336
292 #revision-changer:before {
337 #revision-changer:before {
@@ -401,10 +401,11 b' div:hover > a.permalink {'
401 float: right;
401 float: right;
402 list-style-type: none;
402 list-style-type: none;
403 list-style-position: outside;
403 list-style-position: outside;
404 margin: 8px 8px 0 0;
404 margin: 4px 8px 0 0;
405 padding: 0;
405 padding: 0;
406 }
406 border-radius: 4px;
407
407 }
408 /*
408 #header #header-inner #quick > li {
409 #header #header-inner #quick > li {
409 position: relative;
410 position: relative;
410 float: left;
411 float: left;
@@ -428,20 +429,20 b' div:hover > a.permalink {'
428 -khtml-border-radius: 4px 4px 4px 4px;
429 -khtml-border-radius: 4px 4px 4px 4px;
429 border-radius: 4px 4px 4px 4px;
430 border-radius: 4px 4px 4px 4px;
430 }
431 }
431
432 */
432 #header #header-inner #quick li span.short {
433 #header #header-inner #quick li span.short {
433 padding: 9px 6px 8px 6px;
434 padding: 9px 6px 8px 6px;
434 }
435 }
435
436
436 #header #header-inner #quick li span {
437 #header #header-inner #quick li span {
437 top: 0;
438 /*top: 0;
438 right: 0;
439 right: 0;
439 height: 1%;
440 height: 1%;*/
440 display: block;
441 display: inline;
441 float: left;
442 /*float: left;*/
442 border-left: 1px solid #3f6f9f;
443 /*border-left: 1px solid #3f6f9f;*/
443 margin: 0;
444 margin: 0;
444 padding: 10px 12px 8px 10px;
445 /*padding: 10px 12px 8px 10px;*/
445 }
446 }
446
447
447 #header #header-inner #quick li span.normal {
448 #header #header-inner #quick li span.normal {
@@ -450,13 +451,9 b' div:hover > a.permalink {'
450 }
451 }
451
452
452 #header #header-inner #quick li span.icon {
453 #header #header-inner #quick li span.icon {
453 top: 0;
454
454 left: 0;
455 border-left: none;
455 border-left: none;
456 border-right: 1px solid #2e5c89;
456 padding-left: 10px ;
457 padding: 8px 6px 4px;
458 min-width: 16px;
459 min-height: 16px;
460 }
457 }
461
458
462 #header #header-inner #quick li span.icon_short {
459 #header #header-inner #quick li span.icon_short {
@@ -468,19 +465,21 b' div:hover > a.permalink {'
468 }
465 }
469
466
470 #header #header-inner #quick li span.icon img, #header #header-inner #quick li span.icon_short img {
467 #header #header-inner #quick li span.icon img, #header #header-inner #quick li span.icon_short img {
471 margin: 0px -2px 0px 0px;
468 vertical-align: middle;
472 }
469 margin-bottom: 2px;
473
470 }
474 #header #header-inner #quick > li.current > a,
471
475 #header #header-inner #quick > li > a:hover {
472 /*#header #header-inner #quick > li.current > a,
473 #header #header-inner #quick > li > a:hover*/ {
476 background-color: #4e4e4e;
474 background-color: #4e4e4e;
477 }
475 }
478
476 /*
479 #header #header-inner #quick li.current a span,
477 #header #header-inner #quick li.current a span,
480 #header #header-inner #quick li a:hover span {
478 #header #header-inner #quick li a:hover span {
481 border-left: 1px solid #545454;
479 border-left: 1px solid #545454;
482 }
480 }
483
481 */
482 /*
484 #header #header-inner #quick li.current a span.icon,
483 #header #header-inner #quick li.current a span.icon,
485 #header #header-inner #quick li.current a span.icon_short,
484 #header #header-inner #quick li.current a span.icon_short,
486 #header #header-inner #quick li a:hover span.icon,
485 #header #header-inner #quick li a:hover span.icon,
@@ -488,7 +487,7 b' div:hover > a.permalink {'
488 border-left: none;
487 border-left: none;
489 border-right: 1px solid #464646;
488 border-right: 1px solid #464646;
490 }
489 }
491
490 */
492 #header #header-inner #quick ul.repo_switcher {
491 #header #header-inner #quick ul.repo_switcher {
493 max-height: 275px;
492 max-height: 275px;
494 overflow-x: hidden;
493 overflow-x: hidden;
@@ -995,6 +994,7 b' tbody .yui-dt-editable { cursor: pointer'
995 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', endColorstr='#00376e', GradientType=0 );
994 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', endColorstr='#00376e', GradientType=0 );
996 margin: 0 0 20px;
995 margin: 0 0 20px;
997 padding: 0;
996 padding: 0;
997 border-radius: 4px 4px 0 0;
998 }
998 }
999
999
1000 #content div.box div.title h5 {
1000 #content div.box div.title h5 {
@@ -1733,7 +1733,7 b' div.form div.fields div.field div.button'
1733
1733
1734 #summary-menu-stats{
1734 #summary-menu-stats{
1735 float: left;
1735 float: left;
1736 width: 200px;
1736 width: 180px;
1737 position: absolute;
1737 position: absolute;
1738 top: 0;
1738 top: 0;
1739 right: 0;
1739 right: 0;
@@ -1749,7 +1749,6 b' div.form div.fields div.field div.button'
1749
1749
1750 #content #summary-menu-stats li {
1750 #content #summary-menu-stats li {
1751 border-top: 1px solid #d1d1d1;
1751 border-top: 1px solid #d1d1d1;
1752 line-height: 32px;
1753 padding: 0;
1752 padding: 0;
1754 }
1753 }
1755
1754
@@ -1769,14 +1768,19 b' div.form div.fields div.field div.button'
1769
1768
1770 #summary-menu-stats a {
1769 #summary-menu-stats a {
1771 display: block;
1770 display: block;
1772 color: #000000;
1771 /*color: #000000;*/
1773 padding: 0 30px;
1772 padding: 12px 30px;
1774 background-repeat: no-repeat;
1773 background-repeat: no-repeat;
1775 background-position: 10px 50%;
1774 background-position: 10px 50%;
1776 }
1775 padding-right: 10px;
1776 }
1777
1777
1778
1778 #repo_size_2 {
1779 #repo_size_2 {
1779 margin-left: 25px;
1780 margin-left: 30px;
1781 display: block;
1782 padding-right: 10px;
1783 padding-bottom: 7px;
1780 }
1784 }
1781
1785
1782 #summary-menu-stats a:hover {
1786 #summary-menu-stats a:hover {
@@ -2561,6 +2565,7 b' h3.files_location {'
2561 white-space: nowrap;
2565 white-space: nowrap;
2562 height: 31px;
2566 height: 31px;
2563 border-color: #cdcdcd;
2567 border-color: #cdcdcd;
2568 text-align: left;
2564 }
2569 }
2565
2570
2566 #graph_content .container .author {
2571 #graph_content .container .author {
@@ -2568,7 +2573,7 b' h3.files_location {'
2568 }
2573 }
2569
2574
2570 #graph_content .container .hash{
2575 #graph_content .container .hash{
2571 width: 90px;
2576 width: 85px;
2572 font-size: 0.85em;
2577 font-size: 0.85em;
2573 }
2578 }
2574
2579
@@ -2644,7 +2649,7 b' h3.files_location {'
2644 #graph_content .comments-container {
2649 #graph_content .comments-container {
2645 /*width: 40px;*/
2650 /*width: 40px;*/
2646 margin: 0.8em 0;
2651 margin: 0.8em 0;
2647 margin-left: 0.5em;
2652 margin-right: 0.5em;
2648 }
2653 }
2649
2654
2650 #graph_content .tagcontainer {
2655 #graph_content .tagcontainer {
@@ -4561,22 +4566,22 b' form.comment-inline-form {'
4561 margin:2px 0px 8px 5px !important
4566 margin:2px 0px 8px 5px !important
4562 }
4567 }
4563
4568
4564
4565 .notification-paginator {
4569 .notification-paginator {
4566 padding: 0px 0px 4px 16px;
4570 padding: 0px 0px 4px 16px;
4567 float: left;
4571 float: left;
4568 }
4572 }
4569
4573
4570 .menu_link_user {
4574 .menu_link_user {
4571 padding: 10px 8px 8px 8px !important;
4575 /*padding: 10px 8px 8px 8px !important;*/
4572 }
4576 }
4573
4577
4578 #context-pages .pull-request span,
4574 .menu_link_notifications {
4579 .menu_link_notifications {
4575 padding: 4px 4px !important;
4580 padding: 4px 4px !important;
4576 margin: 7px 4px 0px 0px !important;
4581 /*margin: 7px 4px 0px 0px !important;*/
4577 text-align: center;
4582 text-align: center;
4578 color:#888 !important;
4583 color:#888 !important;
4579 font-size: 10px;
4584 /*font-size: 10px;*/
4580 background-color: #DEDEDE !important;
4585 background-color: #DEDEDE !important;
4581 border-radius: 4px !important;
4586 border-radius: 4px !important;
4582 -webkit-border-radius: 4px !important;
4587 -webkit-border-radius: 4px !important;
@@ -123,7 +123,7 b''
123 </li>
123 </li>
124 <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}" class="fork">${_('Fork')}</a></li>
124 <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}" class="fork">${_('Fork')}</a></li>
125 %if h.is_hg(c.rhodecode_repo):
125 %if h.is_hg(c.rhodecode_repo):
126 <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="pull-request">${_('Pull Request')}</a></li>
126 <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="pull-request">${_('Create Pull Request')}</a></li>
127 %endif
127 %endif
128 </ul>
128 </ul>
129 %endif
129 %endif
@@ -148,43 +148,33 b''
148 <ul>
148 <ul>
149 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
149 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
150 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
150 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
151 <li>${h.link_to(_('repository settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
151 <li>${h.link_to(_('Settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
152 %else:
152 %else:
153 <li>${h.link_to(_('repository settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
153 <li>${h.link_to(_('Settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
154 %endif
154 %endif
155 %endif
155 %endif
156 %if c.rhodecode_db_repo.fork:
156 %if c.rhodecode_db_repo.fork:
157 <li>${h.link_to(_('compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default'),class_='compare_request')}</li>
157 <li>${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default'),class_='compare_request')}</li>
158 %endif
158 %endif
159 <li>${h.link_to(_('lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}</li>
159 <li>${h.link_to(_('Lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}</li>
160 <li>${h.link_to(_('search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li>
160 <li>${h.link_to(_('Search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li>
161
161
162 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking:
162 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking:
163 %if c.rhodecode_db_repo.locked[0]:
163 %if c.rhodecode_db_repo.locked[0]:
164 <li>${h.link_to(_('unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li>
164 <li>${h.link_to(_('Unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li>
165 %else:
165 %else:
166 <li>${h.link_to(_('lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li>
166 <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li>
167 %endif
167 %endif
168 %endif
168 %endif
169
170 % if h.HasPermissionAll('hg.admin')('access admin main page'):
171 <li>
172 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin childs')}
173 ## ADMIN MENU
174 ${admin_menu()}
175 </li>
176 ## if you're a admin of any groups, show admin menu for it
177 % elif c.rhodecode_user.groups_admin:
178 <li>
179 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
180
181 ## ADMIN MENU
182 ${admin_menu_simple()}
183 </li>
184 % endif
185 </ul>
169 </ul>
186 </li>
170 </li>
187 <li ${is_current('showpullrequest')}><a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests')}" class="pull-request">1</a></li>
171 <li ${is_current('showpullrequest')}>
172 <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests')}" class="pull-request">Pull Requests
173 %if c.repository_pull_requests:
174 <span>${c.repository_pull_requests}</span>
175 %endif
176 </a>
177 </li>
188 </ul>
178 </ul>
189 </div>
179 </div>
190 </div>
180 </div>
@@ -207,8 +197,8 b''
207 <%def name="usermenu()">
197 <%def name="usermenu()">
208 ## USER MENU
198 ## USER MENU
209 <li>
199 <li>
210 <a class="menu_link" id="quick_login_link">
200 <a class="menu_link childs" id="quick_login_link">
211 <span class="icon" style="padding:5px 5px 0px 5px">
201 <span class="icon">
212 <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar">
202 <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar">
213 </span>
203 </span>
214 %if c.rhodecode_user.username != 'default':
204 %if c.rhodecode_user.username != 'default':
@@ -289,14 +279,11 b''
289 if selected == current:
279 if selected == current:
290 return h.literal('class="current"')
280 return h.literal('class="current"')
291 %>
281 %>
292 <ul id="quick">
282 <ul id="quick" class="horizontal-list">
293 <!-- repo switcher -->
283 <!-- repo switcher -->
294 <li ${is_current('home')}>
284 <li ${is_current('home')}>
295 <a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}">
285 <a class="menu_link repo_switcher childs" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}">
296 <span class="icon">
286 ${_('Repositories')}
297 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" />
298 </span>
299 <span>${_('Repositories')}</span>
300 </a>
287 </a>
301 <ul id="repo_switcher_list" class="repo_switcher">
288 <ul id="repo_switcher_list" class="repo_switcher">
302 <li>
289 <li>
@@ -307,48 +294,33 b''
307 ##ROOT MENU
294 ##ROOT MENU
308 %if c.rhodecode_user.username != 'default':
295 %if c.rhodecode_user.username != 'default':
309 <li ${is_current('journal')}>
296 <li ${is_current('journal')}>
310 <a class="menu_link" title="${_('Show recent activity')}" href="${h.url('journal')}">
297 <a class="menu_link journal" title="${_('Show recent activity')}" href="${h.url('journal')}">
311 <span class="icon">
298 ${_('Journal')}
312 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" />
313 </span>
314 <span>${_('Journal')}</span>
315 </a>
299 </a>
316 </li>
300 </li>
317 %else:
301 %else:
318 <li ${is_current('journal')}>
302 <li ${is_current('journal')}>
319 <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}">
303 <a class="menu_link journal" title="${_('Public journal')}" href="${h.url('public_journal')}">
320 <span class="icon">
304 ${_('Public journal')}
321 <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" />
322 </span>
323 <span>${_('Public journal')}</span>
324 </a>
305 </a>
325 </li>
306 </li>
326 %endif
307 %endif
327 <li ${is_current('search')}>
308 <li ${is_current('search')}>
328 <a class="menu_link" title="${_('Search in repositories')}" href="${h.url('search')}">
309 <a class="menu_link search" title="${_('Search in repositories')}" href="${h.url('search')}">
329 <span class="icon">
310 ${_('Search')}
330 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" />
331 </span>
332 <span>${_('Search')}</span>
333 </a>
311 </a>
334 </li>
312 </li>
335 % if h.HasPermissionAll('hg.admin')('access admin main page'):
313 % if h.HasPermissionAll('hg.admin')('access admin main page'):
336 <li ${is_current('admin')}>
314 <li ${is_current('admin')}>
337 <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}">
315 <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}">
338 <span class="icon">
316 ${_('Admin')}
339 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" />
340 </span>
341 <span>${_('Admin')}</span>
342 </a>
317 </a>
343 ${admin_menu()}
318 ${admin_menu()}
344 </li>
319 </li>
345 % elif c.rhodecode_user.groups_admin:
320 % elif c.rhodecode_user.groups_admin:
346 <li ${is_current('admin')}>
321 <li ${is_current('admin')}>
347 <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}">
322 <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}">
348 <span class="icon">
323 ${_('Admin')}
349 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" />
350 </span>
351 <span>${_('Admin')}</span>
352 </a>
324 </a>
353 ${admin_menu_simple()}
325 ${admin_menu_simple()}
354 </li>
326 </li>
@@ -63,12 +63,10 b''
63 <span title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
63 <span title="${cs.author}" class="user">${h.shorter(h.person(cs.author),22)}</span>
64 </td>
64 </td>
65 <td class="hash">
65 <td class="hash">
66 <span class="tooltip" title="${h.tooltip(h.age(cs.date))}">
66 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">
67 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id)}">
67 <span class="changeset_id">${cs.revision} :</span>
68 <span class="changeset_id">${cs.revision} :</span>
68 <span class="changeset_hash">${h.short_id(cs.raw_id)}</span>
69 <span class="changeset_hash">${h.short_id(cs.raw_id)}</span>
69 </a>
70 </a>
71 </span>
72 </td>
70 </td>
73 <td class="date">
71 <td class="date">
74 <div class="date">${h.age(cs.date,True)}</div>
72 <div class="date">${h.age(cs.date,True)}</div>
@@ -78,9 +76,13 b''
78 <div class="message">${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
76 <div class="message">${h.urlify_commit(cs.message, c.repo_name,h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id))}</div>
79 <div class="expand"><span class="expandtext">&darr; ${_('Show more')} &darr;</span></div>
77 <div class="expand"><span class="expandtext">&darr; ${_('Show more')} &darr;</span></div>
80 <div class="extra-container">
78 <div class="extra-container">
81 %if (not c.branch_name) and cs.branch:
79 %if c.comments.get(cs.raw_id,[]):
82 <div class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}">
80 <div class="comments-container">
83 ${h.link_to(h.shorter(cs.branch),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
81 <div class="comments-cnt" title="${('comments')}">
82 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
83 ${len(c.comments[cs.raw_id])}
84 </a>
85 </div>
84 </div>
86 </div>
85 %endif
87 %endif
86 %for book in cs.bookmarks:
88 %for book in cs.bookmarks:
@@ -94,15 +96,12 b''
94 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
96 ${h.link_to(h.shorter(tag),h.url('files_home',repo_name=c.repo_name,revision=cs.raw_id))}
95 </div>
97 </div>
96 %endfor
98 %endfor
97 %if len(c.comments.get(cs.raw_id,[])) > 0:
99 %if (not c.branch_name) and cs.branch:
98 <div class="comments-container">
100 <div class="branchtag" title="${'%s %s' % (_('branch'),cs.branch)}">
99 <div class="comments-cnt" title="${('comments')}">
101 ${h.link_to(h.shorter(cs.branch),h.url('changelog_home',repo_name=c.repo_name,branch=cs.branch))}
100 <a href="${h.url('changeset_home',repo_name=c.repo_name,revision=cs.raw_id,anchor='comment-%s' % c.comments[cs.raw_id][0].comment_id)}">
101 ${len(c.comments[cs.raw_id])}
102 </a>
103 </div>
104 </div>
102 </div>
105 %endif
103 %endif
104
106 <%doc>
105 <%doc>
107 %if (h.is_hg(c.rhodecode_repo) and cs.bookmarks) or cs.tags:
106 %if (h.is_hg(c.rhodecode_repo) and cs.bookmarks) or cs.tags:
108 <div class="tagcontainer">
107 <div class="tagcontainer">
@@ -166,14 +166,14 b''
166 <ul>
166 <ul>
167 <li>
167 <li>
168 <a class="followers" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
168 <a class="followers" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
169 ${_('Followers')}
169 <span id="current_followers_count">${c.repository_followers}</span>
170 <span id="current_followers_count">${c.repository_followers}</span>
170 ${_('Followes')}
171 </a>
171 </a>
172 </li>
172 </li>
173 <li>
173 <li>
174 <a class="forks" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
174 <a class="forks" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
175 ${_('Forks')}
175 <span>${c.repository_forks}</span>
176 <span>${c.repository_forks}</span>
176 ${_('Forks')}
177 </a>
177 </a>
178 </li>
178 </li>
179 <li>
179 <li>
@@ -193,8 +193,8 b''
193 %endif
193 %endif
194 </li>
194 </li>
195 %if c.rhodecode_user.username != 'default':
195 %if c.rhodecode_user.username != 'default':
196 <li>
196 <li class="repo_size">
197 <a href="#" class="repo-size" onclick="javascript:showRepoSize('repo_size_2','${c.dbrepo.repo_name}','${str(h.get_token())}')">Repository Size</a>
197 <a href="#" class="repo-size" onclick="javascript:showRepoSize('repo_size_2','${c.dbrepo.repo_name}','${str(h.get_token())}')">Calculate Repository Size</a>
198 <span id="repo_size_2"></span>
198 <span id="repo_size_2"></span>
199 </li>
199 </li>
200 %endif
200 %endif
General Comments 0
You need to be logged in to leave comments. Login now