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