Show More
@@ -20,6 +20,11 b' class BaseController(WSGIController):' | |||||
20 | c.repo_name = get_repo_slug(request) |
|
20 | c.repo_name = get_repo_slug(request) | |
21 | c.cached_repo_list = _get_repos_cached() |
|
21 | c.cached_repo_list = _get_repos_cached() | |
22 | c.repo_switcher_list = _get_repos_switcher_cached(c.cached_repo_list) |
|
22 | c.repo_switcher_list = _get_repos_switcher_cached(c.cached_repo_list) | |
|
23 | ||||
|
24 | if c.repo_name: | |||
|
25 | c.repository_tags = c.cached_repo_list[c.repo_name].tags | |||
|
26 | c.repository_branches = c.cached_repo_list[c.repo_name].branches | |||
|
27 | ||||
23 | self.sa = meta.Session |
|
28 | self.sa = meta.Session | |
24 |
|
29 | |||
25 | def __call__(self, environ, start_response): |
|
30 | def __call__(self, environ, start_response): |
@@ -323,7 +323,6 b' div.options a:hover' | |||||
323 | /* ----------------------------------------------------------- |
|
323 | /* ----------------------------------------------------------- | |
324 | header -> quick |
|
324 | header -> quick | |
325 | ----------------------------------------------------------- */ |
|
325 | ----------------------------------------------------------- */ | |
326 |
|
||||
327 | #header #header-inner #quick, |
|
326 | #header #header-inner #quick, | |
328 | #header #header-inner #quick ul |
|
327 | #header #header-inner #quick ul | |
329 | { |
|
328 | { | |
@@ -337,7 +336,7 b' div.options a:hover' | |||||
337 |
|
336 | |||
338 | #header #header-inner #quick li |
|
337 | #header #header-inner #quick li | |
339 | { |
|
338 | { | |
340 |
|
|
339 | margin: 0 5px 0 0; | |
341 |
|
|
340 | padding: 0; | |
342 |
|
|
341 | position: relative; | |
343 |
|
|
342 | float: left; | |
@@ -352,7 +351,7 b' div.options a:hover' | |||||
352 |
|
|
351 | display: block; | |
353 |
|
|
352 | clear: both; | |
354 |
|
|
353 | overflow: hidden; | |
355 |
|
|
354 | background: #336699 url("../../resources/images/colors/blue/quick_l.png") no-repeat top left; | |
356 |
|
|
355 | color: #FFFFFF; | |
357 |
|
|
356 | font-weight: bold; | |
358 |
|
|
357 | text-decoration: none; | |
@@ -367,34 +366,45 b' div.options a:hover' | |||||
367 |
|
|
366 | height: 1%; | |
368 |
|
|
367 | display: block; | |
369 |
|
|
368 | float: left; | |
370 |
|
|
369 | background: url("../../resources/images/colors/blue/quick_r.png") no-repeat top right; | |
371 |
|
|
370 | border-left: 1px solid #3f6f9f; | |
372 | } |
|
371 | } | |
373 |
|
372 | |||
|
373 | #header #header-inner #quick li span.normal | |||
|
374 | { | |||
|
375 | padding: 10px 12px 8px 12px; | |||
|
376 | border: none; | |||
|
377 | } | |||
|
378 | ||||
374 | #header #header-inner #quick li span.icon |
|
379 | #header #header-inner #quick li span.icon | |
375 | { |
|
380 | { | |
376 |
|
|
381 | top: 0; | |
377 |
|
|
382 | left: 0; | |
378 |
|
|
383 | padding: 8px 8px 4px 8px; | |
379 |
|
|
384 | background: url("../../resources/images/colors/blue/quick_l.png") no-repeat top left; | |
380 |
|
|
385 | border-left: none; | |
381 |
|
|
386 | border-right: 1px solid #2e5c89; | |
382 | } |
|
387 | } | |
383 |
|
388 | |||
384 | #header #header-inner #quick li a:hover |
|
389 | #header #header-inner #quick li a:hover | |
385 | { |
|
390 | { | |
386 | background: #4e4e4e; |
|
391 | background: #4e4e4e url("../../resources/images/colors/blue/quick_l_selected.png") no-repeat top left; | |
387 | } |
|
392 | } | |
388 |
|
393 | |||
389 | #header #header-inner #quick li a:hover span |
|
394 | #header #header-inner #quick li a:hover span | |
390 | { |
|
395 | { | |
391 |
|
|
396 | background: url("../../resources/images/colors/blue/quick_r_selected.png") no-repeat top right; | |
392 |
|
|
397 | border-left: 1px solid #545454; | |
393 | } |
|
398 | } | |
394 |
|
399 | |||
|
400 | #header #header-inner #quick li a:hover span.normal | |||
|
401 | { | |||
|
402 | border: none; | |||
|
403 | } | |||
|
404 | ||||
395 | #header #header-inner #quick li a:hover span.icon |
|
405 | #header #header-inner #quick li a:hover span.icon | |
396 | { |
|
406 | { | |
397 |
|
|
407 | background: url("../../resources/images/colors/blue/quick_l_selected.png") no-repeat top left; | |
398 |
|
|
408 | border-left: none; | |
399 |
|
|
409 | border-right: 1px solid #464646; | |
400 | } |
|
410 | } | |
@@ -411,6 +421,7 b' div.options a:hover' | |||||
411 |
|
|
421 | background: #FFFFFF; | |
412 |
|
|
422 | border: 1px solid #666; | |
413 | border-top: 1px solid #003367; |
|
423 | border-top: 1px solid #003367; | |
|
424 | z-index: 100; | |||
414 | } |
|
425 | } | |
415 |
|
426 | |||
416 | #header #header-inner #quick li ul li |
|
427 | #header #header-inner #quick li ul li | |
@@ -423,36 +434,6 b' div.options a:hover' | |||||
423 |
|
|
434 | border: none; | |
424 | } |
|
435 | } | |
425 |
|
436 | |||
426 | #header #header-inner #quick li ul li a.repos,#header #header-inner #quick li ul li a.repos:hover |
|
|||
427 | { |
|
|||
428 | margin: 0; |
|
|||
429 | padding: 12px 9px 7px 28px; |
|
|||
430 | width: 167px; |
|
|||
431 | background: #FFFFFF url("../images/icons/folder_edit.png") no-repeat 8px 9px; |
|
|||
432 | } |
|
|||
433 | #header #header-inner #quick li ul li a.users,#header #header-inner #quick li ul li a.users:hover |
|
|||
434 | { |
|
|||
435 | margin: 0; |
|
|||
436 | padding: 12px 9px 7px 28px; |
|
|||
437 | width: 167px; |
|
|||
438 | background: #FFFFFF url("../images/icons/user_edit.png") no-repeat 8px 9px; |
|
|||
439 | } |
|
|||
440 | #header #header-inner #quick li ul li a.settings,#header #header-inner #quick li ul li a.settings:hover |
|
|||
441 | { |
|
|||
442 | margin: 0; |
|
|||
443 | padding: 12px 9px 7px 28px; |
|
|||
444 | width: 167px; |
|
|||
445 | background: #FFFFFF url("../images/icons/cog.png") no-repeat 8px 9px; |
|
|||
446 | } |
|
|||
447 |
|
||||
448 | #header #header-inner #quick li ul li a.permissions,#header #header-inner #quick li ul li a.permissions:hover |
|
|||
449 | { |
|
|||
450 | margin: 0; |
|
|||
451 | padding: 12px 9px 7px 28px; |
|
|||
452 | width: 167px; |
|
|||
453 | background: #FFFFFF url("../images/icons/key.png") no-repeat 8px 9px; |
|
|||
454 | } |
|
|||
455 |
|
||||
456 | #header #header-inner #quick li ul li a |
|
437 | #header #header-inner #quick li ul li a | |
457 | { |
|
438 | { | |
458 |
|
|
439 | margin: 0; | |
@@ -467,12 +448,25 b' div.options a:hover' | |||||
467 |
|
|
448 | font-weight: normal; | |
468 | } |
|
449 | } | |
469 |
|
450 | |||
|
451 | #header #header-inner #quick li ul li a.childs | |||
|
452 | { | |||
|
453 | margin: 0; | |||
|
454 | padding: 7px 9px 7px 24px; | |||
|
455 | width: 167px; | |||
|
456 | background: #FFFFFF url("../../resources/images/plus.png") no-repeat 8px 9px; | |||
|
457 | } | |||
|
458 | ||||
470 | #header #header-inner #quick li ul li a:hover |
|
459 | #header #header-inner #quick li ul li a:hover | |
471 | { |
|
460 | { | |
472 |
|
|
461 | color: #000000; | |
473 |
|
|
462 | background: #FFFFFF; | |
474 | } |
|
463 | } | |
475 |
|
464 | |||
|
465 | #header #header-inner #quick li ul li a.childs:hover | |||
|
466 | { | |||
|
467 | background: #FFFFFF url("../../resources/images/minus.png") no-repeat 8px 9px; | |||
|
468 | } | |||
|
469 | ||||
476 | #header #header-inner #quick ul ul |
|
470 | #header #header-inner #quick ul ul | |
477 | { |
|
471 | { | |
478 |
|
|
472 | top: auto; | |
@@ -498,6 +492,62 b' div.options a:hover' | |||||
498 |
|
|
492 | display: block; | |
499 | } |
|
493 | } | |
500 |
|
494 | |||
|
495 | ||||
|
496 | /*ICONS*/ | |||
|
497 | ||||
|
498 | #header #header-inner #quick li ul li a.repos, | |||
|
499 | #header #header-inner #quick li ul li a.repos:hover | |||
|
500 | { | |||
|
501 | background:url("../images/icons/folder_edit.png") no-repeat scroll 4px 9px #FFFFFF; | |||
|
502 | margin:0; | |||
|
503 | padding:12px 9px 7px 24px; | |||
|
504 | width:167px; | |||
|
505 | ||||
|
506 | } | |||
|
507 | #header #header-inner #quick li ul li a.users, | |||
|
508 | #header #header-inner #quick li ul li a.users:hover | |||
|
509 | { | |||
|
510 | background: #FFFFFF url("../images/icons/user_edit.png") no-repeat 4px 9px; | |||
|
511 | margin:0; | |||
|
512 | padding:12px 9px 7px 24px; | |||
|
513 | width:167px; | |||
|
514 | } | |||
|
515 | #header #header-inner #quick li ul li a.settings, | |||
|
516 | #header #header-inner #quick li ul li a.settings:hover | |||
|
517 | { | |||
|
518 | background: #FFFFFF url("../images/icons/cog.png") no-repeat 4px 9px; | |||
|
519 | margin:0; | |||
|
520 | padding:12px 9px 7px 24px; | |||
|
521 | width:167px; | |||
|
522 | } | |||
|
523 | ||||
|
524 | #header #header-inner #quick li ul li a.permissions, | |||
|
525 | #header #header-inner #quick li ul li a.permissions:hover | |||
|
526 | { | |||
|
527 | ||||
|
528 | background: #FFFFFF url("../images/icons/key.png") no-repeat 4px 9px; | |||
|
529 | margin:0; | |||
|
530 | padding:12px 9px 7px 24px; | |||
|
531 | width:167px; | |||
|
532 | } | |||
|
533 | ||||
|
534 | #header #header-inner #quick li ul li a.branches,#header #header-inner #quick li ul li a.branches:hover | |||
|
535 | { | |||
|
536 | ||||
|
537 | background: #FFFFFF url("../images/icons/arrow_branch.png") no-repeat 4px 9px; | |||
|
538 | margin:0; | |||
|
539 | padding:12px 9px 7px 24px; | |||
|
540 | width:167px; | |||
|
541 | } | |||
|
542 | ||||
|
543 | #header #header-inner #quick li ul li a.tags,#header #header-inner #quick li ul li a.tags:hover | |||
|
544 | { | |||
|
545 | ||||
|
546 | background: #FFFFFF url("../images/icons/tag_blue.png") no-repeat 4px 9px; | |||
|
547 | margin:0; | |||
|
548 | padding:12px 9px 7px 24px; | |||
|
549 | width:167px; | |||
|
550 | } | |||
501 | /* ----------------------------------------------------------- |
|
551 | /* ----------------------------------------------------------- | |
502 | header corners |
|
552 | header corners | |
503 | ----------------------------------------------------------- */ |
|
553 | ----------------------------------------------------------- */ |
@@ -152,21 +152,32 b'' | |||||
152 | <span>${_('Changelog')}</span> |
|
152 | <span>${_('Changelog')}</span> | |
153 | </a> |
|
153 | </a> | |
154 |
</li> |
|
154 | </li> | |
155 | <li ${is_current('branches')}> |
|
155 | ||
156 | <a title="${_('Branches')}" href="${h.url('branches_home',repo_name=c.repo_name)}"> |
|
156 | <li ${is_current('switch_to')}> | |
|
157 | <a title="${_('Switch to')}" href="#"> | |||
157 | <span class="icon"> |
|
158 | <span class="icon"> | |
158 |
<img src="/images/icons/arrow_ |
|
159 | <img src="/images/icons/arrow_switch.png" alt="${_('Switch to')}" /> | |
159 | </span> |
|
160 | </span> | |
160 |
<span>${_(' |
|
161 | <span>${_('Switch to')}</span> | |
161 |
</a> |
|
162 | </a> | |
|
163 | <ul> | |||
|
164 | <li> | |||
|
165 | ${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} | |||
|
166 | <ul> | |||
|
167 | %for cnt,branch in enumerate(c.repository_branches.items()): | |||
|
168 | <li>${h.link_to('%s - %s' % (branch[0],branch[1]),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li> | |||
|
169 | %endfor | |||
|
170 | </ul> | |||
162 |
</li> |
|
171 | </li> | |
163 | <li ${is_current('tags')}> |
|
172 | <li> | |
164 |
|
|
173 | ${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} | |
165 |
< |
|
174 | <ul> | |
166 | <img src="/images/icons/tag_blue.png" alt="${_('Tags')}" /> |
|
175 | %for cnt,tag in enumerate(c.repository_tags.items()): | |
167 | </span> |
|
176 | <li>${h.link_to('%s - %s' % (tag[0],tag[1]),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li> | |
168 |
|
|
177 | %endfor | |
169 |
</ |
|
178 | </ul> | |
|
179 | </li> | |||
|
180 | </ul> | |||
170 | </li> |
|
181 | </li> | |
171 | <li ${is_current('files')}> |
|
182 | <li ${is_current('files')}> | |
172 | <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
|
183 | <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> | |
@@ -220,7 +231,7 b'' | |||||
220 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
|
231 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> | |
221 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
|
232 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> | |
222 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
|
233 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> | |
223 | <li>${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
|
234 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> | |
224 | </ul> |
|
235 | </ul> | |
225 | </li> |
|
236 | </li> | |
226 | %endif |
|
237 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now