Mercurial > kallithea
annotate rhodecode/templates/base/base.html @ 1468:d23dd50b5e29 beta
#243 add register link to login dropdown
- for anonymous users to be able to reach that page added a short link to floating box
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 13 Sep 2011 20:48:13 +0300 |
parents | 55a4cbcd464d |
children | ea41c494cc3f |
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 --> |
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
|
5 <div id="header"> |
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 <!-- user --> |
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
|
7 <ul id="logged-user"> |
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 <li class="first"> |
1316
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
9 <div id="quick_login" style="display:none"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
10 ${h.form(h.url('login_home',came_from=h.url.current()))} |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
11 <div class="form"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
12 <div class="fields"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
13 <div class="field"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
14 <div class="label"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
15 <label for="username">${_('Username')}:</label> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
16 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
17 <div class="input"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
18 ${h.text('username',class_='focus',size=40)} |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
19 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
20 |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
21 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
22 <div class="field"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
23 <div class="label"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
24 <label for="password">${_('Password')}:</label> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
25 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
26 <div class="input"> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
27 ${h.password('password',class_='focus',size=40)} |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
28 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
29 |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
30 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
31 <div class="buttons"> |
1468
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
32 <div class="password_forgoten">${h.link_to(_('Forgot password ?'),h.url('reset_password'))}</div> |
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
33 <div class="register"> |
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
34 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')(): |
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
35 ${h.link_to(_("Don't have an account ?"),h.url('register'))} |
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
36 %endif |
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
37 </div> |
d23dd50b5e29
#243 add register link to login dropdown
Marcin Kuzminski <marcin@python-works.com>
parents:
1453
diff
changeset
|
38 ${h.submit('sign_in','Sign In',class_="ui-button")} |
1316
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
39 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
40 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
41 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
42 ${h.end_form()} |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
43 </div> |
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
44 |
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
|
45 <div class="gravatar"> |
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
|
46 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" /> |
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
|
47 </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
|
48 <div class="account"> |
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 %if c.rhodecode_user.username == 'default': |
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 <a href="${h.url('public_journal')}">${_('Public journal')}</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
|
51 %else: |
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
|
52 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))} |
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 %endif |
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 </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
|
55 </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
|
56 <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
|
57 <a href="${h.url('home')}">${_('Home')}</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
|
58 </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
|
59 %if c.rhodecode_user.username != 'default': |
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 <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
|
61 <a href="${h.url('journal')}">${_('Journal')}</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
|
62 ##(${c.unread_journal} |
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
|
63 </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
|
64 %endif |
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
|
65 %if c.rhodecode_user.username == 'default': |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
66 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'),id='quick_login_link')}</li> |
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
|
67 %else: |
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
|
68 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</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
|
69 %endif |
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
|
70 </ul> |
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
|
71 <!-- end user --> |
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
|
72 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner"> |
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
|
73 <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
|
74 <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
|
75 </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
|
76 <!-- 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
|
77 ${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
|
78 <!-- 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
|
79 ${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
|
80 </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
|
81 </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
|
82 <!-- END HEADER --> |
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
|
83 |
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
|
84 <!-- CONTENT --> |
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
|
85 <div id="content"> |
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
|
86 <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
|
87 <% 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
|
88 % 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
|
89 <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
|
90 % 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
|
91 <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
|
92 % endfor |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
93 </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
|
94 % endif |
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
|
95 </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
|
96 <div id="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
|
97 ${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
|
98 </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
|
99 </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
|
100 <!-- END CONTENT --> |
0 | 101 |
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
|
102 <!-- 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
|
103 <div id="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
|
104 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner"> |
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
|
105 <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
|
106 <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
|
107 <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
|
108 </p> |
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
|
109 <p class="footer-link-right"> |
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
|
110 <a href="${h.url('rhodecode_official')}">RhodeCode</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
|
111 ${c.rhodecode_version} © 2010-${h.datetime.today().year} by Marcin Kuzminski |
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
|
112 </p> |
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
|
113 </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
|
114 </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
|
115 </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
|
116 <!-- END FOOTER --> |
0 | 117 |
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
|
118 ### 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
|
119 <%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
|
120 ${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
|
121 </%def> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
122 |
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
|
123 <%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
|
124 <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
|
125 ${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
|
126 </div> |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
127 </%def> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
128 |
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
|
129 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
130 <%def name="menu(current=None)"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
131 <% |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
132 def is_current(selected): |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
133 if selected == current: |
414
27f801e03489
fixed escaping for new webhelpers and added perm2user constraint
Marcin Kuzminski <marcin@python-works.com>
parents:
402
diff
changeset
|
134 return h.literal('class="current"') |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
135 %> |
454
ffbd1808b4c8
fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
453
diff
changeset
|
136 %if current not in ['home','admin']: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
137 ##REGULAR MENU |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
138 <ul id="quick"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
139 <!-- repo switcher --> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
140 <li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
141 <a id="repo_switcher" title="${_('Switch repository')}" href="#"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
142 <span class="icon"> |
1316
caca5ee05bb7
added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents:
1305
diff
changeset
|
143 <img src="${h.url('/images/icons/database.png')}" alt="${_('Products')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
144 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
145 <span>↓</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
146 </a> |
1158
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
147 <ul id="repo_switcher_list" class="repo_switcher"> |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
148 <li> |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
149 <a href="#">${_('loading...')}</a> |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
150 </li> |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
151 </ul> |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
152 <script type="text/javascript"> |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
153 YUE.on('repo_switcher','mouseover',function(){ |
1263
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
154 function qfilter(){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
155 var S = YAHOO.util.Selector; |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
156 |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
157 var q_filter = YUD.get('q_filter_rs'); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
158 var F = YAHOO.namespace('q_filter_rs'); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
159 |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
160 YUE.on(q_filter,'click',function(){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
161 q_filter.value = ''; |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
162 }); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
163 |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
164 F.filterTimeout = null; |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
165 |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
166 F.updateFilter = function() { |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
167 // Reset timeout |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
168 F.filterTimeout = null; |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
169 |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
170 var obsolete = []; |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
171 var nodes = S.query('ul#repo_switcher_list li a.repo_name'); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
172 var req = YUD.get('q_filter_rs').value; |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
173 for (n in nodes){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
174 YUD.setStyle(nodes[n].parentNode,'display','') |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
175 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
176 if (req){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
177 for (n in nodes){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
178 if (nodes[n].innerHTML.toLowerCase().indexOf(req) == -1) { |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
179 obsolete.push(nodes[n]); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
180 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
181 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
182 if(obsolete){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
183 for (n in obsolete){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
184 YUD.setStyle(obsolete[n].parentNode,'display','none'); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
185 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
186 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
187 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
188 } |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
189 |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
190 YUE.on(q_filter,'keyup',function(e){ |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
191 clearTimeout(F.filterTimeout); |
1453
55a4cbcd464d
fixed timeout reset on active filters searches, should work faster now !
Marcin Kuzminski <marcin@python-works.com>
parents:
1423
diff
changeset
|
192 F.filterTimeout = setTimeout(F.updateFilter,600); |
1263
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
193 }); |
83714588272c
added quick filter into repo switcher list
Marcin Kuzminski <marcin@python-works.com>
parents:
1205
diff
changeset
|
194 } |
1158
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
195 var loaded = YUD.hasClass('repo_switcher','loaded'); |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
196 if(!loaded){ |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
197 YUD.addClass('repo_switcher','loaded'); |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
198 ypjax("${h.url('repo_switcher')}",'repo_switcher_list', |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
199 function(o){qfilter();}, |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
200 function(o){YUD.removeClass('repo_switcher','loaded');} |
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
201 ,null); |
1158
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
202 } |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
203 return false; |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
204 }); |
f63cc1cbce27
implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents:
1157
diff
changeset
|
205 </script> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
206 </li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
207 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
208 <li ${is_current('summary')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
209 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
210 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
211 <img src="${h.url('/images/icons/clipboard_16.png')}" alt="${_('Summary')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
212 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
213 <span>${_('Summary')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
214 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
215 </li> |
637
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
216 ##<li ${is_current('shortlog')}> |
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
217 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> |
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
218 ## <span class="icon"> |
1421
c6b811f11c94
Javascripts rewrite: updated yui to latest 2.9, simplified ajax loading for multiple pages. Removed YUI dev package
Marcin Kuzminski <marcin@python-works.com>
parents:
1417
diff
changeset
|
219 ## <img src="${h.url('/images/icons/application_view_list.png')}" alt="${_('Shortlog')}" /> |
637
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
220 ## </span> |
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
221 ## <span>${_('Shortlog')}</span> |
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
222 ## </a> |
b04d5214fd3c
removed shortlog from main menu, as duplicated functionality of changelog,
Marcin Kuzminski <marcin@python-works.com>
parents:
636
diff
changeset
|
223 ##</li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
224 <li ${is_current('changelog')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
225 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
226 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
227 <img src="${h.url('/images/icons/time.png')}" alt="${_('Changelog')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
228 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
229 <span>${_('Changelog')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
230 </a> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
231 </li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
232 |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
233 <li ${is_current('switch_to')}> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
234 <a title="${_('Switch to')}" href="#"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
235 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
236 <img src="${h.url('/images/icons/arrow_switch.png')}" alt="${_('Switch to')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
237 </span> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
238 <span>${_('Switch to')}</span> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
239 </a> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
240 <ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
241 <li> |
1045
3fc9183e05dd
another major codes rewrite:
Marcin Kuzminski <marcin@python-works.com>
parents:
1038
diff
changeset
|
242 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
243 <ul> |
1045
3fc9183e05dd
another major codes rewrite:
Marcin Kuzminski <marcin@python-works.com>
parents:
1038
diff
changeset
|
244 %if c.rhodecode_repo.branches.values(): |
3fc9183e05dd
another major codes rewrite:
Marcin Kuzminski <marcin@python-works.com>
parents:
1038
diff
changeset
|
245 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()): |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
626
diff
changeset
|
246 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
247 %endfor |
509
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
477
diff
changeset
|
248 %else: |
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
477
diff
changeset
|
249 <li>${h.link_to(_('There are no branches yet'),'#')}</li> |
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
477
diff
changeset
|
250 %endif |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
251 </ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
252 </li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
253 <li> |
1045
3fc9183e05dd
another major codes rewrite:
Marcin Kuzminski <marcin@python-works.com>
parents:
1038
diff
changeset
|
254 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
255 <ul> |
1045
3fc9183e05dd
another major codes rewrite:
Marcin Kuzminski <marcin@python-works.com>
parents:
1038
diff
changeset
|
256 %if c.rhodecode_repo.tags.values(): |
3fc9183e05dd
another major codes rewrite:
Marcin Kuzminski <marcin@python-works.com>
parents:
1038
diff
changeset
|
257 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()): |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
626
diff
changeset
|
258 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li> |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
259 %endfor |
509
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
477
diff
changeset
|
260 %else: |
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
477
diff
changeset
|
261 <li>${h.link_to(_('There are no tags yet'),'#')}</li> |
b50e79b4257a
fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents:
477
diff
changeset
|
262 %endif |
453
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
263 </ul> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
264 </li> |
2a95d54b19e6
reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents:
448
diff
changeset
|
265 </ul> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
266 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
267 <li ${is_current('files')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
268 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
269 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
270 <img src="${h.url('/images/icons/file.png')}" alt="${_('Files')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
271 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
272 <span>${_('Files')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
273 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
274 </li> |
524
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
275 |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
276 <li ${is_current('options')}> |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
277 <a title="${_('Options')}" href="#"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
278 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
279 <img src="${h.url('/images/icons/table_gear.png')}" alt="${_('Admin')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
280 </span> |
524
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
281 <span>${_('Options')}</span> |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
282 </a> |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
283 <ul> |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
284 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
917
de8b95f461f6
enabled quick link to enabling statistics in admin page, for admins
Marcin Kuzminski <marcin@python-works.com>
parents:
916
diff
changeset
|
285 %if h.HasPermissionAll('hg.admin')('access settings on repository'): |
916
415321076046
when logged in as admin the repo settings will point to admin settings.
Marcin Kuzminski <marcin@python-works.com>
parents:
905
diff
changeset
|
286 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li> |
415321076046
when logged in as admin the repo settings will point to admin settings.
Marcin Kuzminski <marcin@python-works.com>
parents:
905
diff
changeset
|
287 %else: |
415321076046
when logged in as admin the repo settings will point to admin settings.
Marcin Kuzminski <marcin@python-works.com>
parents:
905
diff
changeset
|
288 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li> |
415321076046
when logged in as admin the repo settings will point to admin settings.
Marcin Kuzminski <marcin@python-works.com>
parents:
905
diff
changeset
|
289 %endif |
1054
32dbf759fa98
fixed #113 to high permission was required to fork a repository
Marcin Kuzminski <marcin@python-works.com>
parents:
1051
diff
changeset
|
290 %endif |
524
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
291 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li> |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
292 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li> |
613
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
293 |
1305
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
294 % if h.HasPermissionAll('hg.admin')('access admin main page'): |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
295 <li> |
613
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
296 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')} |
769
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
297 <%def name="admin_menu()"> |
613
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
298 <ul> |
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
299 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li> |
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
300 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li> |
1345
3bce31f026b8
#47 implemented Adding of new repo_groups+forms+validators. Fixed sorting of repo groups by main names in multiple locations. Removed some unneeded calls to self.sa for exchange to .query() methods.
Marcin Kuzminski <marcin@python-works.com>
parents:
1319
diff
changeset
|
301 <li>${h.link_to(_('repositories groups'),h.url('repos_groups'),class_='repos_groups')}</li> |
613
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
302 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
956
83d35d716a02
started working on issue #56
Marcin Kuzminski <marcin@python-works.com>
parents:
917
diff
changeset
|
303 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li> |
613
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
304 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li> |
769
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
305 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li> |
613
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
306 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
956952fea94c
added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents:
611
diff
changeset
|
307 </ul> |
769
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
308 </%def> |
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
309 |
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
310 ${admin_menu()} |
1305
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
311 </li> |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
312 % endif |
524
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
313 </ul> |
63212fea2471
a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents:
509
diff
changeset
|
314 </li> |
747
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
315 |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
316 <li> |
1279
cb216757a62d
#179 Added followers page
Marcin Kuzminski <marcin@python-works.com>
parents:
1263
diff
changeset
|
317 <a title="${_('Followers')}" href="${h.url('repo_followers_home',repo_name=c.repo_name)}"> |
747
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
318 <span class="icon_short"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
319 <img src="${h.url('/images/icons/heart.png')}" alt="${_('Followers')}" /> |
747
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
320 </span> |
1070
f52aab02db29
Added dynamic followers counter change after toggle following action
Marcin Kuzminski <marcin@python-works.com>
parents:
1054
diff
changeset
|
321 <span id="current_followers_count" class="short">${c.repository_followers}</span> |
747
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
322 </a> |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
323 </li> |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
324 <li> |
1301
7e75af301842
Added simple forks page, resolves issue #179
Marcin Kuzminski <marcin@python-works.com>
parents:
1279
diff
changeset
|
325 <a title="${_('Forks')}" href="${h.url('repo_forks_home',repo_name=c.repo_name)}"> |
747
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
326 <span class="icon_short"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
327 <img src="${h.url('/images/icons/arrow_divide.png')}" alt="${_('Forks')}" /> |
747
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
328 </span> |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
329 <span class="short">${c.repository_forks}</span> |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
330 </a> |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
331 </li> |
2f89beda06a1
Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents:
734
diff
changeset
|
332 |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
333 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
334 %else: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
335 ##ROOT MENU |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
336 <ul id="quick"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
337 <li> |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
626
diff
changeset
|
338 <a title="${_('Home')}" href="${h.url('home')}"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
339 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
340 <img src="${h.url('/images/icons/home_16.png')}" alt="${_('Home')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
341 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
342 <span>${_('Home')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
343 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
344 </li> |
1305
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
345 % if c.rhodecode_user.username != 'default': |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
346 <li> |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
694
diff
changeset
|
347 <a title="${_('Journal')}" href="${h.url('journal')}"> |
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
694
diff
changeset
|
348 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
349 <img src="${h.url('/images/icons/book.png')}" alt="${_('Journal')}" /> |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
694
diff
changeset
|
350 </span> |
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
694
diff
changeset
|
351 <span>${_('Journal')}</span> |
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
694
diff
changeset
|
352 </a> |
1305
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
353 </li> |
166317d464f3
Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents:
1301
diff
changeset
|
354 % endif |
734
49eb69d78988
implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents:
694
diff
changeset
|
355 <li> |
402
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
356 <a title="${_('Search')}" href="${h.url('search')}"> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
357 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
358 <img src="${h.url('/images/icons/search_16.png')}" alt="${_('Search')}" /> |
402
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
359 </span> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
360 <span>${_('Search')}</span> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
361 </a> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
362 </li> |
757c7eef0dcd
implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents:
380
diff
changeset
|
363 |
318
fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
364 %if h.HasPermissionAll('hg.admin')('access admin main page'): |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
365 <li ${is_current('admin')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
366 <a title="${_('Admin')}" href="${h.url('admin_home')}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
367 <span class="icon"> |
1318
9778e35ed02b
quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents:
1316
diff
changeset
|
368 <img src="${h.url('/images/icons/cog_edit.png')}" alt="${_('Admin')}" /> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
369 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
370 <span>${_('Admin')}</span> |
769
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
371 </a> |
4bdcc08b04c4
fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents:
768
diff
changeset
|
372 ${admin_menu()} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
373 </li> |
318
fdf9f6ee5217
Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents:
299
diff
changeset
|
374 %endif |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
375 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
376 %endif |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
377 </%def> |