Mercurial > kallithea
comparison rhodecode/templates/base/base.html @ 1888:f91d3f9b7230 beta
White-space cleanup
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 12 Jan 2012 06:32:40 +0200 |
parents | 2aee0dc1784e |
children | 049bc911b04f |
comparison
equal
deleted
inserted
replaced
1886:50e32940e464 | 1888:f91d3f9b7230 |
---|---|
15 <label for="username">${_('Username')}:</label> | 15 <label for="username">${_('Username')}:</label> |
16 </div> | 16 </div> |
17 <div class="input"> | 17 <div class="input"> |
18 ${h.text('username',class_='focus',size=40)} | 18 ${h.text('username',class_='focus',size=40)} |
19 </div> | 19 </div> |
20 | 20 |
21 </div> | 21 </div> |
22 <div class="field"> | 22 <div class="field"> |
23 <div class="label"> | 23 <div class="label"> |
24 <label for="password">${_('Password')}:</label> | 24 <label for="password">${_('Password')}:</label> |
25 </div> | 25 </div> |
26 <div class="input"> | 26 <div class="input"> |
27 ${h.password('password',class_='focus',size=40)} | 27 ${h.password('password',class_='focus',size=40)} |
28 </div> | 28 </div> |
29 | 29 |
30 </div> | 30 </div> |
31 <div class="buttons"> | 31 <div class="buttons"> |
32 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> | 32 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
33 <div class="register"> | 33 <div class="register"> |
34 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | 34 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
35 ${h.link_to(_("Don't have an account ?"),h.url('register'))} | 35 ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
36 %endif | 36 %endif |
37 </div> | 37 </div> |
38 ${h.submit('sign_in',_('Sign In'),class_="ui-button")} | 38 ${h.submit('sign_in',_('Sign In'),class_="ui-button")} |
39 </div> | 39 </div> |
40 </div> | 40 </div> |
41 </div> | 41 </div> |
42 ${h.end_form()} | 42 ${h.end_form()} |
43 </div> | 43 </div> |
44 | 44 |
45 <div class="gravatar"> | 45 <div class="gravatar"> |
46 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" /> | 46 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" /> |
47 </div> | 47 </div> |
48 <div class="account"> | 48 <div class="account"> |
49 %if c.rhodecode_user.username == 'default': | 49 %if c.rhodecode_user.username == 'default': |
50 <a href="${h.url('public_journal')}">${_('Public journal')}</a> | 50 <a href="${h.url('public_journal')}">${_('Public journal')}</a> |
51 %else: | 51 %else: |
52 <div style="float: left"> | 52 <div style="float: left"> |
53 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))} | 53 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))} |
54 </div> | 54 </div> |
55 <div class="notifications"> | 55 <div class="notifications"> |
56 <a id="notification_counter" href="${h.url('notifications')}">${c.unread_notifications}</a> | 56 <a id="notification_counter" href="${h.url('notifications')}">${c.unread_notifications}</a> |
57 </div> | 57 </div> |
58 %endif | 58 %endif |
59 </div> | 59 </div> |
60 </li> | 60 </li> |
61 <li> | 61 <li> |
62 <a href="${h.url('home')}">${_('Home')}</a> | 62 <a href="${h.url('home')}">${_('Home')}</a> |
63 </li> | 63 </li> |
64 %if c.rhodecode_user.username != 'default': | 64 %if c.rhodecode_user.username != 'default': |
80 <!-- MENU --> | 80 <!-- MENU --> |
81 ${self.page_nav()} | 81 ${self.page_nav()} |
82 <!-- END MENU --> | 82 <!-- END MENU --> |
83 ${self.body()} | 83 ${self.body()} |
84 </div> | 84 </div> |
85 </div> | 85 </div> |
86 <!-- END HEADER --> | 86 <!-- END HEADER --> |
87 | 87 |
88 <!-- CONTENT --> | 88 <!-- CONTENT --> |
89 <div id="content"> | 89 <div id="content"> |
90 <div class="flash_msg"> | 90 <div class="flash_msg"> |
91 <% messages = h.flash.pop_messages() %> | 91 <% messages = h.flash.pop_messages() %> |
92 % if messages: | 92 % if messages: |
93 <ul id="flash-messages"> | 93 <ul id="flash-messages"> |
94 % for message in messages: | 94 % for message in messages: |
95 <li class="${message.category}_msg">${message}</li> | 95 <li class="${message.category}_msg">${message}</li> |
96 % endfor | 96 % endfor |
97 </ul> | 97 </ul> |
98 % endif | 98 % endif |
99 </div> | 99 </div> |
100 <div id="main"> | 100 <div id="main"> |
101 ${next.main()} | 101 ${next.main()} |
102 </div> | 102 </div> |
103 </div> | 103 </div> |
104 <!-- END CONTENT --> | 104 <!-- END CONTENT --> |
105 | 105 |
106 <!-- FOOTER --> | 106 <!-- FOOTER --> |
107 <div id="footer"> | 107 <div id="footer"> |
108 <div id="footer-inner" class="title"> | 108 <div id="footer-inner" class="title"> |
109 <div> | 109 <div> |
110 <p class="footer-link"> | 110 <p class="footer-link"> |
111 <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> | 111 <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> |
112 </p> | 112 </p> |
113 <p class="footer-link-right"> | 113 <p class="footer-link-right"> |
114 <a href="${h.url('rhodecode_official')}">RhodeCode</a> | 114 <a href="${h.url('rhodecode_official')}">RhodeCode</a> |
115 ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski | 115 ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski |
116 </p> | 116 </p> |
117 </div> | 117 </div> |
118 </div> | 118 </div> |
119 </div> | 119 </div> |
130 </div> | 130 </div> |
131 </%def> | 131 </%def> |
132 | 132 |
133 | 133 |
134 <%def name="menu(current=None)"> | 134 <%def name="menu(current=None)"> |
135 <% | 135 <% |
136 def is_current(selected): | 136 def is_current(selected): |
137 if selected == current: | 137 if selected == current: |
138 return h.literal('class="current"') | 138 return h.literal('class="current"') |
139 %> | 139 %> |
140 %if current not in ['home','admin']: | 140 %if current not in ['home','admin']: |
141 ##REGULAR MENU | 141 ##REGULAR MENU |
142 <ul id="quick"> | 142 <ul id="quick"> |
143 <!-- repo switcher --> | 143 <!-- repo switcher --> |
144 <li> | 144 <li> |
145 <a id="repo_switcher" title="${_('Switch repository')}" href="#"> | 145 <a id="repo_switcher" title="${_('Switch repository')}" href="#"> |
146 <span class="icon"> | 146 <span class="icon"> |
147 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> | 147 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> |
148 </span> | 148 </span> |
149 <span>↓</span> | 149 <span>↓</span> |
150 </a> | 150 </a> |
151 <ul id="repo_switcher_list" class="repo_switcher"> | 151 <ul id="repo_switcher_list" class="repo_switcher"> |
152 <li> | 152 <li> |
153 <a href="#">${_('loading...')}</a> | 153 <a href="#">${_('loading...')}</a> |
154 </li> | 154 </li> |
155 </ul> | 155 </ul> |
156 </li> | 156 </li> |
157 | 157 |
158 <li ${is_current('summary')}> | 158 <li ${is_current('summary')}> |
159 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> | 159 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
160 <span class="icon"> | 160 <span class="icon"> |
161 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> | 161 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
162 </span> | 162 </span> |
163 <span>${_('Summary')}</span> | 163 <span>${_('Summary')}</span> |
164 </a> | 164 </a> |
165 </li> | 165 </li> |
166 ##<li ${is_current('shortlog')}> | 166 ##<li ${is_current('shortlog')}> |
167 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> | 167 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> |
168 ## <span class="icon"> | 168 ## <span class="icon"> |
169 ## <img src="${h.url('/images/icons/application_view_list.png')}" alt="${_('Shortlog')}" /> | 169 ## <img src="${h.url('/images/icons/application_view_list.png')}" alt="${_('Shortlog')}" /> |
170 ## </span> | 170 ## </span> |
171 ## <span>${_('Shortlog')}</span> | 171 ## <span>${_('Shortlog')}</span> |
172 ## </a> | 172 ## </a> |
173 ##</li> | 173 ##</li> |
174 <li ${is_current('changelog')}> | 174 <li ${is_current('changelog')}> |
175 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> | 175 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
176 <span class="icon"> | 176 <span class="icon"> |
177 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> | 177 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> |
178 </span> | 178 </span> |
179 <span>${_('Changelog')}</span> | 179 <span>${_('Changelog')}</span> |
180 </a> | 180 </a> |
181 </li> | 181 </li> |
182 | 182 |
183 <li ${is_current('switch_to')}> | 183 <li ${is_current('switch_to')}> |
184 <a id="branch_tag_switcher" title="${_('Switch to')}" href="#"> | 184 <a id="branch_tag_switcher" title="${_('Switch to')}" href="#"> |
185 <span class="icon"> | 185 <span class="icon"> |
186 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> | 186 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> |
187 </span> | 187 </span> |
188 <span>${_('Switch to')}</span> | 188 <span>${_('Switch to')}</span> |
189 </a> | 189 </a> |
190 <ul id="switch_to_list" class="switch_to"> | 190 <ul id="switch_to_list" class="switch_to"> |
191 <li><a href="#">${_('loading...')}</a></li> | 191 <li><a href="#">${_('loading...')}</a></li> |
192 </ul> | 192 </ul> |
193 </li> | 193 </li> |
194 <li ${is_current('files')}> | 194 <li ${is_current('files')}> |
195 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> | 195 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
196 <span class="icon"> | 196 <span class="icon"> |
197 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> | 197 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
198 </span> | 198 </span> |
199 <span>${_('Files')}</span> | 199 <span>${_('Files')}</span> |
200 </a> | 200 </a> |
201 </li> | 201 </li> |
202 | 202 |
203 <li ${is_current('options')}> | 203 <li ${is_current('options')}> |
204 <a title="${_('Options')}" href="#"> | 204 <a title="${_('Options')}" href="#"> |
205 <span class="icon"> | 205 <span class="icon"> |
206 <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> | 206 <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> |
207 </span> | 207 </span> |
208 <span>${_('Options')}</span> | 208 <span>${_('Options')}</span> |
209 </a> | 209 </a> |
210 <ul> | 210 <ul> |
211 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): | 211 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
212 %if h.HasPermissionAll('hg.admin')('access settings on repository'): | 212 %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
213 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> | 213 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
215 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> | 215 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
216 %endif | 216 %endif |
217 %endif | 217 %endif |
218 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> | 218 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> |
219 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> | 219 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> |
220 | 220 |
221 % if h.HasPermissionAll('hg.admin')('access admin main page'): | 221 % if h.HasPermissionAll('hg.admin')('access admin main page'): |
222 <li> | 222 <li> |
223 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} | 223 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
224 <%def name="admin_menu()"> | 224 <%def name="admin_menu()"> |
225 <ul> | 225 <ul> |
226 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li> | 226 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li> |
227 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> | 227 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
228 <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> | 228 <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
229 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> | 229 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
230 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> | 230 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> |
231 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> | 231 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
232 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> | 232 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
233 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> | 233 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
234 </ul> | 234 </ul> |
235 </%def> | 235 </%def> |
236 | 236 |
237 ${admin_menu()} | 237 ${admin_menu()} |
238 </li> | 238 </li> |
239 % endif | 239 % endif |
240 </ul> | 240 </ul> |
241 </li> | 241 </li> |
242 | 242 |
243 <li> | 243 <li> |
244 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> | 244 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> |
245 <span class="icon_short"> | 245 <span class="icon_short"> |
246 <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> | 246 <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> |
247 </span> | 247 </span> |
253 <span class="icon_short"> | 253 <span class="icon_short"> |
254 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> | 254 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> |
255 </span> | 255 </span> |
256 <span class="short">${c.repository_forks}</span> | 256 <span class="short">${c.repository_forks}</span> |
257 </a> | 257 </a> |
258 </li> | 258 </li> |
259 </ul> | 259 </ul> |
260 <script type="text/javascript"> | 260 <script type="text/javascript"> |
261 YUE.on('repo_switcher','mouseover',function(){ | 261 YUE.on('repo_switcher','mouseover',function(){ |
262 function qfilter(){ | 262 function qfilter(){ |
263 var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | 263 var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); |
264 var target = 'q_filter_rs'; | 264 var target = 'q_filter_rs'; |
265 var func = function(node){ | 265 var func = function(node){ |
266 return node.parentNode; | 266 return node.parentNode; |
267 } | 267 } |
268 q_filter(target,nodes,func); | 268 q_filter(target,nodes,func); |
269 } | 269 } |
270 var loaded = YUD.hasClass('repo_switcher','loaded'); | 270 var loaded = YUD.hasClass('repo_switcher','loaded'); |
271 if(!loaded){ | 271 if(!loaded){ |
272 YUD.addClass('repo_switcher','loaded'); | 272 YUD.addClass('repo_switcher','loaded'); |
273 ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | 273 ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
287 function(o){YUD.removeClass('branch_tag_switcher','loaded');} | 287 function(o){YUD.removeClass('branch_tag_switcher','loaded');} |
288 ,null); | 288 ,null); |
289 } | 289 } |
290 return false; | 290 return false; |
291 }); | 291 }); |
292 </script> | 292 </script> |
293 %else: | 293 %else: |
294 ##ROOT MENU | 294 ##ROOT MENU |
295 <ul id="quick"> | 295 <ul id="quick"> |
296 <li> | 296 <li> |
297 <a title="${_('Home')}" href="${h.url('home')}"> | 297 <a title="${_('Home')}" href="${h.url('home')}"> |
298 <span class="icon"> | 298 <span class="icon"> |
299 <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" /> | 299 <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" /> |
300 </span> | 300 </span> |
301 <span>${_('Home')}</span> | 301 <span>${_('Home')}</span> |
302 </a> | 302 </a> |
303 </li> | 303 </li> |
304 % if c.rhodecode_user.username != 'default': | 304 % if c.rhodecode_user.username != 'default': |
305 <li> | 305 <li> |
306 <a title="${_('Journal')}" href="${h.url('journal')}"> | 306 <a title="${_('Journal')}" href="${h.url('journal')}"> |
307 <span class="icon"> | 307 <span class="icon"> |
308 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> | 308 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> |
309 </span> | 309 </span> |
310 <span>${_('Journal')}</span> | 310 <span>${_('Journal')}</span> |
311 </a> | 311 </a> |
312 </li> | 312 </li> |
313 % endif | 313 % endif |
314 <li> | 314 <li> |
315 <a title="${_('Search')}" href="${h.url('search')}"> | 315 <a title="${_('Search')}" href="${h.url('search')}"> |
316 <span class="icon"> | 316 <span class="icon"> |
317 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> | 317 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> |
318 </span> | 318 </span> |
319 <span>${_('Search')}</span> | 319 <span>${_('Search')}</span> |
320 </a> | 320 </a> |
321 </li> | 321 </li> |
322 | 322 |
323 %if h.HasPermissionAll('hg.admin')('access admin main page'): | 323 %if h.HasPermissionAll('hg.admin')('access admin main page'): |
324 <li ${is_current('admin')}> | 324 <li ${is_current('admin')}> |
325 <a title="${_('Admin')}" href="${h.url('admin_home')}"> | 325 <a title="${_('Admin')}" href="${h.url('admin_home')}"> |
326 <span class="icon"> | 326 <span class="icon"> |
327 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> | 327 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> |
328 </span> | 328 </span> |
329 <span>${_('Admin')}</span> | 329 <span>${_('Admin')}</span> |
330 </a> | 330 </a> |
331 ${admin_menu()} | 331 ${admin_menu()} |
332 </li> | 332 </li> |
333 %endif | 333 %endif |
334 </ul> | 334 </ul> |