Show More
@@ -1,371 +1,364 b'' | |||
|
1 | 1 | ## -*- coding: utf-8 -*- |
|
2 | 2 | <%inherit file="root.html"/> |
|
3 | 3 | |
|
4 | 4 | <!-- HEADER --> |
|
5 | 5 | <div id="header"> |
|
6 | 6 | <div id="header-inner" class="title hover"> |
|
7 | 7 | <div id="logo"> |
|
8 | 8 | <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1> |
|
9 | 9 | </div> |
|
10 | 10 | <!-- MENU --> |
|
11 | 11 | ${self.page_nav()} |
|
12 | 12 | <!-- END MENU --> |
|
13 | 13 | ${self.body()} |
|
14 | 14 | </div> |
|
15 | 15 | </div> |
|
16 | 16 | <!-- END HEADER --> |
|
17 | 17 | |
|
18 | 18 | <!-- CONTENT --> |
|
19 | 19 | <div id="content"> |
|
20 | 20 | <div class="flash_msg"> |
|
21 | 21 | <% messages = h.flash.pop_messages() %> |
|
22 | 22 | % if messages: |
|
23 | 23 | <ul id="flash-messages"> |
|
24 | 24 | % for message in messages: |
|
25 | 25 | <li class="${message.category}_msg">${message}</li> |
|
26 | 26 | % endfor |
|
27 | 27 | </ul> |
|
28 | 28 | % endif |
|
29 | 29 | </div> |
|
30 | 30 | <div id="main"> |
|
31 | 31 | ${next.main()} |
|
32 | 32 | </div> |
|
33 | 33 | </div> |
|
34 | 34 | <!-- END CONTENT --> |
|
35 | 35 | |
|
36 | 36 | <!-- FOOTER --> |
|
37 | 37 | <div id="footer"> |
|
38 | 38 | <div id="footer-inner" class="title"> |
|
39 | 39 | <div> |
|
40 | 40 | <p class="footer-link"> |
|
41 | 41 | <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> |
|
42 | 42 | </p> |
|
43 | 43 | <p class="footer-link-right"> |
|
44 | 44 | <a href="${h.url('rhodecode_official')}">RhodeCode${'-%s' % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}</a> |
|
45 | 45 | ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski |
|
46 | 46 | </p> |
|
47 | 47 | </div> |
|
48 | 48 | </div> |
|
49 | 49 | </div> |
|
50 | 50 | <!-- END FOOTER --> |
|
51 | 51 | |
|
52 | 52 | ### MAKO DEFS ### |
|
53 | 53 | <%def name="page_nav()"> |
|
54 | 54 | ${self.menu()} |
|
55 | 55 | </%def> |
|
56 | 56 | |
|
57 | 57 | <%def name="breadcrumbs()"> |
|
58 | 58 | <div class="breadcrumbs"> |
|
59 | 59 | ${self.breadcrumbs_links()} |
|
60 | 60 | </div> |
|
61 | 61 | </%def> |
|
62 | 62 | |
|
63 | 63 | <%def name="usermenu()"> |
|
64 | 64 | ## USER MENU |
|
65 | 65 | <li> |
|
66 | 66 | <a class="menu_link" id="quick_login_link"> |
|
67 | 67 | <span class="icon" style="padding:5px 5px 0px 5px"> |
|
68 | 68 | <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar"> |
|
69 | 69 | </span> |
|
70 | 70 | %if c.rhodecode_user.username != 'default': |
|
71 | 71 | <span class="menu_link_user">${c.rhodecode_user.username}</span> |
|
72 | 72 | %if c.unread_notifications != 0: |
|
73 | 73 | <span class="menu_link_notifications">${c.unread_notifications}</span> |
|
74 | 74 | %endif |
|
75 | 75 | %else: |
|
76 | 76 | <span>${_('Not logged in')}</span> |
|
77 | 77 | %endif |
|
78 | 78 | </a> |
|
79 | 79 | |
|
80 | 80 | <div class="user-menu"> |
|
81 | 81 | <div id="quick_login"> |
|
82 | 82 | %if c.rhodecode_user.username == 'default': |
|
83 | 83 | <h4>${_('Login to your account')}</h4> |
|
84 | 84 | ${h.form(h.url('login_home',came_from=h.url.current()))} |
|
85 | 85 | <div class="form"> |
|
86 | 86 | <div class="fields"> |
|
87 | 87 | <div class="field"> |
|
88 | 88 | <div class="label"> |
|
89 | 89 | <label for="username">${_('Username')}:</label> |
|
90 | 90 | </div> |
|
91 | 91 | <div class="input"> |
|
92 | 92 | ${h.text('username',class_='focus',size=40)} |
|
93 | 93 | </div> |
|
94 | 94 | |
|
95 | 95 | </div> |
|
96 | 96 | <div class="field"> |
|
97 | 97 | <div class="label"> |
|
98 | 98 | <label for="password">${_('Password')}:</label> |
|
99 | 99 | </div> |
|
100 | 100 | <div class="input"> |
|
101 | 101 | ${h.password('password',class_='focus',size=40)} |
|
102 | 102 | </div> |
|
103 | 103 | |
|
104 | 104 | </div> |
|
105 | 105 | <div class="buttons"> |
|
106 | 106 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
|
107 | 107 | <div class="register"> |
|
108 | 108 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
|
109 | 109 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
|
110 | 110 | %endif |
|
111 | 111 | </div> |
|
112 | 112 | <div class="submit"> |
|
113 | 113 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} |
|
114 | 114 | </div> |
|
115 | 115 | </div> |
|
116 | 116 | </div> |
|
117 | 117 | </div> |
|
118 | 118 | ${h.end_form()} |
|
119 | 119 | %else: |
|
120 | 120 | <div class="links_left"> |
|
121 | 121 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> |
|
122 | 122 | <div class="email">${c.rhodecode_user.email}</div> |
|
123 | 123 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> |
|
124 | 124 | <div class="inbox"><a href="${h.url('notifications')}">${_('Inbox')}: ${c.unread_notifications}</a></div> |
|
125 | 125 | </div> |
|
126 | 126 | <div class="links_right"> |
|
127 | 127 | <ol class="links"> |
|
128 | 128 | <li>${h.link_to(_(u'Home'),h.url('home'))}</li> |
|
129 | 129 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> |
|
130 | 130 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> |
|
131 | 131 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> |
|
132 | 132 | </ol> |
|
133 | 133 | </div> |
|
134 | 134 | %endif |
|
135 | 135 | </div> |
|
136 | 136 | </div> |
|
137 | 137 | |
|
138 | 138 | </li> |
|
139 | 139 | </%def> |
|
140 | 140 | |
|
141 | 141 | <%def name="menu(current=None)"> |
|
142 | 142 | <% |
|
143 | 143 | def is_current(selected): |
|
144 | 144 | if selected == current: |
|
145 | 145 | return h.literal('class="current"') |
|
146 | 146 | %> |
|
147 | ## we render this menu only not for those pages | |
|
148 | %if current not in ['home','admin', 'search', 'journal']: | |
|
149 | ##REGULAR MENU | |
|
150 | 147 |
|
|
151 | 148 |
|
|
152 | 149 |
|
|
153 | 150 |
|
|
154 | 151 |
|
|
155 | 152 |
|
|
156 | 153 |
|
|
157 | 154 |
|
|
158 | 155 |
|
|
159 | 156 |
|
|
160 | 157 |
|
|
161 | 158 |
|
|
162 | 159 |
|
|
163 | 160 |
|
|
164 | 161 |
|
|
165 | ||
|
162 | ## we render this menu only not for those pages | |
|
163 | %if current not in ['home','admin', 'search', 'journal']: | |
|
164 | ##REGULAR MENU | |
|
166 | 165 |
|
|
167 | 166 |
|
|
168 | 167 |
|
|
169 | 168 |
|
|
170 | 169 |
|
|
171 | 170 |
|
|
172 | 171 |
|
|
173 | 172 |
|
|
174 | 173 |
|
|
175 | 174 |
|
|
176 | 175 |
|
|
177 | 176 |
|
|
178 | 177 |
|
|
179 | 178 |
|
|
180 | 179 |
|
|
181 | 180 |
|
|
182 | ||
|
183 | 181 |
|
|
184 | 182 |
|
|
185 | 183 |
|
|
186 | 184 |
|
|
187 | 185 |
|
|
188 | 186 |
|
|
189 | 187 |
|
|
190 | 188 |
|
|
191 | 189 |
|
|
192 | 190 |
|
|
193 | 191 |
|
|
194 | 192 |
|
|
195 | 193 |
|
|
196 | 194 |
|
|
197 | 195 |
|
|
198 | 196 |
|
|
199 | 197 |
|
|
200 | 198 |
|
|
201 | 199 |
|
|
202 | ||
|
203 | 200 |
|
|
204 | 201 |
|
|
205 | 202 |
|
|
206 | 203 |
|
|
207 | 204 |
|
|
208 | 205 |
|
|
209 | 206 |
|
|
210 | 207 |
|
|
211 | 208 |
|
|
212 | 209 |
|
|
213 | 210 |
|
|
214 | 211 |
|
|
215 | 212 |
|
|
216 | 213 |
|
|
217 | 214 |
|
|
218 | 215 | |
|
219 | 216 |
|
|
220 | 217 |
|
|
221 | 218 |
|
|
222 | 219 |
|
|
223 | 220 |
|
|
224 | 221 |
|
|
225 | 222 |
|
|
226 | 223 |
|
|
227 | 224 | |
|
228 | 225 |
|
|
229 | 226 |
|
|
230 | 227 |
|
|
231 | 228 |
|
|
232 | 229 |
|
|
233 | 230 |
|
|
234 | 231 |
|
|
235 | 232 | |
|
236 | 233 |
|
|
237 | 234 |
|
|
238 | 235 |
|
|
239 | 236 |
|
|
240 | 237 |
|
|
241 | 238 |
|
|
242 | 239 |
|
|
243 | 240 |
|
|
244 | 241 |
|
|
245 | 242 |
|
|
246 | 243 |
|
|
247 | 244 |
|
|
248 | 245 |
|
|
249 | 246 |
|
|
250 | 247 |
|
|
251 | 248 |
|
|
252 | 249 |
|
|
253 | 250 |
|
|
254 | 251 |
|
|
255 | 252 |
|
|
256 | 253 |
|
|
257 | 254 |
|
|
258 | ||
|
259 | 255 |
|
|
260 | 256 |
|
|
261 | 257 |
|
|
262 | 258 |
|
|
263 | 259 |
|
|
264 | 260 |
|
|
265 | 261 |
|
|
266 | 262 |
|
|
267 | 263 |
|
|
268 | 264 |
|
|
269 | 265 |
|
|
270 | 266 |
|
|
271 | 267 |
|
|
272 | 268 |
|
|
273 | 269 |
|
|
274 | 270 |
|
|
275 | 271 |
|
|
276 | 272 |
|
|
277 | 273 |
|
|
278 | 274 |
|
|
279 | 275 |
|
|
280 | 276 |
|
|
281 | 277 |
|
|
282 | 278 |
|
|
283 | 279 |
|
|
284 | </ul> | |
|
285 | 280 | <script type="text/javascript"> |
|
286 | YUE.on('repo_switcher','mouseover',function(){ | |
|
287 | function qfilter(){ | |
|
288 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
|
289 | var target = 'q_filter_rs'; | |
|
290 | var func = function(node){ | |
|
291 | return node.parentNode; | |
|
292 | } | |
|
293 | q_filter(target,nodes,func); | |
|
294 | } | |
|
295 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
|
296 | if(!loaded){ | |
|
297 | YUD.addClass('repo_switcher','loaded'); | |
|
298 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
|
299 | function(o){qfilter();}, | |
|
300 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
|
301 | ,null); | |
|
302 | } | |
|
303 | return false; | |
|
304 | }); | |
|
305 | ||
|
306 | 281 | YUE.on('branch_tag_switcher','mouseover',function(){ |
|
307 | 282 | var loaded = YUD.hasClass('branch_tag_switcher','loaded'); |
|
308 | 283 | if(!loaded){ |
|
309 | 284 | YUD.addClass('branch_tag_switcher','loaded'); |
|
310 | 285 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list', |
|
311 | 286 | function(o){}, |
|
312 | 287 | function(o){YUD.removeClass('branch_tag_switcher','loaded');} |
|
313 | 288 | ,null); |
|
314 | 289 | } |
|
315 | 290 | return false; |
|
316 | 291 | }); |
|
317 | 292 | </script> |
|
318 | 293 | %else: |
|
319 | 294 | ##ROOT MENU |
|
320 | <ul id="quick"> | |
|
321 | 295 |
|
|
322 | 296 |
|
|
323 | 297 |
|
|
324 | 298 |
|
|
325 | 299 |
|
|
326 | 300 |
|
|
327 | 301 |
|
|
328 | 302 |
|
|
329 | 303 |
|
|
330 | 304 |
|
|
331 | 305 |
|
|
332 | 306 |
|
|
333 | 307 |
|
|
334 | 308 |
|
|
335 | 309 |
|
|
336 | 310 |
|
|
337 | 311 |
|
|
338 | 312 |
|
|
339 | 313 |
|
|
340 | 314 |
|
|
341 | 315 |
|
|
342 | 316 |
|
|
343 | 317 |
|
|
344 | 318 |
|
|
345 | 319 |
|
|
346 | 320 |
|
|
347 | 321 |
|
|
348 | 322 |
|
|
349 | 323 |
|
|
350 | 324 |
|
|
351 | 325 |
|
|
352 | 326 |
|
|
353 | 327 |
|
|
354 | 328 |
|
|
355 | 329 |
|
|
356 | ||
|
357 | 330 |
|
|
358 | 331 |
|
|
359 | 332 |
|
|
360 | 333 |
|
|
361 | 334 |
|
|
362 | 335 |
|
|
363 | 336 |
|
|
364 | 337 |
|
|
365 | 338 |
|
|
366 | 339 |
|
|
367 | 340 |
|
|
368 | 341 |
|
|
369 | </ul> | |
|
370 | 342 | %endif |
|
343 | <script type="text/javascript"> | |
|
344 | YUE.on('repo_switcher','mouseover',function(){ | |
|
345 | function qfilter(){ | |
|
346 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
|
347 | var target = 'q_filter_rs'; | |
|
348 | var func = function(node){ | |
|
349 | return node.parentNode; | |
|
350 | } | |
|
351 | q_filter(target,nodes,func); | |
|
352 | } | |
|
353 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
|
354 | if(!loaded){ | |
|
355 | YUD.addClass('repo_switcher','loaded'); | |
|
356 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
|
357 | function(o){qfilter();}, | |
|
358 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
|
359 | ,null); | |
|
360 | } | |
|
361 | return false; | |
|
362 | }); | |
|
363 | </script> | |
|
371 | 364 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now