Mercurial > kallithea
annotate pylons_app/templates/base/base.html @ 454:ffbd1808b4c8
fixed repo switcher,
some css fixups for repo switcher and switch to menu
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 03 Sep 2010 18:07:24 +0200 |
parents | 2a95d54b19e6 |
children | 644795a4e8d2 |
rev | line source |
---|---|
0 | 1 ## -*- coding: utf-8 -*- |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
143
787689980bcd
Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents:
109
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml"> |
0 | 4 <head> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
5 <title>${next.title()}</title> |
101
8b06c420491d
statics moved to pylons.
Marcin Kuzminski <marcin@python-works.com>
parents:
98
diff
changeset
|
6 <link rel="icon" href="/images/hgicon.png" type="image/png" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> |
44 | 8 <meta name="robots" content="index, nofollow"/> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
9 <!-- stylesheets --> |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
10 ${self.css()} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
11 <!-- scripts --> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
12 ${self.js()} |
0 | 13 </head> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
14 <body> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
15 <!-- header --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
16 <div id="header"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
17 <!-- user --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
18 <ul id="logged-user"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
19 <li class="first"> |
402
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
20 <div class="gravatar"> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
21 <img alt="gravatar" src="${h.gravatar_url(c.hg_app_user.email,24)}" /> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
22 </div> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
23 <div class="account"> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
24 ${h.link_to('%s %s'%(c.hg_app_user.name,c.hg_app_user.lastname),h.url('admin_settings_my_account'))}<br/> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
25 ${h.link_to(c.hg_app_user.username,h.url('admin_settings_my_account'))} |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
26 </div> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
27 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
28 <li class="last highlight">${h.link_to(u'Logout',h.url('logout_home'))}</li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
29 </ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
30 <!-- end user --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
31 <div id="header-inner"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
32 <div id="home"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
33 <a href="${h.url('hg_home')}"></a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
34 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
35 <!-- logo --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
36 <div id="logo"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
37 <h1><a href="${h.url('hg_home')}">${c.hg_app_name}</a></h1> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
38 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
39 <!-- end logo --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
40 <!-- quick menu --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
41 ${self.page_nav()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
42 <!-- end quick --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
43 <div class="corner tl"></div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
44 <div class="corner tr"></div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
45 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
46 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
47 <!-- end header --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
48 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
49 <!-- CONTENT --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
50 <div id="content"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
51 <div class="flash_msg"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
52 <% messages = h.flash.pop_messages() %> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
53 % if messages: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
54 <ul id="flash-messages"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
55 % for message in messages: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
56 <li class="${message.category}_msg">${message}</li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
57 % endfor |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
58 </ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
59 % endif |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
60 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
61 <div id="main"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
62 ${next.main()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
63 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
64 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
65 <!-- END CONTENT --> |
0 | 66 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
67 <!-- footer --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
68 <div id="footer"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
69 <p>Hg App ${c.hg_app_version} © 2010 by Marcin Kuzminski</p> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
70 <script type="text/javascript">${h.tooltip.activate()}</script> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
71 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
72 <!-- end footer --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
73 </body> |
0 | 74 |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
75 </html> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
76 |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
77 ### MAKO DEFS ### |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
78 <%def name="page_nav()"> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
79 ${self.menu()} |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
80 </%def> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
81 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
82 <%def name="menu(current=None)"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
83 <% |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
84 def is_current(selected): |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
85 if selected == current: |
414
27f801e03489
fixed escaping for new webhelpers and added perm2user constraint
Marcin Kuzminski <marcin@python-works.com>
parents:
402
diff
changeset
|
86 return h.literal('class="current"') |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
87 %> |
454
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
88 %if current not in ['home','admin']: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
89 ##REGULAR MENU |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
90 <ul id="quick"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
91 <!-- repo switcher --> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
92 <li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
93 <a id="repo_switcher" title="${_('Switch repository')}" href="#"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
94 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
95 <img src="/images/icons/database.png" alt="${_('Products')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
96 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
97 <span>↓</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
98 </a> |
454
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
99 <ul class="repo_switcher"> |
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
100 %for repo in c.repo_switcher_list: |
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
101 <li>${h.link_to(repo,h.url('summary_home',repo_name=repo))}</li> |
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
102 %endfor |
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
103 </ul> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
104 </li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
105 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
106 <li ${is_current('summary')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
107 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
108 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
109 <img src="/images/icons/clipboard_16.png" alt="${_('Summary')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
110 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
111 <span>${_('Summary')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
112 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
113 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
114 <li ${is_current('shortlog')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
115 <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
116 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
117 <img src="/images/icons/application_double.png" alt="${_('Shortlog')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
118 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
119 <span>${_('Shortlog')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
120 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
121 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
122 <li ${is_current('changelog')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
123 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
124 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
125 <img src="/images/icons/time.png" alt="${_('Changelog')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
126 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
127 <span>${_('Changelog')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
128 </a> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
129 </li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
130 |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
131 <li ${is_current('switch_to')}> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
132 <a title="${_('Switch to')}" href="#"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
133 <span class="icon"> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
134 <img src="/images/icons/arrow_switch.png" alt="${_('Switch to')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
135 </span> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
136 <span>${_('Switch to')}</span> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
137 </a> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
138 <ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
139 <li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
140 ${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
141 <ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
142 %for cnt,branch in enumerate(c.repository_branches.items()): |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
143 <li>${h.link_to('%s - %s' % (branch[0],branch[1]),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
144 %endfor |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
145 </ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
146 </li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
147 <li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
148 ${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
149 <ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
150 %for cnt,tag in enumerate(c.repository_tags.items()): |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
151 <li>${h.link_to('%s - %s' % (tag[0],tag[1]),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
152 %endfor |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
153 </ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
154 </li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
155 </ul> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
156 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
157 <li ${is_current('files')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
158 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
159 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
160 <img src="/images/icons/file.png" alt="${_('Files')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
161 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
162 <span>${_('Files')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
163 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
164 </li> |
318
fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
165 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
166 <li ${is_current('settings')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
167 <a title="${_('Settings')}" href="${h.url('repo_settings_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
168 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
169 <img src="/images/icons/cog_edit.png" alt="${_('Settings')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
170 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
171 <span>${_('Settings')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
172 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
173 </li> |
318
fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
174 %endif |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
175 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
176 %else: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
177 ##ROOT MENU |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
178 <ul id="quick"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
179 <li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
180 <a title="${_('Home')}" href="${h.url('hg_home')}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
181 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
182 <img src="/images/icons/home_16.png" alt="${_('Home')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
183 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
184 <span>${_('Home')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
185 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
186 </li> |
402
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
187 |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
188 <li> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
189 <a title="${_('Search')}" href="${h.url('search')}"> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
190 <span class="icon"> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
191 <img src="/images/icons/search_16.png" alt="${_('Search')}" /> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
192 </span> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
193 <span>${_('Search')}</span> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
194 </a> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
195 </li> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
196 |
318
fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
197 %if h.HasPermissionAll('hg.admin')('access admin main page'): |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
198 <li ${is_current('admin')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
199 <a title="${_('Admin')}" href="${h.url('admin_home')}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
200 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
201 <img src="/images/icons/cog_edit.png" alt="${_('Admin')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
202 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
203 <span>${_('Admin')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
204 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
205 <ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
206 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
207 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
417
3ed2d46a2ca7
permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents:
414
diff
changeset
|
208 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
209 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
210 </ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
211 </li> |
318
fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
212 %endif |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
213 |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
214 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
215 %endif |
216
c8162373f214
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents:
208
diff
changeset
|
216 </%def> |
c8162373f214
Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents:
208
diff
changeset
|
217 |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
218 |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
219 <%def name="css()"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
220 <link rel="stylesheet" type="text/css" href="/css/reset.css" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
221 <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
222 <link id="color" rel="stylesheet" type="text/css" href="/css/colors/blue.css" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
223 <link rel="stylesheet" type="text/css" href="/css/pygments.css" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
224 <link rel="stylesheet" type="text/css" href="/css/diff.css" /> |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
225 </%def> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
226 |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
227 <%def name="js()"> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
228 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
229 <!--[if IE]><script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script><![endif]--> |
281
cd2ee462fc2c
implemented yui tooltip, and added it into annotation and main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
270
diff
changeset
|
230 <script type="text/javascript" src="/js/yui/container/container-min.js"></script> |
298
15e96b5a2685
autocomplete for repository managment of users
Marcin Kuzminski <marcin@python-works.com>
parents:
294
diff
changeset
|
231 <script type="text/javascript" src="/js/yui/datasource/datasource-min.js"></script> |
15e96b5a2685
autocomplete for repository managment of users
Marcin Kuzminski <marcin@python-works.com>
parents:
294
diff
changeset
|
232 <script type="text/javascript" src="/js/yui/autocomplete/autocomplete-min.js"></script> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
233 <script type="text/javascript" src="/js/yui.flot.js"></script> |
176
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
234 </%def> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
235 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
236 <%def name="breadcrumbs()"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
237 <div class="breadcrumbs"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
238 ${self.breadcrumbs_links()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
239 </div> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
240 </%def> |