Mercurial > kallithea
annotate rhodecode/templates/base/base.html @ 3388:cb40b3f6428c beta
review members are dynamically changed based on selected other_repo owner
- implemented pyroutes for smarter JS url handling
- fixed some old style global var routing
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 20 Feb 2013 01:59:50 +0100 |
parents | 199fd214b213 |
children | fe2bb88bf7ac |
rev | line source |
---|---|
0 | 1 ## -*- coding: utf-8 -*- |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
2 <%inherit file="root.html"/> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
3 |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
4 <!-- HEADER --> |
3299
d561eb3787f5
header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents:
3297
diff
changeset
|
5 <div id="header-dd"></div> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
6 <div id="header"> |
3299
d561eb3787f5
header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents:
3297
diff
changeset
|
7 <div id="header-inner" class="title"> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
8 <div id="logo"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
9 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
10 </div> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
11 <!-- MENU --> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
12 ${self.page_nav()} |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
13 <!-- END MENU --> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
14 ${self.body()} |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
15 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
16 </div> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
17 <!-- END HEADER --> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
18 |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
19 <!-- CONTENT --> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
20 <div id="content"> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
21 <div class="flash_msg"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
22 <% messages = h.flash.pop_messages() %> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
23 % if messages: |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
24 <ul id="flash-messages"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
25 % for message in messages: |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
26 <li class="${message.category}_msg">${message}</li> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
27 % endfor |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
28 </ul> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
29 % endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
30 </div> |
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
31 <div id="main"> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
32 ${next.main()} |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
33 </div> |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
34 </div> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
35 <!-- END CONTENT --> |
0 | 36 |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
37 <!-- FOOTER --> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
38 <div id="footer"> |
1470 | 39 <div id="footer-inner" class="title"> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
40 <div> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
41 <p class="footer-link"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
42 <a href="${h.url('bugtracker')}">${_('Submit a bug')}</a> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
43 </p> |
3197 | 44 <p class="footer-link-right"> |
45 <a href="${h.url('rhodecode_official')}">RhodeCode${'-%s' % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}</a> | |
46 ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski | |
47 </p> | |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
48 </div> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
49 </div> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
50 </div> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
51 <!-- END FOOTER --> |
0 | 52 |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
53 ### MAKO DEFS ### |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
54 <%def name="page_nav()"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
55 ${self.menu()} |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
56 </%def> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
57 |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
58 <%def name="breadcrumbs()"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
59 <div class="breadcrumbs"> |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
60 ${self.breadcrumbs_links()} |
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
61 </div> |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
62 </%def> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
63 |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
64 <%def name="usermenu()"> |
3206
d4bb8de7382f
top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents:
3205
diff
changeset
|
65 ## USER MENU |
3205
f01540c62f8a
top menu: show user menu as a menu option like others, now also with login name
Mads Kiilerich <madski@unity3d.com>
parents:
3204
diff
changeset
|
66 <li> |
3207
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
67 <a class="menu_link" id="quick_login_link"> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
68 <span class="icon" style="padding:5px 5px 0px 5px"> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
69 <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar"> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
70 </span> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
71 %if c.rhodecode_user.username != 'default': |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
72 <span class="menu_link_user">${c.rhodecode_user.username}</span> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
73 %if c.unread_notifications != 0: |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
74 <span class="menu_link_notifications">${c.unread_notifications}</span> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
75 %endif |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
76 %else: |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
77 <span>${_('Not logged in')}</span> |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
78 %endif |
b9de46161c96
make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents:
3206
diff
changeset
|
79 </a> |
3205
f01540c62f8a
top menu: show user menu as a menu option like others, now also with login name
Mads Kiilerich <madski@unity3d.com>
parents:
3204
diff
changeset
|
80 |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
81 <div class="user-menu"> |
3206
d4bb8de7382f
top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents:
3205
diff
changeset
|
82 <div id="quick_login"> |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
83 %if c.rhodecode_user.username == 'default': |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
84 <h4>${_('Login to your account')}</h4> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
85 ${h.form(h.url('login_home',came_from=h.url.current()))} |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
86 <div class="form"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
87 <div class="fields"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
88 <div class="field"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
89 <div class="label"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
90 <label for="username">${_('Username')}:</label> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
91 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
92 <div class="input"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
93 ${h.text('username',class_='focus',size=40)} |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
94 </div> |
1944
5fc9c92025c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1935
diff
changeset
|
95 |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
96 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
97 <div class="field"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
98 <div class="label"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
99 <label for="password">${_('Password')}:</label> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
100 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
101 <div class="input"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
102 ${h.password('password',class_='focus',size=40)} |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
103 </div> |
1944
5fc9c92025c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1935
diff
changeset
|
104 |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
105 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
106 <div class="buttons"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
107 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
108 <div class="register"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
109 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
110 ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
111 %endif |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
112 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
113 <div class="submit"> |
1935
ff167a938ce0
user menu fixes
Marcin Kuzminski <marcin@python-works.com>
parents:
1931
diff
changeset
|
114 ${h.submit('sign_in',_('Log In'),class_="ui-btn xsmall")} |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
115 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
116 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
117 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
118 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
119 ${h.end_form()} |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
120 %else: |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
121 <div class="links_left"> |
1950
4ae17f819ee8
#344 optional firstname lastname on user creation
Marcin Kuzminski <marcin@python-works.com>
parents:
1944
diff
changeset
|
122 <div class="full_name">${c.rhodecode_user.full_name_or_username}</div> |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
123 <div class="email">${c.rhodecode_user.email}</div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
124 <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div> |
3280
c2dc089f4c3d
user menu: call 'notifications' for what it is in the rest of the system - not 'inbox'
Mads Kiilerich <madski@unity3d.com>
parents:
3267
diff
changeset
|
125 <div class="notifications"><a href="${h.url('notifications')}">${_('Notifications')}</a></div> |
3297
a66198aa9e84
make unread also a link, constantly was clicking that
Marcin Kuzminski <marcin@python-works.com>
parents:
3290
diff
changeset
|
126 <div class="unread"><a href="${h.url('notifications')}">${_('Unread')}: ${c.unread_notifications}</a></div> |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
127 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
128 <div class="links_right"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
129 <ol class="links"> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
130 <li>${h.link_to(_(u'Home'),h.url('home'))}</li> |
1975
9c5b33c4de4d
quick login: add link to Journal to popup menu
Aras Pranckevicius <aras@unity3d.com>
parents:
1950
diff
changeset
|
131 <li>${h.link_to(_(u'Journal'),h.url('journal'))}</li> |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
132 <li>${h.link_to(_(u'My account'),h.url('admin_settings_my_account'))}</li> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
133 <li class="logout">${h.link_to(_(u'Log Out'),h.url('logout_home'))}</li> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
134 </ol> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
135 </div> |
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
136 %endif |
1944
5fc9c92025c1
white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1935
diff
changeset
|
137 </div> |
3206
d4bb8de7382f
top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents:
3205
diff
changeset
|
138 </div> |
d4bb8de7382f
top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents:
3205
diff
changeset
|
139 |
d4bb8de7382f
top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents:
3205
diff
changeset
|
140 </li> |
1926
049bc911b04f
removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents:
1888
diff
changeset
|
141 </%def> |
1157
41241617a7a3
rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents:
1156
diff
changeset
|
142 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
143 <%def name="menu(current=None)"> |
3197 | 144 <% |
145 def is_current(selected): | |
146 if selected == current: | |
147 return h.literal('class="current"') | |
148 %> | |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
149 <ul id="quick"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
150 <!-- repo switcher --> |
3282
2d22c0da2c43
top menu: 'Repositories' is really also a 'Home' button
Mads Kiilerich <madski@unity3d.com>
parents:
3281
diff
changeset
|
151 <li ${is_current('home')}> |
2d22c0da2c43
top menu: 'Repositories' is really also a 'Home' button
Mads Kiilerich <madski@unity3d.com>
parents:
3281
diff
changeset
|
152 <a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
153 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
154 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
155 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
156 <span>${_('Repositories')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
157 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
158 <ul id="repo_switcher_list" class="repo_switcher"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
159 <li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
160 <a href="#">${_('loading...')}</a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
161 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
162 </ul> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
163 </li> |
3216
81bbb8086f03
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3211
diff
changeset
|
164 ## we render this menu only not for those pages |
3208
1ac47c961f70
Set current pages indication for search and journal
Marcin Kuzminski <marcin@python-works.com>
parents:
3207
diff
changeset
|
165 %if current not in ['home','admin', 'search', 'journal']: |
3198
c20adbaf16af
html: random indentation fixes
Mads Kiilerich <madski@unity3d.com>
parents:
3197
diff
changeset
|
166 ##REGULAR MENU |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
167 <li ${is_current('summary')}> |
3287
171ec11e9431
top menu: make 'alt' texts / tool tips more descriptive
Mads Kiilerich <madski@unity3d.com>
parents:
3282
diff
changeset
|
168 <a class="menu_link" title="${_('Summary page')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
169 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
170 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
171 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
172 <span>${_('Summary')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
173 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
174 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
175 <li ${is_current('changelog')}> |
3287
171ec11e9431
top menu: make 'alt' texts / tool tips more descriptive
Mads Kiilerich <madski@unity3d.com>
parents:
3282
diff
changeset
|
176 <a class="menu_link" title="${_('Changeset list')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
177 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
178 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
179 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
180 <span>${_('Changelog')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
181 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
182 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
183 <li ${is_current('switch_to')}> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
184 <a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
185 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
186 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
187 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
188 <span>${_('Switch to')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
189 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
190 <ul id="switch_to_list" class="switch_to"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
191 <li><a href="#">${_('loading...')}</a></li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
192 </ul> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
193 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
194 <li ${is_current('files')}> |
3287
171ec11e9431
top menu: make 'alt' texts / tool tips more descriptive
Mads Kiilerich <madski@unity3d.com>
parents:
3282
diff
changeset
|
195 <a class="menu_link" title="${_('Show repository content')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
196 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
197 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
198 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
199 <span>${_('Files')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
200 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
201 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
202 <li ${is_current('options')}> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
203 <a class="menu_link" title="${_('Options')}" href="#"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
204 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
205 <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
206 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
207 <span>${_('Options')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
208 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
209 <ul> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
210 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
211 %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
212 <li>${h.link_to(_('repository settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
213 %else: |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
214 <li>${h.link_to(_('repository settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
215 %endif |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
216 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
217 |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
218 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
219 %if h.is_hg(c.rhodecode_repo): |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
220 <li>${h.link_to(_('open new pull request'),h.url('pullrequest_home',repo_name=c.repo_name),class_='pull_request')}</li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
221 %endif |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
222 %if c.rhodecode_db_repo.fork: |
3322
c9b0f1d363c7
compare: swap org and other when they refer to different repos, ie are pull request style
Mads Kiilerich <madski@unity3d.com>
parents:
3317
diff
changeset
|
223 <li>${h.link_to(_('compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default'),class_='compare_request')}</li> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
224 %endif |
3290
e4025b361fcf
move old shortlog as lightweight changelog into option, it's still useful to have since it's less resources to generate data for it.
Marcin Kuzminski <marcin@python-works.com>
parents:
3289
diff
changeset
|
225 <li>${h.link_to(_('lightweight changelog'),h.url('shortlog_home',repo_name=c.repo_name),class_='shortlog')}</li> |
3289
666fc6ac9ce5
search: repo search is a repo thing - show it that way in ui and url
Mads Kiilerich <madski@unity3d.com>
parents:
3287
diff
changeset
|
226 <li>${h.link_to(_('search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li> |
2833
2f3cba7b6d16
Add quick toggle link for locking for users with write or admin permissions
Marcin Kuzminski <marcin@python-works.com>
parents:
2773
diff
changeset
|
227 |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
228 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking: |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
229 %if c.rhodecode_db_repo.locked[0]: |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
230 <li>${h.link_to(_('unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
231 %else: |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
232 <li>${h.link_to(_('lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
233 %endif |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
234 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
235 |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
236 % if h.HasPermissionAll('hg.admin')('access admin main page'): |
3371
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
237 <li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
238 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
239 <%def name="admin_menu()"> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
240 <ul> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
241 <li>${h.link_to(_('admin journal'),h.url('admin_home'),class_='journal')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
242 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
243 <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
244 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
245 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
246 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
247 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
248 <li>${h.link_to(_('defaults'),h.url('defaults'),class_='defaults')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
249 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
250 </ul> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
251 </%def> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
252 ## ADMIN MENU |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
253 ${admin_menu()} |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
254 </li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
255 ## if you're a admin of any groups, show admin menu for it |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
256 % elif c.rhodecode_user.groups_admin: |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
257 <li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
258 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
259 <%def name="admin_menu_simple()"> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
260 <ul> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
261 <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
262 </ul> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
263 </%def> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
264 ## ADMIN MENU |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
265 ${admin_menu_simple()} |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
266 </li> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
267 % endif |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
268 </ul> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
269 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
270 <li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
271 <a class="menu_link" title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
272 <span class="icon_short"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
273 <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
274 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
275 <span id="current_followers_count" class="short">${c.repository_followers}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
276 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
277 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
278 <li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
279 <a class="menu_link" title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
280 <span class="icon_short"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
281 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
282 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
283 <span class="short">${c.repository_forks}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
284 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
285 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
286 <li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
287 <a class="menu_link" title="${_('Pull requests')}" href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
288 <span class="icon_short"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
289 <img src="${h.url('/images/icons/arrow_join.png')}" alt="${_('Pull requests')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
290 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
291 <span class="short">${c.repository_pull_requests}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
292 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
293 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
294 ${usermenu()} |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1474
diff
changeset
|
295 <script type="text/javascript"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
296 YUE.on('branch_tag_switcher','mouseover',function(){ |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
297 var loaded = YUD.hasClass('branch_tag_switcher','loaded'); |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1474
diff
changeset
|
298 if(!loaded){ |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
299 YUD.addClass('branch_tag_switcher','loaded'); |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
300 ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list', |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
301 function(o){}, |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
302 function(o){YUD.removeClass('branch_tag_switcher','loaded');} |
1608
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1474
diff
changeset
|
303 ,null); |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1474
diff
changeset
|
304 } |
0069657aaf42
lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1474
diff
changeset
|
305 return false; |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
306 }); |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1791
diff
changeset
|
307 </script> |
3197 | 308 %else: |
309 ##ROOT MENU | |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
310 %if c.rhodecode_user.username != 'default': |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
311 <li ${is_current('journal')}> |
3287
171ec11e9431
top menu: make 'alt' texts / tool tips more descriptive
Mads Kiilerich <madski@unity3d.com>
parents:
3282
diff
changeset
|
312 <a class="menu_link" title="${_('Show recent activity')}" href="${h.url('journal')}"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
313 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
314 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
315 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
316 <span>${_('Journal')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
317 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
318 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
319 %else: |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
320 <li ${is_current('journal')}> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
321 <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
322 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
323 <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
324 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
325 <span>${_('Public journal')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
326 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
327 </li> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
328 %endif |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
329 <li ${is_current('search')}> |
3287
171ec11e9431
top menu: make 'alt' texts / tool tips more descriptive
Mads Kiilerich <madski@unity3d.com>
parents:
3282
diff
changeset
|
330 <a class="menu_link" title="${_('Search in repositories')}" href="${h.url('search')}"> |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
331 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
332 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
333 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
334 <span>${_('Search')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
335 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
336 </li> |
3371
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
337 % if h.HasPermissionAll('hg.admin')('access admin main page'): |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
338 <li ${is_current('admin')}> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
339 <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
340 <span class="icon"> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
341 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
342 </span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
343 <span>${_('Admin')}</span> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
344 </a> |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
345 ${admin_menu()} |
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
346 </li> |
3371
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
347 % elif c.rhodecode_user.groups_admin: |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
348 <li ${is_current('admin')}> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
349 <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}"> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
350 <span class="icon"> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
351 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
352 </span> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
353 <span>${_('Admin')}</span> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
354 </a> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
355 ${admin_menu_simple()} |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
356 </li> |
199fd214b213
Show admin dropdown for users who are admin of repo groups
Marcin Kuzminski <marcin@python-works.com>
parents:
3341
diff
changeset
|
357 % endif |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
358 ${usermenu()} |
3197 | 359 %endif |
3211
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
360 <script type="text/javascript"> |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
361 YUE.on('repo_switcher','mouseover',function(){ |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
362 var target = 'q_filter_rs'; |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
363 var qfilter_activate = function(){ |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
364 var nodes = YUQ('ul#repo_switcher_list li a.repo_name'); |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
365 var func = function(node){ |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
366 return node.parentNode; |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
367 } |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
368 q_filter(target,nodes,func); |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
369 } |
3216
81bbb8086f03
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3211
diff
changeset
|
370 |
3211
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
371 var loaded = YUD.hasClass('repo_switcher','loaded'); |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
372 if(!loaded){ |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
373 YUD.addClass('repo_switcher','loaded'); |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
374 ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
375 function(o){qfilter_activate();YUD.get(target).focus()}, |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
376 function(o){YUD.removeClass('repo_switcher','loaded');} |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
377 ,null); |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
378 }else{ |
3267
7b74079beec9
coding style: fix trailing and leading spaces and tabs
Mads Kiilerich <madski@unity3d.com>
parents:
3216
diff
changeset
|
379 YUD.get(target).focus(); |
3211
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
380 } |
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
381 return false; |
3209
e7600fe19943
Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents:
3208
diff
changeset
|
382 }); |
3299
d561eb3787f5
header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents:
3297
diff
changeset
|
383 |
d561eb3787f5
header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents:
3297
diff
changeset
|
384 YUE.on('header-dd', 'click',function(e){ |
3315
fc08484c5bf3
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3299
diff
changeset
|
385 YUD.addClass('header-inner', 'hover'); |
3341
030103d57e30
drop down hover menu now fixes whole page padding
Marcin Kuzminski <marcin@python-works.com>
parents:
3322
diff
changeset
|
386 YUD.addClass('content', 'hover'); |
3299
d561eb3787f5
header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents:
3297
diff
changeset
|
387 }); |
d561eb3787f5
header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents:
3297
diff
changeset
|
388 |
3211
c77a846a24d5
autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents:
3210
diff
changeset
|
389 </script> |
1472
aaec08ad9daf
Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents:
1453
diff
changeset
|
390 </%def> |