##// END OF EJS Templates
quick login toggle
marcink -
r1318:9778e35e beta
parent child Browse files
Show More
@@ -1,383 +1,399
1 ## -*- coding: utf-8 -*-
1 ## -*- coding: utf-8 -*-
2 <%inherit file="root.html"/>
2 <%inherit file="root.html"/>
3
3
4 <!-- HEADER -->
4 <!-- HEADER -->
5 <div id="header">
5 <div id="header">
6 <!-- user -->
6 <!-- user -->
7 <ul id="logged-user">
7 <ul id="logged-user">
8 <li class="first">
8 <li class="first">
9
9
10 <div id="quick_login" style="display:none">
10 <div id="quick_login" style="display:none">
11 ${h.form(h.url('login_home',came_from=h.url.current()))}
11 ${h.form(h.url('login_home',came_from=h.url.current()))}
12 <div class="form">
12 <div class="form">
13 <div class="fields">
13 <div class="fields">
14 <div class="field">
14 <div class="field">
15 <div class="label">
15 <div class="label">
16 <label for="username">${_('Username')}:</label>
16 <label for="username">${_('Username')}:</label>
17 </div>
17 </div>
18 <div class="input">
18 <div class="input">
19 ${h.text('username',class_='focus',size=40)}
19 ${h.text('username',class_='focus',size=40)}
20 </div>
20 </div>
21
21
22 </div>
22 </div>
23 <div class="field">
23 <div class="field">
24 <div class="label">
24 <div class="label">
25 <label for="password">${_('Password')}:</label>
25 <label for="password">${_('Password')}:</label>
26 </div>
26 </div>
27 <div class="input">
27 <div class="input">
28 ${h.password('password',class_='focus',size=40)}
28 ${h.password('password',class_='focus',size=40)}
29 </div>
29 </div>
30
30
31 </div>
31 </div>
32 <div class="buttons">
32 <div class="buttons">
33 ${h.submit('sign_in','Sign In',class_="ui-button")}
33 ${h.submit('sign_in','Sign In',class_="ui-button")}
34 </div>
34 </div>
35 </div>
35 </div>
36 </div>
36 </div>
37 ${h.end_form()}
37 ${h.end_form()}
38 <script type="text/javascript">
39 YUE.on('quick_login_link','click',function(e){
40
41 if(YUD.hasClass('quick_login_link','enabled')){
42 YUD.setStyle('quick_login','display','none');
43 YUD.removeClass('quick_login_link','enabled');
44 }
45 else{
46 YUD.setStyle('quick_login','display','');
47 YUD.addClass('quick_login_link','enabled');
48 }
49 //make sure we don't redirect
50 YUE.preventDefault(e);
51 });
52
53 </script>
38 </div>
54 </div>
39
55
40 <div class="gravatar">
56 <div class="gravatar">
41 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" />
57 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" />
42 </div>
58 </div>
43 <div class="account">
59 <div class="account">
44 %if c.rhodecode_user.username == 'default':
60 %if c.rhodecode_user.username == 'default':
45 <a href="${h.url('public_journal')}">${_('Public journal')}</a>
61 <a href="${h.url('public_journal')}">${_('Public journal')}</a>
46 %else:
62 %else:
47 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
63 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
48 %endif
64 %endif
49 </div>
65 </div>
50 </li>
66 </li>
51 <li>
67 <li>
52 <a href="${h.url('home')}">${_('Home')}</a>
68 <a href="${h.url('home')}">${_('Home')}</a>
53 </li>
69 </li>
54 %if c.rhodecode_user.username != 'default':
70 %if c.rhodecode_user.username != 'default':
55 <li>
71 <li>
56 <a href="${h.url('journal')}">${_('Journal')}</a>
72 <a href="${h.url('journal')}">${_('Journal')}</a>
57 ##(${c.unread_journal}
73 ##(${c.unread_journal}
58 </li>
74 </li>
59 %endif
75 %endif
60 %if c.rhodecode_user.username == 'default':
76 %if c.rhodecode_user.username == 'default':
61 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'))}</li>
77 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'),id='quick_login_link')}</li>
62 %else:
78 %else:
63 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
79 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
64 %endif
80 %endif
65 </ul>
81 </ul>
66 <!-- end user -->
82 <!-- end user -->
67 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
83 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
68 <div id="logo">
84 <div id="logo">
69 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
85 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
70 </div>
86 </div>
71 <!-- MENU -->
87 <!-- MENU -->
72 ${self.page_nav()}
88 ${self.page_nav()}
73 <!-- END MENU -->
89 <!-- END MENU -->
74 ${self.body()}
90 ${self.body()}
75 </div>
91 </div>
76 </div>
92 </div>
77 <!-- END HEADER -->
93 <!-- END HEADER -->
78
94
79 <!-- CONTENT -->
95 <!-- CONTENT -->
80 <div id="content">
96 <div id="content">
81 <div class="flash_msg">
97 <div class="flash_msg">
82 <% messages = h.flash.pop_messages() %>
98 <% messages = h.flash.pop_messages() %>
83 % if messages:
99 % if messages:
84 <ul id="flash-messages">
100 <ul id="flash-messages">
85 % for message in messages:
101 % for message in messages:
86 <li class="${message.category}_msg">${message}</li>
102 <li class="${message.category}_msg">${message}</li>
87 % endfor
103 % endfor
88 </ul>
104 </ul>
89 % endif
105 % endif
90 </div>
106 </div>
91 <div id="main">
107 <div id="main">
92 ${next.main()}
108 ${next.main()}
93 </div>
109 </div>
94 </div>
110 </div>
95 <!-- END CONTENT -->
111 <!-- END CONTENT -->
96
112
97 <!-- FOOTER -->
113 <!-- FOOTER -->
98 <div id="footer">
114 <div id="footer">
99 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
115 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
100 <div>
116 <div>
101 <p class="footer-link">
117 <p class="footer-link">
102 <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a>
118 <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a>
103 </p>
119 </p>
104 <p class="footer-link-right">
120 <p class="footer-link-right">
105 <a href="${h.url('rhodecode_official')}">RhodeCode</a>
121 <a href="${h.url('rhodecode_official')}">RhodeCode</a>
106 ${c.rhodecode_version} &copy; 2010-${h.datetime.today().year} by Marcin Kuzminski
122 ${c.rhodecode_version} &copy; 2010-${h.datetime.today().year} by Marcin Kuzminski
107 </p>
123 </p>
108 </div>
124 </div>
109 </div>
125 </div>
110 <script type="text/javascript">
126 <script type="text/javascript">
111 function tooltip_activate(){
127 function tooltip_activate(){
112 ${h.tooltip.activate()}
128 ${h.tooltip.activate()}
113 }
129 }
114 tooltip_activate();
130 tooltip_activate();
115 </script>
131 </script>
116 </div>
132 </div>
117 <!-- END FOOTER -->
133 <!-- END FOOTER -->
118
134
119 ### MAKO DEFS ###
135 ### MAKO DEFS ###
120 <%def name="page_nav()">
136 <%def name="page_nav()">
121 ${self.menu()}
137 ${self.menu()}
122 </%def>
138 </%def>
123
139
124 <%def name="breadcrumbs()">
140 <%def name="breadcrumbs()">
125 <div class="breadcrumbs">
141 <div class="breadcrumbs">
126 ${self.breadcrumbs_links()}
142 ${self.breadcrumbs_links()}
127 </div>
143 </div>
128 </%def>
144 </%def>
129
145
130
146
131 <%def name="menu(current=None)">
147 <%def name="menu(current=None)">
132 <%
148 <%
133 def is_current(selected):
149 def is_current(selected):
134 if selected == current:
150 if selected == current:
135 return h.literal('class="current"')
151 return h.literal('class="current"')
136 %>
152 %>
137 %if current not in ['home','admin']:
153 %if current not in ['home','admin']:
138 ##REGULAR MENU
154 ##REGULAR MENU
139 <ul id="quick">
155 <ul id="quick">
140 <!-- repo switcher -->
156 <!-- repo switcher -->
141 <li>
157 <li>
142 <a id="repo_switcher" title="${_('Switch repository')}" href="#">
158 <a id="repo_switcher" title="${_('Switch repository')}" href="#">
143 <span class="icon">
159 <span class="icon">
144 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" />
160 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" />
145 </span>
161 </span>
146 <span>&darr;</span>
162 <span>&darr;</span>
147 </a>
163 </a>
148 <ul id="repo_switcher_list" class="repo_switcher">
164 <ul id="repo_switcher_list" class="repo_switcher">
149 <li>
165 <li>
150 <a href="#">${_('loading...')}</a>
166 <a href="#">${_('loading...')}</a>
151 </li>
167 </li>
152 </ul>
168 </ul>
153 <script type="text/javascript">
169 <script type="text/javascript">
154 YUE.on('repo_switcher','mouseover',function(){
170 YUE.on('repo_switcher','mouseover',function(){
155 function qfilter(){
171 function qfilter(){
156 var S = YAHOO.util.Selector;
172 var S = YAHOO.util.Selector;
157
173
158 var q_filter = YUD.get('q_filter_rs');
174 var q_filter = YUD.get('q_filter_rs');
159 var F = YAHOO.namespace('q_filter_rs');
175 var F = YAHOO.namespace('q_filter_rs');
160
176
161 YUE.on(q_filter,'click',function(){
177 YUE.on(q_filter,'click',function(){
162 q_filter.value = '';
178 q_filter.value = '';
163 });
179 });
164
180
165 F.filterTimeout = null;
181 F.filterTimeout = null;
166
182
167 F.updateFilter = function() {
183 F.updateFilter = function() {
168 // Reset timeout
184 // Reset timeout
169 F.filterTimeout = null;
185 F.filterTimeout = null;
170
186
171 var obsolete = [];
187 var obsolete = [];
172 var nodes = S.query('ul#repo_switcher_list li a.repo_name');
188 var nodes = S.query('ul#repo_switcher_list li a.repo_name');
173 var req = YUD.get('q_filter_rs').value;
189 var req = YUD.get('q_filter_rs').value;
174 for (n in nodes){
190 for (n in nodes){
175 YUD.setStyle(nodes[n].parentNode,'display','')
191 YUD.setStyle(nodes[n].parentNode,'display','')
176 }
192 }
177 if (req){
193 if (req){
178 for (n in nodes){
194 for (n in nodes){
179 console.log(n);
195 console.log(n);
180 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
196 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) {
181 obsolete.push(nodes[n]);
197 obsolete.push(nodes[n]);
182 }
198 }
183 }
199 }
184 if(obsolete){
200 if(obsolete){
185 for (n in obsolete){
201 for (n in obsolete){
186 YUD.setStyle(obsolete[n].parentNode,'display','none');
202 YUD.setStyle(obsolete[n].parentNode,'display','none');
187 }
203 }
188 }
204 }
189 }
205 }
190 }
206 }
191
207
192 YUE.on(q_filter,'keyup',function(e){
208 YUE.on(q_filter,'keyup',function(e){
193 clearTimeout(F.filterTimeout);
209 clearTimeout(F.filterTimeout);
194 setTimeout(F.updateFilter,600);
210 setTimeout(F.updateFilter,600);
195 });
211 });
196 }
212 }
197 var loaded = YUD.hasClass('repo_switcher','loaded');
213 var loaded = YUD.hasClass('repo_switcher','loaded');
198 if(!loaded){
214 if(!loaded){
199 YUD.addClass('repo_switcher','loaded');
215 YUD.addClass('repo_switcher','loaded');
200 YAHOO.util.Connect.asyncRequest('GET',"${h.url('repo_switcher')}",{
216 YAHOO.util.Connect.asyncRequest('GET',"${h.url('repo_switcher')}",{
201 success:function(o){
217 success:function(o){
202 YUD.get('repo_switcher_list').innerHTML = o.responseText;
218 YUD.get('repo_switcher_list').innerHTML = o.responseText;
203 qfilter();
219 qfilter();
204 },
220 },
205 failure:function(o){
221 failure:function(o){
206 YUD.removeClass('repo_switcher','loaded');
222 YUD.removeClass('repo_switcher','loaded');
207 }
223 }
208 },null);
224 },null);
209 }
225 }
210 return false;
226 return false;
211 });
227 });
212 </script>
228 </script>
213 </li>
229 </li>
214
230
215 <li ${is_current('summary')}>
231 <li ${is_current('summary')}>
216 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
232 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
217 <span class="icon">
233 <span class="icon">
218 <img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" />
234 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" />
219 </span>
235 </span>
220 <span>${_('Summary')}</span>
236 <span>${_('Summary')}</span>
221 </a>
237 </a>
222 </li>
238 </li>
223 ##<li ${is_current('shortlog')}>
239 ##<li ${is_current('shortlog')}>
224 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
240 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
225 ## <span class="icon">
241 ## <span class="icon">
226 ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" />
242 ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" />
227 ## </span>
243 ## </span>
228 ## <span>${_('Shortlog')}</span>
244 ## <span>${_('Shortlog')}</span>
229 ## </a>
245 ## </a>
230 ##</li>
246 ##</li>
231 <li ${is_current('changelog')}>
247 <li ${is_current('changelog')}>
232 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
248 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
233 <span class="icon">
249 <span class="icon">
234 <img src="${h.url("/images/icons/time.png")}" alt="${_('Changelog')}" />
250 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" />
235 </span>
251 </span>
236 <span>${_('Changelog')}</span>
252 <span>${_('Changelog')}</span>
237 </a>
253 </a>
238 </li>
254 </li>
239
255
240 <li ${is_current('switch_to')}>
256 <li ${is_current('switch_to')}>
241 <a title="${_('Switch to')}" href="#">
257 <a title="${_('Switch to')}" href="#">
242 <span class="icon">
258 <span class="icon">
243 <img src="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" />
259 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" />
244 </span>
260 </span>
245 <span>${_('Switch to')}</span>
261 <span>${_('Switch to')}</span>
246 </a>
262 </a>
247 <ul>
263 <ul>
248 <li>
264 <li>
249 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
265 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
250 <ul>
266 <ul>
251 %if c.rhodecode_repo.branches.values():
267 %if c.rhodecode_repo.branches.values():
252 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
268 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
253 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
269 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
254 %endfor
270 %endfor
255 %else:
271 %else:
256 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
272 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
257 %endif
273 %endif
258 </ul>
274 </ul>
259 </li>
275 </li>
260 <li>
276 <li>
261 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
277 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
262 <ul>
278 <ul>
263 %if c.rhodecode_repo.tags.values():
279 %if c.rhodecode_repo.tags.values():
264 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
280 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
265 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
281 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
266 %endfor
282 %endfor
267 %else:
283 %else:
268 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
284 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
269 %endif
285 %endif
270 </ul>
286 </ul>
271 </li>
287 </li>
272 </ul>
288 </ul>
273 </li>
289 </li>
274 <li ${is_current('files')}>
290 <li ${is_current('files')}>
275 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
291 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
276 <span class="icon">
292 <span class="icon">
277 <img src="${h.url("/images/icons/file.png")}" alt="${_('Files')}" />
293 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" />
278 </span>
294 </span>
279 <span>${_('Files')}</span>
295 <span>${_('Files')}</span>
280 </a>
296 </a>
281 </li>
297 </li>
282
298
283 <li ${is_current('options')}>
299 <li ${is_current('options')}>
284 <a title="${_('Options')}" href="#">
300 <a title="${_('Options')}" href="#">
285 <span class="icon">
301 <span class="icon">
286 <img src="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" />
302 <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" />
287 </span>
303 </span>
288 <span>${_('Options')}</span>
304 <span>${_('Options')}</span>
289 </a>
305 </a>
290 <ul>
306 <ul>
291 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
307 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
292 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
308 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
293 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
309 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
294 %else:
310 %else:
295 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
311 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
296 %endif
312 %endif
297 %endif
313 %endif
298 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
314 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
299 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
315 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
300
316
301 % if h.HasPermissionAll('hg.admin')('access admin main page'):
317 % if h.HasPermissionAll('hg.admin')('access admin main page'):
302 <li>
318 <li>
303 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
319 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
304 <%def name="admin_menu()">
320 <%def name="admin_menu()">
305 <ul>
321 <ul>
306 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
322 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
307 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
323 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
308 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
324 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
309 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li>
325 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li>
310 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
326 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
311 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
327 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
312 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
328 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
313 </ul>
329 </ul>
314 </%def>
330 </%def>
315
331
316 ${admin_menu()}
332 ${admin_menu()}
317 </li>
333 </li>
318 % endif
334 % endif
319 </ul>
335 </ul>
320 </li>
336 </li>
321
337
322 <li>
338 <li>
323 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
339 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}">
324 <span class="icon_short">
340 <span class="icon_short">
325 <img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" />
341 <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" />
326 </span>
342 </span>
327 <span id="current_followers_count" class="short">${c.repository_followers}</span>
343 <span id="current_followers_count" class="short">${c.repository_followers}</span>
328 </a>
344 </a>
329 </li>
345 </li>
330 <li>
346 <li>
331 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
347 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}">
332 <span class="icon_short">
348 <span class="icon_short">
333 <img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" />
349 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" />
334 </span>
350 </span>
335 <span class="short">${c.repository_forks}</span>
351 <span class="short">${c.repository_forks}</span>
336 </a>
352 </a>
337 </li>
353 </li>
338
354
339 </ul>
355 </ul>
340 %else:
356 %else:
341 ##ROOT MENU
357 ##ROOT MENU
342 <ul id="quick">
358 <ul id="quick">
343 <li>
359 <li>
344 <a title="${_('Home')}" href="${h.url('home')}">
360 <a title="${_('Home')}" href="${h.url('home')}">
345 <span class="icon">
361 <span class="icon">
346 <img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" />
362 <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" />
347 </span>
363 </span>
348 <span>${_('Home')}</span>
364 <span>${_('Home')}</span>
349 </a>
365 </a>
350 </li>
366 </li>
351 % if c.rhodecode_user.username != 'default':
367 % if c.rhodecode_user.username != 'default':
352 <li>
368 <li>
353 <a title="${_('Journal')}" href="${h.url('journal')}">
369 <a title="${_('Journal')}" href="${h.url('journal')}">
354 <span class="icon">
370 <span class="icon">
355 <img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" />
371 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" />
356 </span>
372 </span>
357 <span>${_('Journal')}</span>
373 <span>${_('Journal')}</span>
358 </a>
374 </a>
359 </li>
375 </li>
360 % endif
376 % endif
361 <li>
377 <li>
362 <a title="${_('Search')}" href="${h.url('search')}">
378 <a title="${_('Search')}" href="${h.url('search')}">
363 <span class="icon">
379 <span class="icon">
364 <img src="${h.url("/images/icons/search_16.png")}" alt="${_('Search')}" />
380 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" />
365 </span>
381 </span>
366 <span>${_('Search')}</span>
382 <span>${_('Search')}</span>
367 </a>
383 </a>
368 </li>
384 </li>
369
385
370 %if h.HasPermissionAll('hg.admin')('access admin main page'):
386 %if h.HasPermissionAll('hg.admin')('access admin main page'):
371 <li ${is_current('admin')}>
387 <li ${is_current('admin')}>
372 <a title="${_('Admin')}" href="${h.url('admin_home')}">
388 <a title="${_('Admin')}" href="${h.url('admin_home')}">
373 <span class="icon">
389 <span class="icon">
374 <img src="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" />
390 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" />
375 </span>
391 </span>
376 <span>${_('Admin')}</span>
392 <span>${_('Admin')}</span>
377 </a>
393 </a>
378 ${admin_menu()}
394 ${admin_menu()}
379 </li>
395 </li>
380 %endif
396 %endif
381 </ul>
397 </ul>
382 %endif
398 %endif
383 </%def> No newline at end of file
399 </%def>
General Comments 0
You need to be logged in to leave comments. Login now