annotate rhodecode/templates/base/base.html @ 1975:9c5b33c4de4d beta

quick login: add link to Journal to popup menu
author Aras Pranckevicius <aras@unity3d.com>
date Sun, 05 Feb 2012 19:10:08 +0200
parents 4ae17f819ee8
children 93d4e3eb7d84
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
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">
1470
ea41c494cc3f beatify !
Marcin Kuzminski <marcin@python-works.com>
parents: 1468
diff changeset
6 <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
7 <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
8 <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
9 </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
10 <!-- 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
11 ${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
12 <!-- 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
13 ${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
14 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
15 </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
16 <!-- END HEADER -->
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
17
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
18 <!-- CONTENT -->
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
19 <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
20 <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
21 <% 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
22 % 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
23 <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
24 % 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
25 <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
26 % endfor
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
27 </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
28 % endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
29 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
30 <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
31 ${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
32 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
33 </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
34 <!-- END CONTENT -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
35
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
36 <!-- 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
37 <div id="footer">
1470
ea41c494cc3f beatify !
Marcin Kuzminski <marcin@python-works.com>
parents: 1468
diff changeset
38 <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
39 <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
40 <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
41 <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
42 </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
43 <p class="footer-link-right">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
44 <a href="${h.url('rhodecode_official')}">RhodeCode</a>
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 ${c.rhodecode_version} &copy; 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
46 </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
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>
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 <!-- END FOOTER -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
51
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
52 ### 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
53 <%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
54 ${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
55 </%def>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
56
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
57 <%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
58 <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
59 ${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
60 </div>
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
61 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
62
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
63 <%def name="usermenu()">
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 <div class="user-menu">
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
65 <div class="container">
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
66 <div class="gravatar" id="quick_login_link">
1931
b6c849e64b37 display unread notifications only if present, make icon bigger on menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1926
diff changeset
67 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,24)}" />
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
68 </div>
1931
b6c849e64b37 display unread notifications only if present, make icon bigger on menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1926
diff changeset
69 %if c.rhodecode_user.username != 'default' and c.unread_notifications != 0:
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
70 <div class="notifications">
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
71 <a id="notification_counter" href="${h.url('notifications')}">${c.unread_notifications}</a>
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
72 </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
73 %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
74 </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
75 <div id="quick_login" style="display:none">
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
76 %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
77 <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
78 ${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
79 <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
80 <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
81 <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
82 <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
83 <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
84 </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
85 <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
86 ${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
87 </div>
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
88
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
89 </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
90 <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
91 <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
92 <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
93 </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
94 <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
95 ${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
96 </div>
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
97
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
98 </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
99 <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
100 <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
101 <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
102 %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
103 ${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
104 %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
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="submit">
1935
ff167a938ce0 user menu fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 1931
diff changeset
107 ${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
108 </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
109 </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
110 </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
111 </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
112 ${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
113 %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
114 <div class="links_left">
1950
4ae17f819ee8 #344 optional firstname lastname on user creation
Marcin Kuzminski <marcin@python-works.com>
parents: 1944
diff changeset
115 <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
116 <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
117 <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></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 <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
120 <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
121 <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
122 <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
123 <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
124 <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
125 </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
126 </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
127 %endif
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
128 </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
129 </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
130 </%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
131
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
132 <%def name="menu(current=None)">
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
133 <%
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
134 def is_current(selected):
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
135 if selected == current:
414
27f801e03489 fixed escaping for new webhelpers and added perm2user constraint
Marcin Kuzminski <marcin@python-works.com>
parents: 402
diff changeset
136 return h.literal('class="current"')
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
137 %>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
138 %if current not in ['home','admin']:
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
139 ##REGULAR MENU
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
140 <ul id="quick">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
141 <!-- 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
142 <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
143 <a class="menu_link" id="repo_switcher" title="${_('Switch repository')}" href="#">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
144 <span class="icon">
1316
caca5ee05bb7 added draft for quick login menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1305
diff changeset
145 <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
146 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
147 <span>&darr;</span>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
148 </a>
1158
f63cc1cbce27 implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents: 1157
diff changeset
149 <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
150 <li>
f63cc1cbce27 implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents: 1157
diff changeset
151 <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
152 </li>
f63cc1cbce27 implemented repo switcher list as dynamically loaded by xhr requestt.
Marcin Kuzminski <marcin@python-works.com>
parents: 1157
diff changeset
153 </ul>
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
154 </li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
155
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
156 <li ${is_current('summary')}>
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
157 <a class="menu_link" title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
158 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
159 <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
160 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
161 <span>${_('Summary')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
162 </a>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
163 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
164 <li ${is_current('changelog')}>
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
165 <a class="menu_link" title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
166 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
167 <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
168 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
169 <span>${_('Changelog')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
170 </a>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
171 </li>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
172
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
173 <li ${is_current('switch_to')}>
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
174 <a class="menu_link" id="branch_tag_switcher" title="${_('Switch to')}" href="#">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
175 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
176 <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
177 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
178 <span>${_('Switch to')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
179 </a>
1608
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
180 <ul id="switch_to_list" class="switch_to">
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
181 <li><a href="#">${_('loading...')}</a></li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
182 </ul>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
183 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
184 <li ${is_current('files')}>
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
185 <a class="menu_link" title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
186 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
187 <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
188 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
189 <span>${_('Files')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
190 </a>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
191 </li>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
192
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
193 <li ${is_current('options')}>
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
194 <a class="menu_link" title="${_('Options')}" href="#">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
195 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
196 <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
197 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
198 <span>${_('Options')}</span>
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
199 </a>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
200 <ul>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
201 %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
202 %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
203 <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
204 %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
205 <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
206 %endif
1054
32dbf759fa98 fixed #113 to high permission was required to fork a repository
Marcin Kuzminski <marcin@python-works.com>
parents: 1051
diff changeset
207 %endif
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
208 <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
209 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
210
1305
166317d464f3 Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
211 % 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
212 <li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
213 ${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
214 <%def name="admin_menu()">
613
956952fea94c added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents: 611
diff changeset
215 <ul>
956952fea94c added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents: 611
diff changeset
216 <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
217 <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
218 <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
219 <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
220 <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
221 <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
222 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
223 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
613
956952fea94c added admin shortcut menu to options
Marcin Kuzminski <marcin@python-works.com>
parents: 611
diff changeset
224 </ul>
769
4bdcc08b04c4 fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents: 768
diff changeset
225 </%def>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
226
769
4bdcc08b04c4 fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents: 768
diff changeset
227 ${admin_menu()}
1305
166317d464f3 Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
228 </li>
166317d464f3 Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
229 % endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
230 </ul>
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
231 </li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
232
747
2f89beda06a1 Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents: 734
diff changeset
233 <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
234 <a class="menu_link" 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
235 <span class="icon_short">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
236 <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
237 </span>
1070
f52aab02db29 Added dynamic followers counter change after toggle following action
Marcin Kuzminski <marcin@python-works.com>
parents: 1054
diff changeset
238 <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
239 </a>
2f89beda06a1 Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents: 734
diff changeset
240 </li>
2f89beda06a1 Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents: 734
diff changeset
241 <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
242 <a class="menu_link" 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
243 <span class="icon_short">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
244 <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
245 </span>
2f89beda06a1 Added icons with numbers of followers and number of forks
Marcin Kuzminski <marcin@python-works.com>
parents: 734
diff changeset
246 <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
247 </a>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
248 </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
249 ${usermenu()}
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
250 </ul>
1608
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
251 <script type="text/javascript">
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
252 YUE.on('repo_switcher','mouseover',function(){
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
253 function qfilter(){
1653
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
254 var nodes = YUQ('ul#repo_switcher_list li a.repo_name');
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
255 var target = 'q_filter_rs';
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
256 var func = function(node){
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
257 return node.parentNode;
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
258 }
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
259 q_filter(target,nodes,func);
1653
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
260 }
1608
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
261 var loaded = YUD.hasClass('repo_switcher','loaded');
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
262 if(!loaded){
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
263 YUD.addClass('repo_switcher','loaded');
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
264 ypjax("${h.url('repo_switcher')}",'repo_switcher_list',
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
265 function(o){qfilter();},
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
266 function(o){YUD.removeClass('repo_switcher','loaded');}
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
267 ,null);
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
268 }
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
269 return false;
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
270 });
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
271
1653
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
272 YUE.on('branch_tag_switcher','mouseover',function(){
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
273 var loaded = YUD.hasClass('branch_tag_switcher','loaded');
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
274 if(!loaded){
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
275 YUD.addClass('branch_tag_switcher','loaded');
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
276 ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list',
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
277 function(o){},
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
278 function(o){YUD.removeClass('branch_tag_switcher','loaded');}
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
279 ,null);
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
280 }
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
281 return false;
b1e1dffd595c one generic qfilter function.
Marcin Kuzminski <marcin@python-works.com>
parents: 1608
diff changeset
282 });
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
283 </script>
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
284 %else:
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
285 ##ROOT MENU
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
286 <ul id="quick">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
287 <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
288 <a class="menu_link" title="${_('Home')}" href="${h.url('home')}">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
289 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
290 <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
291 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
292 <span>${_('Home')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
293 </a>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
294 </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
295 %if c.rhodecode_user.username != 'default':
1305
166317d464f3 Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
296 <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
297 <a class="menu_link" title="${_('Journal')}" href="${h.url('journal')}">
734
49eb69d78988 implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents: 694
diff changeset
298 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
299 <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
300 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
301 <span>${_('Journal')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
302 </a>
1305
166317d464f3 Added server side file editing with commit
Marcin Kuzminski <marcin@python-works.com>
parents: 1301
diff changeset
303 </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
304 %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
305 <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
306 <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}">
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
307 <span class="icon">
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
308 <img src="${h.url('/images/icons/book.png')}" alt="${_('Public journal')}" />
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
309 </span>
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
310 <span>${_('Public journal')}</span>
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
311 </a>
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
312 </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
313 %endif
734
49eb69d78988 implemented user dashboards, and following system.
Marcin Kuzminski <marcin@python-works.com>
parents: 694
diff changeset
314 <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
315 <a class="menu_link" title="${_('Search')}" href="${h.url('search')}">
402
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
316 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
317 <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
318 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
319 <span>${_('Search')}</span>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
320 </a>
402
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
321 </li>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
322
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
323 %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
324 <li ${is_current('admin')}>
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
325 <a class="menu_link" title="${_('Admin')}" href="${h.url('admin_home')}">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
326 <span class="icon">
1318
9778e35ed02b quick login toggle
Marcin Kuzminski <marcin@python-works.com>
parents: 1316
diff changeset
327 <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
328 </span>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
329 <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
330 </a>
4bdcc08b04c4 fixes #77 moved out ldap config to it's own section
Marcin Kuzminski <marcin@python-works.com>
parents: 768
diff changeset
331 ${admin_menu()}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
332 </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
333 %endif
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
334 ${usermenu()}
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
335 </ul>
1608
0069657aaf42 lazy load of branches and tags menu
Marcin Kuzminski <marcin@python-works.com>
parents: 1474
diff changeset
336 %endif
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
337 </%def>