Show More
@@ -1,360 +1,360 b'' | |||||
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 | <div id="header-inner" class="title hover"> |
|
6 | <div id="header-inner" class="title hover"> | |
7 | <div id="logo"> |
|
7 | <div id="logo"> | |
8 | <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1> |
|
8 | <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1> | |
9 | </div> |
|
9 | </div> | |
10 | <!-- MENU --> |
|
10 | <!-- MENU --> | |
11 | ${self.page_nav()} |
|
11 | ${self.page_nav()} | |
12 | <!-- END MENU --> |
|
12 | <!-- END MENU --> | |
13 | ${self.body()} |
|
13 | ${self.body()} | |
14 | </div> |
|
14 | </div> | |
15 | </div> |
|
15 | </div> | |
16 | <!-- END HEADER --> |
|
16 | <!-- END HEADER --> | |
17 |
|
17 | |||
18 | <!-- CONTENT --> |
|
18 | <!-- CONTENT --> | |
19 | <div id="content"> |
|
19 | <div id="content"> | |
20 | <div class="flash_msg"> |
|
20 | <div class="flash_msg"> | |
21 | <% messages = h.flash.pop_messages() %> |
|
21 | <% messages = h.flash.pop_messages() %> | |
22 | % if messages: |
|
22 | % if messages: | |
23 | <ul id="flash-messages"> |
|
23 | <ul id="flash-messages"> | |
24 | % for message in messages: |
|
24 | % for message in messages: | |
25 | <li class="${message.category}_msg">${message}</li> |
|
25 | <li class="${message.category}_msg">${message}</li> | |
26 | % endfor |
|
26 | % endfor | |
27 | </ul> |
|
27 | </ul> | |
28 | % endif |
|
28 | % endif | |
29 | </div> |
|
29 | </div> | |
30 | <div id="main"> |
|
30 | <div id="main"> | |
31 | ${next.main()} |
|
31 | ${next.main()} | |
32 | </div> |
|
32 | </div> | |
33 | </div> |
|
33 | </div> | |
34 | <!-- END CONTENT --> |
|
34 | <!-- END CONTENT --> | |
35 |
|
35 | |||
36 | <!-- FOOTER --> |
|
36 | <!-- FOOTER --> | |
37 | <div id="footer"> |
|
37 | <div id="footer"> | |
38 | <div id="footer-inner" class="title"> |
|
38 | <div id="footer-inner" class="title"> | |
39 | <div> |
|
39 | <div> | |
40 | <p class="footer-link"> |
|
40 | <p class="footer-link"> | |
41 | <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> |
|
41 | <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> | |
42 | </p> |
|
42 | </p> | |
43 | <p class="footer-link-right"> |
|
43 | <p class="footer-link-right"> | |
44 | <a href="${h.url('rhodecode_official')}">RhodeCode${'-%s' % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}</a> |
|
44 | <a href="${h.url('rhodecode_official')}">RhodeCode${'-%s' % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}</a> | |
45 | ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski |
|
45 | ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski | |
46 | </p> |
|
46 | </p> | |
47 | </div> |
|
47 | </div> | |
48 | </div> |
|
48 | </div> | |
49 | </div> |
|
49 | </div> | |
50 | <!-- END FOOTER --> |
|
50 | <!-- END FOOTER --> | |
51 |
|
51 | |||
52 | ### MAKO DEFS ### |
|
52 | ### MAKO DEFS ### | |
53 | <%def name="page_nav()"> |
|
53 | <%def name="page_nav()"> | |
54 | ${self.menu()} |
|
54 | ${self.menu()} | |
55 | </%def> |
|
55 | </%def> | |
56 |
|
56 | |||
57 | <%def name="breadcrumbs()"> |
|
57 | <%def name="breadcrumbs()"> | |
58 | <div class="breadcrumbs"> |
|
58 | <div class="breadcrumbs"> | |
59 | ${self.breadcrumbs_links()} |
|
59 | ${self.breadcrumbs_links()} | |
60 | </div> |
|
60 | </div> | |
61 | </%def> |
|
61 | </%def> | |
62 |
|
62 | |||
63 | <%def name="usermenu()"> |
|
63 | <%def name="usermenu()"> | |
64 | ## USER MENU |
|
64 | ## USER MENU | |
65 | <li> |
|
65 | <li> | |
66 | <a class="menu_link" id="quick_login_link"> |
|
66 | <a class="menu_link" id="quick_login_link"> | |
67 | <span class="icon" style="padding:5px 5px 0px 5px"> |
|
67 | <span class="icon" style="padding:5px 5px 0px 5px"> | |
68 | <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar"> |
|
68 | <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar"> | |
69 | </span> |
|
69 | </span> | |
70 | %if c.rhodecode_user.username != 'default': |
|
70 | %if c.rhodecode_user.username != 'default': | |
71 | <span class="menu_link_user">${c.rhodecode_user.username}</span> |
|
71 | <span class="menu_link_user">${c.rhodecode_user.username}</span> | |
72 | %if c.unread_notifications != 0: |
|
72 | %if c.unread_notifications != 0: | |
73 | <span class="menu_link_notifications">${c.unread_notifications}</span> |
|
73 | <span class="menu_link_notifications">${c.unread_notifications}</span> | |
74 | %endif |
|
74 | %endif | |
75 | %else: |
|
75 | %else: | |
76 | <span>${_('Not logged in')}</span> |
|
76 | <span>${_('Not logged in')}</span> | |
77 | %endif |
|
77 | %endif | |
78 | </a> |
|
78 | </a> | |
79 |
|
79 | |||
80 | <div class="user-menu"> |
|
80 | <div class="user-menu"> | |
81 | <div id="quick_login"> |
|
81 | <div id="quick_login"> | |
82 | %if c.rhodecode_user.username == 'default': |
|
82 | %if c.rhodecode_user.username == 'default': | |
83 | <h4>${_('Login to your account')}</h4> |
|
83 | <h4>${_('Login to your account')}</h4> | |
84 | ${h.form(h.url('login_home',came_from=h.url.current()))} |
|
84 | ${h.form(h.url('login_home',came_from=h.url.current()))} | |
85 | <div class="form"> |
|
85 | <div class="form"> | |
86 | <div class="fields"> |
|
86 | <div class="fields"> | |
87 | <div class="field"> |
|
87 | <div class="field"> | |
88 | <div class="label"> |
|
88 | <div class="label"> | |
89 | <label for="username">${_('Username')}:</label> |
|
89 | <label for="username">${_('Username')}:</label> | |
90 | </div> |
|
90 | </div> | |
91 | <div class="input"> |
|
91 | <div class="input"> | |
92 | ${h.text('username',class_='focus',size=40)} |
|
92 | ${h.text('username',class_='focus',size=40)} | |
93 | </div> |
|
93 | </div> | |
94 |
|
94 | |||
95 | </div> |
|
95 | </div> | |
96 | <div class="field"> |
|
96 | <div class="field"> | |
97 | <div class="label"> |
|
97 | <div class="label"> | |
98 | <label for="password">${_('Password')}:</label> |
|
98 | <label for="password">${_('Password')}:</label> | |
99 | </div> |
|
99 | </div> | |
100 | <div class="input"> |
|
100 | <div class="input"> | |
101 | ${h.password('password',class_='focus',size=40)} |
|
101 | ${h.password('password',class_='focus',size=40)} | |
102 | </div> |
|
102 | </div> | |
103 |
|
103 | |||
104 | </div> |
|
104 | </div> | |
105 | <div class="buttons"> |
|
105 | <div class="buttons"> | |
106 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
|
106 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> | |
107 | <div class="register"> |
|
107 | <div class="register"> | |
108 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
|
108 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | |
109 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
|
109 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} | |
110 | %endif |
|
110 | %endif | |
111 | </div> |
|
111 | </div> | |
112 | <div class="submit"> |
|
112 | <div class="submit"> | |
113 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} |
|
113 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} | |
114 | </div> |
|
114 | </div> | |
115 | </div> |
|
115 | </div> | |
116 | </div> |
|
116 | </div> | |
117 | </div> |
|
117 | </div> | |
118 | ${h.end_form()} |
|
118 | ${h.end_form()} | |
119 | %else: |
|
119 | %else: | |
120 | <div class="links_left"> |
|
120 | <div class="links_left"> | |
121 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> |
|
121 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> | |
122 | <div class="email">${c.rhodecode_user.email}</div> |
|
122 | <div class="email">${c.rhodecode_user.email}</div> | |
123 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> |
|
123 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> | |
124 | <div class="notifications"><a href="${h.url('notifications')}">${_('Notifications')}</a></div> |
|
124 | <div class="notifications"><a href="${h.url('notifications')}">${_('Notifications')}</a></div> | |
125 | <div class="unread">${_('Unread')}: ${c.unread_notifications}</div> |
|
125 | <div class="unread">${_('Unread')}: ${c.unread_notifications}</div> | |
126 | </div> |
|
126 | </div> | |
127 | <div class="links_right"> |
|
127 | <div class="links_right"> | |
128 | <ol class="links"> |
|
128 | <ol class="links"> | |
129 | <li>${h.link_to(_(u'Home'),h.url('home'))}</li> |
|
129 | <li>${h.link_to(_(u'Home'),h.url('home'))}</li> | |
130 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> |
|
130 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> | |
131 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> |
|
131 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> | |
132 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> |
|
132 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> | |
133 | </ol> |
|
133 | </ol> | |
134 | </div> |
|
134 | </div> | |
135 | %endif |
|
135 | %endif | |
136 | </div> |
|
136 | </div> | |
137 | </div> |
|
137 | </div> | |
138 |
|
138 | |||
139 | </li> |
|
139 | </li> | |
140 | </%def> |
|
140 | </%def> | |
141 |
|
141 | |||
142 | <%def name="menu(current=None)"> |
|
142 | <%def name="menu(current=None)"> | |
143 | <% |
|
143 | <% | |
144 | def is_current(selected): |
|
144 | def is_current(selected): | |
145 | if selected == current: |
|
145 | if selected == current: | |
146 | return h.literal('class="current"') |
|
146 | return h.literal('class="current"') | |
147 | %> |
|
147 | %> | |
148 | <ul id="quick"> |
|
148 | <ul id="quick"> | |
149 | <!-- repo switcher --> |
|
149 | <!-- repo switcher --> | |
150 | <li> |
|
150 | <li ${is_current('home')}> | |
151 |
<a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href=" |
|
151 | <a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}"> | |
152 | <span class="icon"> |
|
152 | <span class="icon"> | |
153 | <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> |
|
153 | <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> | |
154 | </span> |
|
154 | </span> | |
155 | <span>${_('Repositories')}</span> |
|
155 | <span>${_('Repositories')}</span> | |
156 | </a> |
|
156 | </a> | |
157 | <ul id="repo_switcher_list" class="repo_switcher"> |
|
157 | <ul id="repo_switcher_list" class="repo_switcher"> | |
158 | <li> |
|
158 | <li> | |
159 | <a href="#">${_('loading...')}</a> |
|
159 | <a href="#">${_('loading...')}</a> | |
160 | </li> |
|
160 | </li> | |
161 | </ul> |
|
161 | </ul> | |
162 | </li> |
|
162 | </li> | |
163 | ## we render this menu only not for those pages |
|
163 | ## we render this menu only not for those pages | |
164 | %if current not in ['home','admin', 'search', 'journal']: |
|
164 | %if current not in ['home','admin', 'search', 'journal']: | |
165 | ##REGULAR MENU |
|
165 | ##REGULAR MENU | |
166 | <li ${is_current('summary')}> |
|
166 | <li ${is_current('summary')}> | |
167 | <a class="menu_link" title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
|
167 | <a class="menu_link" title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> | |
168 | <span class="icon"> |
|
168 | <span class="icon"> | |
169 | <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
|
169 | <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> | |
170 | </span> |
|
170 | </span> | |
171 | <span>${_('Summary')}</span> |
|
171 | <span>${_('Summary')}</span> | |
172 | </a> |
|
172 | </a> | |
173 | </li> |
|
173 | </li> | |
174 | <li ${is_current('changelog')}> |
|
174 | <li ${is_current('changelog')}> | |
175 | <a class="menu_link" title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
|
175 | <a class="menu_link" 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 | <li ${is_current('switch_to')}> |
|
182 | <li ${is_current('switch_to')}> | |
183 | <a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#"> |
|
183 | <a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#"> | |
184 | <span class="icon"> |
|
184 | <span class="icon"> | |
185 | <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> |
|
185 | <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> | |
186 | </span> |
|
186 | </span> | |
187 | <span>${_('Switch to')}</span> |
|
187 | <span>${_('Switch to')}</span> | |
188 | </a> |
|
188 | </a> | |
189 | <ul id="switch_to_list" class="switch_to"> |
|
189 | <ul id="switch_to_list" class="switch_to"> | |
190 | <li><a href="#">${_('loading...')}</a></li> |
|
190 | <li><a href="#">${_('loading...')}</a></li> | |
191 | </ul> |
|
191 | </ul> | |
192 | </li> |
|
192 | </li> | |
193 | <li ${is_current('files')}> |
|
193 | <li ${is_current('files')}> | |
194 | <a class="menu_link" title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
|
194 | <a class="menu_link" title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> | |
195 | <span class="icon"> |
|
195 | <span class="icon"> | |
196 | <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
|
196 | <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> | |
197 | </span> |
|
197 | </span> | |
198 | <span>${_('Files')}</span> |
|
198 | <span>${_('Files')}</span> | |
199 | </a> |
|
199 | </a> | |
200 | </li> |
|
200 | </li> | |
201 | <li ${is_current('options')}> |
|
201 | <li ${is_current('options')}> | |
202 | <a class="menu_link" title="${_('Options')}" href="#"> |
|
202 | <a class="menu_link" title="${_('Options')}" href="#"> | |
203 | <span class="icon"> |
|
203 | <span class="icon"> | |
204 | <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> |
|
204 | <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> | |
205 | </span> |
|
205 | </span> | |
206 | <span>${_('Options')}</span> |
|
206 | <span>${_('Options')}</span> | |
207 | </a> |
|
207 | </a> | |
208 | <ul> |
|
208 | <ul> | |
209 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
|
209 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): | |
210 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
|
210 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): | |
211 | <li>${h.link_to(_('repository settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
|
211 | <li>${h.link_to(_('repository settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> | |
212 | %else: |
|
212 | %else: | |
213 | <li>${h.link_to(_('repository settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
|
213 | <li>${h.link_to(_('repository settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> | |
214 | %endif |
|
214 | %endif | |
215 | %endif |
|
215 | %endif | |
216 |
|
216 | |||
217 | <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> |
|
217 | <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> | |
218 | %if h.is_hg(c.rhodecode_repo): |
|
218 | %if h.is_hg(c.rhodecode_repo): | |
219 | <li>${h.link_to(_('open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li> |
|
219 | <li>${h.link_to(_('open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li> | |
220 | %endif |
|
220 | %endif | |
221 | %if c.rhodecode_db_repo.fork: |
|
221 | %if c.rhodecode_db_repo.fork: | |
222 | <li>${h.link_to(_('compare fork'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name),class_='compare_request')}</li> |
|
222 | <li>${h.link_to(_('compare fork'),h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref=request.GET.get('branch') or 'default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name),class_='compare_request')}</li> | |
223 | %endif |
|
223 | %endif | |
224 | <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> |
|
224 | <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> | |
225 |
|
225 | |||
226 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: |
|
226 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: | |
227 | %if c.rhodecode_db_repo.locked[0]: |
|
227 | %if c.rhodecode_db_repo.locked[0]: | |
228 | <li>${h.link_to(_('unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> |
|
228 | <li>${h.link_to(_('unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> | |
229 | %else: |
|
229 | %else: | |
230 | <li>${h.link_to(_('lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> |
|
230 | <li>${h.link_to(_('lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> | |
231 | %endif |
|
231 | %endif | |
232 | %endif |
|
232 | %endif | |
233 |
|
233 | |||
234 | % if h.HasPermissionAll('hg.admin')('access admin main page'): |
|
234 | % if h.HasPermissionAll('hg.admin')('access admin main page'): | |
235 | <li> |
|
235 | <li> | |
236 | ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
|
236 | ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} | |
237 | <%def name="admin_menu()"> |
|
237 | <%def name="admin_menu()"> | |
238 | <ul> |
|
238 | <ul> | |
239 | <li>${h.link_to(_('admin journal'),h.url('admin_home'),class_='journal')}</li> |
|
239 | <li>${h.link_to(_('admin journal'),h.url('admin_home'),class_='journal')}</li> | |
240 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
|
240 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> | |
241 | <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
|
241 | <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> | |
242 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
|
242 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> | |
243 | <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> |
|
243 | <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> | |
244 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
|
244 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> | |
245 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
|
245 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> | |
246 | <li>${h.link_to(_('defaults'),h.url('defaults'),class_='defaults')}</li> |
|
246 | <li>${h.link_to(_('defaults'),h.url('defaults'),class_='defaults')}</li> | |
247 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
|
247 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> | |
248 | </ul> |
|
248 | </ul> | |
249 | </%def> |
|
249 | </%def> | |
250 | ## ADMIN MENU |
|
250 | ## ADMIN MENU | |
251 | ${admin_menu()} |
|
251 | ${admin_menu()} | |
252 | </li> |
|
252 | </li> | |
253 | % endif |
|
253 | % endif | |
254 | </ul> |
|
254 | </ul> | |
255 | </li> |
|
255 | </li> | |
256 | <li> |
|
256 | <li> | |
257 | <a class="menu_link" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> |
|
257 | <a class="menu_link" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> | |
258 | <span class="icon_short"> |
|
258 | <span class="icon_short"> | |
259 | <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> |
|
259 | <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> | |
260 | </span> |
|
260 | </span> | |
261 | <span id="current_followers_count" class="short">${c.repository_followers}</span> |
|
261 | <span id="current_followers_count" class="short">${c.repository_followers}</span> | |
262 | </a> |
|
262 | </a> | |
263 | </li> |
|
263 | </li> | |
264 | <li> |
|
264 | <li> | |
265 | <a class="menu_link" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> |
|
265 | <a class="menu_link" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> | |
266 | <span class="icon_short"> |
|
266 | <span class="icon_short"> | |
267 | <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> |
|
267 | <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> | |
268 | </span> |
|
268 | </span> | |
269 | <span class="short">${c.repository_forks}</span> |
|
269 | <span class="short">${c.repository_forks}</span> | |
270 | </a> |
|
270 | </a> | |
271 | </li> |
|
271 | </li> | |
272 | <li> |
|
272 | <li> | |
273 | <a class="menu_link" title="${_('Pull requests')}" href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}"> |
|
273 | <a class="menu_link" title="${_('Pull requests')}" href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}"> | |
274 | <span class="icon_short"> |
|
274 | <span class="icon_short"> | |
275 | <img src="${h.url('/images/icons/arrow_join.png')}" alt="${_('Pull requests')}" /> |
|
275 | <img src="${h.url('/images/icons/arrow_join.png')}" alt="${_('Pull requests')}" /> | |
276 | </span> |
|
276 | </span> | |
277 | <span class="short">${c.repository_pull_requests}</span> |
|
277 | <span class="short">${c.repository_pull_requests}</span> | |
278 | </a> |
|
278 | </a> | |
279 | </li> |
|
279 | </li> | |
280 | ${usermenu()} |
|
280 | ${usermenu()} | |
281 | <script type="text/javascript"> |
|
281 | <script type="text/javascript"> | |
282 | YUE.on('branch_tag_switcher','mouseover',function(){ |
|
282 | YUE.on('branch_tag_switcher','mouseover',function(){ | |
283 | var loaded = YUD.hasClass('branch_tag_switcher','loaded'); |
|
283 | var loaded = YUD.hasClass('branch_tag_switcher','loaded'); | |
284 | if(!loaded){ |
|
284 | if(!loaded){ | |
285 | YUD.addClass('branch_tag_switcher','loaded'); |
|
285 | YUD.addClass('branch_tag_switcher','loaded'); | |
286 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list', |
|
286 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list', | |
287 | function(o){}, |
|
287 | function(o){}, | |
288 | function(o){YUD.removeClass('branch_tag_switcher','loaded');} |
|
288 | function(o){YUD.removeClass('branch_tag_switcher','loaded');} | |
289 | ,null); |
|
289 | ,null); | |
290 | } |
|
290 | } | |
291 | return false; |
|
291 | return false; | |
292 | }); |
|
292 | }); | |
293 | </script> |
|
293 | </script> | |
294 | %else: |
|
294 | %else: | |
295 | ##ROOT MENU |
|
295 | ##ROOT MENU | |
296 | %if c.rhodecode_user.username != 'default': |
|
296 | %if c.rhodecode_user.username != 'default': | |
297 | <li ${is_current('journal')}> |
|
297 | <li ${is_current('journal')}> | |
298 | <a class="menu_link" title="${_('Journal')}" href="${h.url('journal')}"> |
|
298 | <a class="menu_link" title="${_('Journal')}" href="${h.url('journal')}"> | |
299 | <span class="icon"> |
|
299 | <span class="icon"> | |
300 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> |
|
300 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> | |
301 | </span> |
|
301 | </span> | |
302 | <span>${_('Journal')}</span> |
|
302 | <span>${_('Journal')}</span> | |
303 | </a> |
|
303 | </a> | |
304 | </li> |
|
304 | </li> | |
305 | %else: |
|
305 | %else: | |
306 | <li ${is_current('journal')}> |
|
306 | <li ${is_current('journal')}> | |
307 | <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}"> |
|
307 | <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}"> | |
308 | <span class="icon"> |
|
308 | <span class="icon"> | |
309 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" /> |
|
309 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" /> | |
310 | </span> |
|
310 | </span> | |
311 | <span>${_('Public journal')}</span> |
|
311 | <span>${_('Public journal')}</span> | |
312 | </a> |
|
312 | </a> | |
313 | </li> |
|
313 | </li> | |
314 | %endif |
|
314 | %endif | |
315 | <li ${is_current('search')}> |
|
315 | <li ${is_current('search')}> | |
316 | <a class="menu_link" title="${_('Search')}" href="${h.url('search')}"> |
|
316 | <a class="menu_link" title="${_('Search')}" href="${h.url('search')}"> | |
317 | <span class="icon"> |
|
317 | <span class="icon"> | |
318 | <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> |
|
318 | <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> | |
319 | </span> |
|
319 | </span> | |
320 | <span>${_('Search')}</span> |
|
320 | <span>${_('Search')}</span> | |
321 | </a> |
|
321 | </a> | |
322 | </li> |
|
322 | </li> | |
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 class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}"> |
|
325 | <a class="menu_link" 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 | ${usermenu()} |
|
334 | ${usermenu()} | |
335 | %endif |
|
335 | %endif | |
336 | <script type="text/javascript"> |
|
336 | <script type="text/javascript"> | |
337 | YUE.on('repo_switcher','mouseover',function(){ |
|
337 | YUE.on('repo_switcher','mouseover',function(){ | |
338 | var target = 'q_filter_rs'; |
|
338 | var target = 'q_filter_rs'; | |
339 | var qfilter_activate = function(){ |
|
339 | var qfilter_activate = function(){ | |
340 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); |
|
340 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
341 | var func = function(node){ |
|
341 | var func = function(node){ | |
342 | return node.parentNode; |
|
342 | return node.parentNode; | |
343 | } |
|
343 | } | |
344 | q_filter(target,nodes,func); |
|
344 | q_filter(target,nodes,func); | |
345 | } |
|
345 | } | |
346 |
|
346 | |||
347 | var loaded = YUD.hasClass('repo_switcher','loaded'); |
|
347 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
348 | if(!loaded){ |
|
348 | if(!loaded){ | |
349 | YUD.addClass('repo_switcher','loaded'); |
|
349 | YUD.addClass('repo_switcher','loaded'); | |
350 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
|
350 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
351 | function(o){qfilter_activate();YUD.get(target).focus()}, |
|
351 | function(o){qfilter_activate();YUD.get(target).focus()}, | |
352 | function(o){YUD.removeClass('repo_switcher','loaded');} |
|
352 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
353 | ,null); |
|
353 | ,null); | |
354 | }else{ |
|
354 | }else{ | |
355 | YUD.get(target).focus(); |
|
355 | YUD.get(target).focus(); | |
356 | } |
|
356 | } | |
357 | return false; |
|
357 | return false; | |
358 | }); |
|
358 | }); | |
359 | </script> |
|
359 | </script> | |
360 | </%def> |
|
360 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now