Show More
@@ -16,7 +16,7 b'' | |||||
16 | ${next.breadcrumbs()} |
|
16 | ${next.breadcrumbs()} | |
17 | </h1> |
|
17 | </h1> | |
18 | <ul class="page-nav"> |
|
18 | <ul class="page-nav"> | |
19 |
${ |
|
19 | ${self.page_nav()} | |
20 | </ul> |
|
20 | </ul> | |
21 | </div> |
|
21 | </div> | |
22 | ${next.main()} |
|
22 | ${next.main()} | |
@@ -40,6 +40,50 b'' | |||||
40 | </body> |
|
40 | </body> | |
41 | </html> |
|
41 | </html> | |
42 |
|
42 | |||
|
43 | <%def name="page_nav()"> | |||
|
44 | ||||
|
45 | ${self.menu()} | |||
|
46 | ||||
|
47 | </%def> | |||
|
48 | ||||
|
49 | ||||
|
50 | <%def name="menu(current)"> | |||
|
51 | <ul class="page-nav"> | |||
|
52 | ||||
|
53 | <li | |||
|
54 | %if current=='summary': | |||
|
55 | class='current' | |||
|
56 | %endif | |||
|
57 | >${h.link_to_unless(current=='summary',_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li> | |||
|
58 | <li | |||
|
59 | %if current=='changelog': | |||
|
60 | class='current' | |||
|
61 | %endif | |||
|
62 | >${h.link_to_unless(current=='changelog',_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}</li> | |||
|
63 | <li | |||
|
64 | %if current=='branches': | |||
|
65 | class='current' | |||
|
66 | %endif | |||
|
67 | >${h.link_to_unless(current=='branches',_('branches'),h.url('branches_home',repo_name=c.repo_name))}</li> | |||
|
68 | <li | |||
|
69 | %if current=='tags': | |||
|
70 | class='current' | |||
|
71 | %endif | |||
|
72 | >${h.link_to_unless(current=='tags',_('tags'),h.url('tags_home',repo_name=c.repo_name))}</li> | |||
|
73 | <li | |||
|
74 | %if current=='graph': | |||
|
75 | class='current' | |||
|
76 | %endif | |||
|
77 | >${h.link_to_unless(current=='graph',_('graph'),h.url('graph_home',repo_name=c.repo_name))}</li> | |||
|
78 | <li | |||
|
79 | %if current=='files': | |||
|
80 | class='current' | |||
|
81 | %endif | |||
|
82 | >${h.link_to_unless(current=='files',_('files'),h.url('files_home',repo_name=c.repo_name))}</li> | |||
|
83 | </ul> | |||
|
84 | </%def> | |||
|
85 | ||||
|
86 | ||||
43 |
|
87 | |||
44 | <%def name="js()"> |
|
88 | <%def name="js()"> | |
45 | <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> |
|
89 | <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> |
@@ -18,15 +18,7 b'' | |||||
18 | </dl> |
|
18 | </dl> | |
19 | </form> |
|
19 | </form> | |
20 |
|
20 | |||
21 | <ul class="page-nav"> |
|
21 | ${self.menu('changelog')} | |
22 | <li>${h.link(_('summary'),h.url('summary_home',repo_name=c.repo_name))}</li> |
|
|||
23 | <li class="current">${_('shortlog')}</li> |
|
|||
24 | <li><a href="log">changelog</a></li> |
|
|||
25 | <li><a href="graph/{node|short}">graph</a></li> |
|
|||
26 | <li><a href="tags">tags</a></li> |
|
|||
27 | <li><a href="branches">branches</a></li> |
|
|||
28 | <li><a href="file/{node|short}">files</a></li> |
|
|||
29 | </ul> |
|
|||
30 | </%def> |
|
22 | </%def> | |
31 | <%def name="main()"> |
|
23 | <%def name="main()"> | |
32 |
|
24 |
@@ -20,15 +20,7 b' from pylons_app.lib import filters' | |||||
20 | </dl> |
|
20 | </dl> | |
21 | </form> |
|
21 | </form> | |
22 |
|
22 | |||
23 | <ul class="page-nav"> |
|
23 | ${self.menu('summary')} | |
24 | <li class="current">${_('summary')}</li> |
|
|||
25 | <li>${h.link(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}</li> |
|
|||
26 | <li><a href="log">changelog</a></li> |
|
|||
27 | <li><a href="graph/{node|short}">graph</a></li> |
|
|||
28 | <li><a href="tags">tags</a></li> |
|
|||
29 | <li><a href="branches">branches</a></li> |
|
|||
30 | <li><a href="file/{node|short}">files</a></li> |
|
|||
31 | </ul> |
|
|||
32 | </%def> |
|
24 | </%def> | |
33 | <%def name="main()"> |
|
25 | <%def name="main()"> | |
34 |
|
26 |
General Comments 0
You need to be logged in to leave comments.
Login now