Show More
@@ -1,358 +1,358 | |||||
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 | <div class="user-menu"> |
|
64 | <div class="user-menu"> | |
65 | <div class="container"> |
|
65 | <div class="container"> | |
66 | <div class="gravatar" id="quick_login_link"> |
|
66 | <div class="gravatar" id="quick_login_link"> | |
67 | <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,24)}" /> |
|
67 | <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,24)}" /> | |
68 | </div> |
|
68 | </div> | |
69 | %if c.rhodecode_user.username != 'default' and c.unread_notifications != 0: |
|
69 | %if c.rhodecode_user.username != 'default' and c.unread_notifications != 0: | |
70 | <div class="notifications"> |
|
70 | <div class="notifications"> | |
71 | <a id="notification_counter" href="${h.url('notifications')}">${c.unread_notifications}</a> |
|
71 | <a id="notification_counter" href="${h.url('notifications')}">${c.unread_notifications}</a> | |
72 | </div> |
|
72 | </div> | |
73 | %endif |
|
73 | %endif | |
74 | </div> |
|
74 | </div> | |
75 | <div id="quick_login" style="display:none"> |
|
75 | <div id="quick_login" style="display:none"> | |
76 | %if c.rhodecode_user.username == 'default': |
|
76 | %if c.rhodecode_user.username == 'default': | |
77 | <h4>${_('Login to your account')}</h4> |
|
77 | <h4>${_('Login to your account')}</h4> | |
78 | ${h.form(h.url('login_home',came_from=h.url.current()))} |
|
78 | ${h.form(h.url('login_home',came_from=h.url.current()))} | |
79 | <div class="form"> |
|
79 | <div class="form"> | |
80 | <div class="fields"> |
|
80 | <div class="fields"> | |
81 | <div class="field"> |
|
81 | <div class="field"> | |
82 | <div class="label"> |
|
82 | <div class="label"> | |
83 | <label for="username">${_('Username')}:</label> |
|
83 | <label for="username">${_('Username')}:</label> | |
84 | </div> |
|
84 | </div> | |
85 | <div class="input"> |
|
85 | <div class="input"> | |
86 | ${h.text('username',class_='focus',size=40)} |
|
86 | ${h.text('username',class_='focus',size=40)} | |
87 | </div> |
|
87 | </div> | |
88 |
|
88 | |||
89 | </div> |
|
89 | </div> | |
90 | <div class="field"> |
|
90 | <div class="field"> | |
91 | <div class="label"> |
|
91 | <div class="label"> | |
92 | <label for="password">${_('Password')}:</label> |
|
92 | <label for="password">${_('Password')}:</label> | |
93 | </div> |
|
93 | </div> | |
94 | <div class="input"> |
|
94 | <div class="input"> | |
95 | ${h.password('password',class_='focus',size=40)} |
|
95 | ${h.password('password',class_='focus',size=40)} | |
96 | </div> |
|
96 | </div> | |
97 |
|
97 | |||
98 | </div> |
|
98 | </div> | |
99 | <div class="buttons"> |
|
99 | <div class="buttons"> | |
100 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
|
100 | <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> | |
101 | <div class="register"> |
|
101 | <div class="register"> | |
102 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
|
102 | %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): | |
103 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
|
103 | ${h.link_to(_("Don't have an account ?"),h.url('register'))} | |
104 | %endif |
|
104 | %endif | |
105 | </div> |
|
105 | </div> | |
106 | <div class="submit"> |
|
106 | <div class="submit"> | |
107 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} |
|
107 | ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} | |
108 | </div> |
|
108 | </div> | |
109 | </div> |
|
109 | </div> | |
110 | </div> |
|
110 | </div> | |
111 | </div> |
|
111 | </div> | |
112 | ${h.end_form()} |
|
112 | ${h.end_form()} | |
113 | %else: |
|
113 | %else: | |
114 | <div class="links_left"> |
|
114 | <div class="links_left"> | |
115 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> |
|
115 | <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> | |
116 | <div class="email">${c.rhodecode_user.email}</div> |
|
116 | <div class="email">${c.rhodecode_user.email}</div> | |
117 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> |
|
117 | <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> | |
118 | <div class="inbox"><a href="${h.url('notifications')}">${_('Inbox')}: ${c.unread_notifications}</a></div> |
|
118 | <div class="inbox"><a href="${h.url('notifications')}">${_('Inbox')}: ${c.unread_notifications}</a></div> | |
119 | </div> |
|
119 | </div> | |
120 | <div class="links_right"> |
|
120 | <div class="links_right"> | |
121 | <ol class="links"> |
|
121 | <ol class="links"> | |
122 | <li>${h.link_to(_(u'Home'),h.url('home'))}</li> |
|
122 | <li>${h.link_to(_(u'Home'),h.url('home'))}</li> | |
123 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> |
|
123 | <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> | |
124 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> |
|
124 | <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> | |
125 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> |
|
125 | <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> | |
126 | </ol> |
|
126 | </ol> | |
127 | </div> |
|
127 | </div> | |
128 | %endif |
|
128 | %endif | |
129 | </div> |
|
129 | </div> | |
130 | </div> |
|
130 | </div> | |
131 | </%def> |
|
131 | </%def> | |
132 |
|
132 | |||
133 | <%def name="menu(current=None)"> |
|
133 | <%def name="menu(current=None)"> | |
134 | <% |
|
134 | <% | |
135 | def is_current(selected): |
|
135 | def is_current(selected): | |
136 | if selected == current: |
|
136 | if selected == current: | |
137 | return h.literal('class="current"') |
|
137 | return h.literal('class="current"') | |
138 | %> |
|
138 | %> | |
139 | %if current not in ['home','admin']: |
|
139 | %if current not in ['home','admin']: | |
140 | ##REGULAR MENU |
|
140 | ##REGULAR MENU | |
141 | <ul id="quick"> |
|
141 | <ul id="quick"> | |
142 | <!-- repo switcher --> |
|
142 | <!-- repo switcher --> | |
143 | <li> |
|
143 | <li> | |
144 | <a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href="#"> |
|
144 | <a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href="#"> | |
145 | <span class="icon"> |
|
145 | <span class="icon"> | |
146 | <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> |
|
146 | <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> | |
147 | </span> |
|
147 | </span> | |
148 | <span>↓</span> |
|
148 | <span>↓</span> | |
149 | </a> |
|
149 | </a> | |
150 | <ul id="repo_switcher_list" class="repo_switcher"> |
|
150 | <ul id="repo_switcher_list" class="repo_switcher"> | |
151 | <li> |
|
151 | <li> | |
152 | <a href="#">${_('loading...')}</a> |
|
152 | <a href="#">${_('loading...')}</a> | |
153 | </li> |
|
153 | </li> | |
154 | </ul> |
|
154 | </ul> | |
155 | </li> |
|
155 | </li> | |
156 |
|
156 | |||
157 | <li ${is_current('summary')}> |
|
157 | <li ${is_current('summary')}> | |
158 | <a class="menu_link" title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
|
158 | <a class="menu_link" title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> | |
159 | <span class="icon"> |
|
159 | <span class="icon"> | |
160 | <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
|
160 | <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> | |
161 | </span> |
|
161 | </span> | |
162 | <span>${_('Summary')}</span> |
|
162 | <span>${_('Summary')}</span> | |
163 | </a> |
|
163 | </a> | |
164 | </li> |
|
164 | </li> | |
165 | <li ${is_current('changelog')}> |
|
165 | <li ${is_current('changelog')}> | |
166 | <a class="menu_link" title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
|
166 | <a class="menu_link" title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> | |
167 | <span class="icon"> |
|
167 | <span class="icon"> | |
168 | <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> |
|
168 | <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> | |
169 | </span> |
|
169 | </span> | |
170 | <span>${_('Changelog')}</span> |
|
170 | <span>${_('Changelog')}</span> | |
171 | </a> |
|
171 | </a> | |
172 | </li> |
|
172 | </li> | |
173 |
|
173 | |||
174 | <li ${is_current('switch_to')}> |
|
174 | <li ${is_current('switch_to')}> | |
175 | <a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#"> |
|
175 | <a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#"> | |
176 | <span class="icon"> |
|
176 | <span class="icon"> | |
177 | <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> |
|
177 | <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> | |
178 | </span> |
|
178 | </span> | |
179 | <span>${_('Switch to')}</span> |
|
179 | <span>${_('Switch to')}</span> | |
180 | </a> |
|
180 | </a> | |
181 | <ul id="switch_to_list" class="switch_to"> |
|
181 | <ul id="switch_to_list" class="switch_to"> | |
182 | <li><a href="#">${_('loading...')}</a></li> |
|
182 | <li><a href="#">${_('loading...')}</a></li> | |
183 | </ul> |
|
183 | </ul> | |
184 | </li> |
|
184 | </li> | |
185 | <li ${is_current('files')}> |
|
185 | <li ${is_current('files')}> | |
186 | <a class="menu_link" title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
|
186 | <a class="menu_link" title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> | |
187 | <span class="icon"> |
|
187 | <span class="icon"> | |
188 | <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
|
188 | <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> | |
189 | </span> |
|
189 | </span> | |
190 | <span>${_('Files')}</span> |
|
190 | <span>${_('Files')}</span> | |
191 | </a> |
|
191 | </a> | |
192 | </li> |
|
192 | </li> | |
193 |
|
193 | |||
194 | <li ${is_current('options')}> |
|
194 | <li ${is_current('options')}> | |
195 | <a class="menu_link" title="${_('Options')}" href="#"> |
|
195 | <a class="menu_link" title="${_('Options')}" href="#"> | |
196 | <span class="icon"> |
|
196 | <span class="icon"> | |
197 | <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> |
|
197 | <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> | |
198 | </span> |
|
198 | </span> | |
199 | <span>${_('Options')}</span> |
|
199 | <span>${_('Options')}</span> | |
200 | </a> |
|
200 | </a> | |
201 | <ul> |
|
201 | <ul> | |
202 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
|
202 | %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): | |
203 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
|
203 | %if h.HasPermissionAll('hg.admin')('access settings on repository'): | |
204 | <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
|
204 | <li>${h.link_to(_('repository settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> | |
205 | %else: |
|
205 | %else: | |
206 | <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
|
206 | <li>${h.link_to(_('repository settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> | |
207 | %endif |
|
207 | %endif | |
208 | %endif |
|
208 | %endif | |
209 |
|
209 | |||
210 | <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> |
|
210 | <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> | |
211 | %if h.is_hg(c.rhodecode_repo): |
|
211 | %if h.is_hg(c.rhodecode_repo): | |
212 | <li>${h.link_to(_('Open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li> |
|
212 | <li>${h.link_to(_('Open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li> | |
213 | %endif |
|
213 | %endif | |
214 | <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> |
|
214 | <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> | |
215 |
|
215 | |||
216 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: |
|
216 | %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: | |
217 | %if c.rhodecode_db_repo.locked[0]: |
|
217 | %if c.rhodecode_db_repo.locked[0]: | |
218 | <li>${h.link_to(_('unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> |
|
218 | <li>${h.link_to(_('unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> | |
219 | %else: |
|
219 | %else: | |
220 | <li>${h.link_to(_('lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> |
|
220 | <li>${h.link_to(_('lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> | |
221 | %endif |
|
221 | %endif | |
222 | %endif |
|
222 | %endif | |
223 |
|
223 | |||
224 | % if h.HasPermissionAll('hg.admin')('access admin main page'): |
|
224 | % if h.HasPermissionAll('hg.admin')('access admin main page'): | |
225 | <li> |
|
225 | <li> | |
226 | ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
|
226 | ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} | |
227 | <%def name="admin_menu()"> |
|
227 | <%def name="admin_menu()"> | |
228 | <ul> |
|
228 | <ul> | |
229 | <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li> |
|
229 | <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li> | |
230 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
|
230 | <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> | |
231 | <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
|
231 | <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> | |
232 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
|
232 | <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> | |
233 | <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> |
|
233 | <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> | |
234 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
|
234 | <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> | |
235 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
|
235 | <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> | |
236 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
|
236 | <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> | |
237 | </ul> |
|
237 | </ul> | |
238 | </%def> |
|
238 | </%def> | |
239 | ## ADMIN MENU |
|
239 | ## ADMIN MENU | |
240 | ${admin_menu()} |
|
240 | ${admin_menu()} | |
241 | </li> |
|
241 | </li> | |
242 | % endif |
|
242 | % endif | |
243 | </ul> |
|
243 | </ul> | |
244 | </li> |
|
244 | </li> | |
245 |
|
245 | |||
246 | <li> |
|
246 | <li> | |
247 | <a class="menu_link" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> |
|
247 | <a class="menu_link" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> | |
248 | <span class="icon_short"> |
|
248 | <span class="icon_short"> | |
249 | <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> |
|
249 | <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> | |
250 | </span> |
|
250 | </span> | |
251 | <span id="current_followers_count" class="short">${c.repository_followers}</span> |
|
251 | <span id="current_followers_count" class="short">${c.repository_followers}</span> | |
252 | </a> |
|
252 | </a> | |
253 | </li> |
|
253 | </li> | |
254 | <li> |
|
254 | <li> | |
255 | <a class="menu_link" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> |
|
255 | <a class="menu_link" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> | |
256 | <span class="icon_short"> |
|
256 | <span class="icon_short"> | |
257 | <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> |
|
257 | <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> | |
258 | </span> |
|
258 | </span> | |
259 | <span class="short">${c.repository_forks}</span> |
|
259 | <span class="short">${c.repository_forks}</span> | |
260 | </a> |
|
260 | </a> | |
261 | </li> |
|
261 | </li> | |
262 | <li> |
|
262 | <li> | |
263 | <a class="menu_link" title="${_('Pull requests')}" href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}"> |
|
263 | <a class="menu_link" title="${_('Pull requests')}" href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}"> | |
264 | <span class="icon_short"> |
|
264 | <span class="icon_short"> | |
265 | <img src="${h.url('/images/icons/arrow_join.png')}" alt="${_('Pull requests')}" /> |
|
265 | <img src="${h.url('/images/icons/arrow_join.png')}" alt="${_('Pull requests')}" /> | |
266 | </span> |
|
266 | </span> | |
267 | <span class="short">${c.repository_pull_requests}</span> |
|
267 | <span class="short">${c.repository_pull_requests}</span> | |
268 | </a> |
|
268 | </a> | |
269 | </li> |
|
269 | </li> | |
270 | ${usermenu()} |
|
270 | ${usermenu()} | |
271 | </ul> |
|
271 | </ul> | |
272 | <script type="text/javascript"> |
|
272 | <script type="text/javascript"> | |
273 | YUE.on('repo_switcher','mouseover',function(){ |
|
273 | YUE.on('repo_switcher','mouseover',function(){ | |
274 | function qfilter(){ |
|
274 | function qfilter(){ | |
275 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); |
|
275 | var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); | |
276 | var target = 'q_filter_rs'; |
|
276 | var target = 'q_filter_rs'; | |
277 | var func = function(node){ |
|
277 | var func = function(node){ | |
278 | return node.parentNode; |
|
278 | return node.parentNode; | |
279 | } |
|
279 | } | |
280 | q_filter(target,nodes,func); |
|
280 | q_filter(target,nodes,func); | |
281 | } |
|
281 | } | |
282 | var loaded = YUD.hasClass('repo_switcher','loaded'); |
|
282 | var loaded = YUD.hasClass('repo_switcher','loaded'); | |
283 | if(!loaded){ |
|
283 | if(!loaded){ | |
284 | YUD.addClass('repo_switcher','loaded'); |
|
284 | YUD.addClass('repo_switcher','loaded'); | |
285 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
|
285 | ypjax("${h.url('repo_switcher')}",'repo_switcher_list', | |
286 | function(o){qfilter();}, |
|
286 | function(o){qfilter();}, | |
287 | function(o){YUD.removeClass('repo_switcher','loaded');} |
|
287 | function(o){YUD.removeClass('repo_switcher','loaded');} | |
288 | ,null); |
|
288 | ,null); | |
289 | } |
|
289 | } | |
290 | return false; |
|
290 | return false; | |
291 | }); |
|
291 | }); | |
292 |
|
292 | |||
293 | YUE.on('branch_tag_switcher','mouseover',function(){ |
|
293 | YUE.on('branch_tag_switcher','mouseover',function(){ | |
294 | var loaded = YUD.hasClass('branch_tag_switcher','loaded'); |
|
294 | var loaded = YUD.hasClass('branch_tag_switcher','loaded'); | |
295 | if(!loaded){ |
|
295 | if(!loaded){ | |
296 | YUD.addClass('branch_tag_switcher','loaded'); |
|
296 | YUD.addClass('branch_tag_switcher','loaded'); | |
297 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list', |
|
297 | ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list', | |
298 | function(o){}, |
|
298 | function(o){}, | |
299 | function(o){YUD.removeClass('branch_tag_switcher','loaded');} |
|
299 | function(o){YUD.removeClass('branch_tag_switcher','loaded');} | |
300 | ,null); |
|
300 | ,null); | |
301 | } |
|
301 | } | |
302 | return false; |
|
302 | return false; | |
303 | }); |
|
303 | }); | |
304 | </script> |
|
304 | </script> | |
305 | %else: |
|
305 | %else: | |
306 | ##ROOT MENU |
|
306 | ##ROOT MENU | |
307 | <ul id="quick"> |
|
307 | <ul id="quick"> | |
308 | <li> |
|
308 | <li> | |
309 | <a class="menu_link" title="${_('Home')}" href="${h.url('home')}"> |
|
309 | <a class="menu_link" title="${_('Home')}" href="${h.url('home')}"> | |
310 | <span class="icon"> |
|
310 | <span class="icon"> | |
311 | <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" /> |
|
311 | <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" /> | |
312 | </span> |
|
312 | </span> | |
313 | <span>${_('Home')}</span> |
|
313 | <span>${_('Home')}</span> | |
314 | </a> |
|
314 | </a> | |
315 | </li> |
|
315 | </li> | |
316 | %if c.rhodecode_user.username != 'default': |
|
316 | %if c.rhodecode_user.username != 'default': | |
317 | <li> |
|
317 | <li> | |
318 | <a class="menu_link" title="${_('Journal')}" href="${h.url('journal')}"> |
|
318 | <a class="menu_link" title="${_('Journal')}" href="${h.url('journal')}"> | |
319 | <span class="icon"> |
|
319 | <span class="icon"> | |
320 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> |
|
320 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> | |
321 | </span> |
|
321 | </span> | |
322 | <span>${_('Journal')}</span> |
|
322 | <span>${_('Journal')}</span> | |
323 | </a> |
|
323 | </a> | |
324 | </li> |
|
324 | </li> | |
325 | %else: |
|
325 | %else: | |
326 | <li> |
|
326 | <li> | |
327 | <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}"> |
|
327 | <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}"> | |
328 | <span class="icon"> |
|
328 | <span class="icon"> | |
329 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" /> |
|
329 | <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" /> | |
330 | </span> |
|
330 | </span> | |
331 | <span>${_('Public journal')}</span> |
|
331 | <span>${_('Public journal')}</span> | |
332 | </a> |
|
332 | </a> | |
333 | </li> |
|
333 | </li> | |
334 | %endif |
|
334 | %endif | |
335 | <li> |
|
335 | <li> | |
336 | <a class="menu_link" title="${_('Search')}" href="${h.url('search')}"> |
|
336 | <a class="menu_link" title="${_('Search')}" href="${h.url('search')}"> | |
337 | <span class="icon"> |
|
337 | <span class="icon"> | |
338 | <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> |
|
338 | <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> | |
339 | </span> |
|
339 | </span> | |
340 | <span>${_('Search')}</span> |
|
340 | <span>${_('Search')}</span> | |
341 | </a> |
|
341 | </a> | |
342 | </li> |
|
342 | </li> | |
343 |
|
343 | |||
344 | %if h.HasPermissionAll('hg.admin')('access admin main page'): |
|
344 | %if h.HasPermissionAll('hg.admin')('access admin main page'): | |
345 | <li ${is_current('admin')}> |
|
345 | <li ${is_current('admin')}> | |
346 | <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}"> |
|
346 | <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}"> | |
347 | <span class="icon"> |
|
347 | <span class="icon"> | |
348 | <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> |
|
348 | <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> | |
349 | </span> |
|
349 | </span> | |
350 | <span>${_('Admin')}</span> |
|
350 | <span>${_('Admin')}</span> | |
351 | </a> |
|
351 | </a> | |
352 | ${admin_menu()} |
|
352 | ${admin_menu()} | |
353 | </li> |
|
353 | </li> | |
354 | %endif |
|
354 | %endif | |
355 | ${usermenu()} |
|
355 | ${usermenu()} | |
356 | </ul> |
|
356 | </ul> | |
357 | %endif |
|
357 | %endif | |
358 | </%def> |
|
358 | </%def> |
General Comments 0
You need to be logged in to leave comments.
Login now