annotate rhodecode/templates/base/base.html @ 3986:6aa83fecf669

uppercase "Loading..."
author Mads Kiilerich <madski@unity3d.com>
date Wed, 12 Jun 2013 01:36:35 +0200
parents 5293d4bbb1ea
children 072a37c44f58
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 -->
3299
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
5 <div id="header-dd"></div>
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
6 <div id="header">
3299
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
7 <div id="header-inner" class="title">
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
8 <div id="logo">
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
9 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
10 </div>
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
11 <!-- MENU -->
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
12 ${self.page_nav()}
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
13 <!-- END MENU -->
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
14 ${self.body()}
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
15 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
16 </div>
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
17 <!-- END HEADER -->
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
18
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
19 <!-- CONTENT -->
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
20 <div id="content">
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
21 <div class="flash_msg">
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
22 <% messages = h.flash.pop_messages() %>
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
23 % if messages:
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
24 <ul id="flash-messages">
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
25 % for message in messages:
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
26 <li class="${message.category}_msg">${message}</li>
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
27 % endfor
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
28 </ul>
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
29 % endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
30 </div>
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
31 <div id="main">
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
32 ${next.main()}
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
33 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
34 </div>
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
35 <!-- END CONTENT -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
36
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
37 <!-- FOOTER -->
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
38 <div id="footer">
1470
ea41c494cc3f beatify !
Marcin Kuzminski <marcin@python-works.com>
parents: 1468
diff changeset
39 <div id="footer-inner" class="title">
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
40 <div>
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
41 <p class="footer-link">
3779
e61a656b44bd html: move "Submit a bug" to make it more clear that it is for RhodeCode, not the repo
Mads Kiilerich <madski@unity3d.com>
parents: 3764
diff changeset
42 ${_('Server instance: %s') % c.rhodecode_instanceid if c.rhodecode_instanceid else ''}
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
43 </p>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
44 <p class="footer-link-right">
3910
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
45 <a href="${h.url('rhodecode_official')}">
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
46 RhodeCode
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
47 %if c.visual.show_version:
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
48 ${c.rhodecode_version}
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
49 %endif
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
50 </a>
3667
16c153cf1759 update footer instance id and copyrights
Marcin Kuzminski <marcin@python-works.com>
parents: 3660
diff changeset
51 &copy; 2010-${h.datetime.today().year} by Marcin Kuzminski and others
3779
e61a656b44bd html: move "Submit a bug" to make it more clear that it is for RhodeCode, not the repo
Mads Kiilerich <madski@unity3d.com>
parents: 3764
diff changeset
52 &ndash; <a href="${h.url('bugtracker')}">${_('Report a bug')}</a>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
53 </p>
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
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 </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
56 </div>
3667
16c153cf1759 update footer instance id and copyrights
Marcin Kuzminski <marcin@python-works.com>
parents: 3660
diff changeset
57
1157
41241617a7a3 rewrote templates, all small pages will inherit from root for easier changes and controll
Marcin Kuzminski <marcin@python-works.com>
parents: 1156
diff changeset
58 <!-- END FOOTER -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
59
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
60 ### 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
61 <%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
62 <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
63 ${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
64 </div>
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
65 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
66
3609
2ea981f9da79 templates: enforce more consistency by being less flexible in templates
Mads Kiilerich <madski@unity3d.com>
parents: 3603
diff changeset
67 <%def name="context_bar(current)">
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
68 ${repo_context_bar(current)}
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
69 </%def>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
70
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
71 <%def name="admin_menu()">
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
72 <ul class="admin_menu">
3654
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
73 <li>${h.link_to(_('Admin journal'),h.url('admin_home'),class_='journal ')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
74 <li>${h.link_to(_('Repositories'),h.url('repos'),class_='repos')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
75 <li>${h.link_to(_('Repository groups'),h.url('repos_groups'),class_='repos_groups')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
76 <li>${h.link_to(_('Users'),h.url('users'),class_='users')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
77 <li>${h.link_to(_('User groups'),h.url('users_groups'),class_='groups')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
78 <li>${h.link_to(_('Permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
79 <li>${h.link_to(_('LDAP'),h.url('ldap_home'),class_='ldap')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
80 <li>${h.link_to(_('Defaults'),h.url('defaults'),class_='defaults')}</li>
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
81 <li class="last">${h.link_to(_('Settings'),h.url('admin_settings'),class_='settings')}</li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
82 </ul>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
83 </%def>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
84
3865
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
85 <%def name="admin_menu_simple(repositories=None, repository_groups=None, user_groups=None)">
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
86 <ul>
3865
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
87 %if repositories:
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
88 <li>${h.link_to(_('Repositories'),h.url('repos'),class_='repos')}</li>
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
89 %endif
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
90 %if repository_groups:
3654
ec6354949623 Fix a lot of casings - use standard casing in most places
Mads Kiilerich <madski@unity3d.com>
parents: 3629
diff changeset
91 <li>${h.link_to(_('Repository groups'),h.url('repos_groups'),class_='repos_groups')}</li>
3865
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
92 %endif
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
93 %if user_groups:
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
94 <li>${h.link_to(_('User groups'),h.url('users_groups'),class_='groups')}</li>
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
95 %endif
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
96 </ul>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
97 </%def>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
98
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
99 <%def name="repo_context_bar(current=None)">
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
100 <%
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
101 def follow_class():
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
102 if c.repository_following:
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
103 return h.literal('following')
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
104 else:
3611
ceb7fdf4588a move repo actions from their own menu line to Options menu
Mads Kiilerich <madski@unity3d.com>
parents: 3609
diff changeset
105 return h.literal('follow')
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
106 %>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
107 <%
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
108 def is_current(selected):
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
109 if selected == current:
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
110 return h.literal('class="current"')
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
111 %>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
112
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
113 <!--- CONTEXT BAR -->
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
114 <div id="context-bar" class="box">
3532
9e677f6d34cb Fixing missing icons.
Leonardo <leo@unity3d.com>
parents: 3530
diff changeset
115 <div id="breadcrumbs">
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
116 ${h.link_to(_(u'Repositories'),h.url('home'))}
3599
8087731920d8 breadcrumbs: make repo names link to summary pages
Mads Kiilerich <madski@unity3d.com>
parents: 3586
diff changeset
117 &raquo;
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
118 ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
119 </div>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
120 <ul id="context-pages" class="horizontal-list">
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
121 <li ${is_current('summary')}><a href="${h.url('summary_home', repo_name=c.repo_name)}" class="summary">${_('Summary')}</a></li>
3534
0700ca7f6a67 Fixing typo
Leonardo <leo@unity3d.com>
parents: 3532
diff changeset
122 <li ${is_current('changelog')}><a href="${h.url('changelog_home', repo_name=c.repo_name)}" class="changelogs">${_('Changelog')}</a></li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
123 <li ${is_current('files')}><a href="${h.url('files_home', repo_name=c.repo_name)}" class="files"></span>${_('Files')}</a></li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
124 <li ${is_current('switch-to')}>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
125 <a href="#" id="branch_tag_switcher_2" class="dropdown switch-to"></span>${_('Switch To')}</a>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
126 <ul id="switch_to_list_2" class="switch_to submenu">
3986
6aa83fecf669 uppercase "Loading..."
Mads Kiilerich <madski@unity3d.com>
parents: 3960
diff changeset
127 <li><a href="#">${_('Loading...')}</a></li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
128 </ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
129 </li>
3539
c65b440540da Style clean up, and comments removal.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3538
diff changeset
130 <li ${is_current('options')}>
3586
906af649c9f9 i18n context bar
Takumi IINO <trot.thunder@gmail.com>
parents: 3584
diff changeset
131 <a href="#" class="dropdown options"></span>${_('Options')}</a>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
132 <ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
133 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
134 <li>${h.link_to(_('Settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
135 %endif
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
136 %if c.rhodecode_db_repo.fork:
3613
6bc4b63bb225 use merge param in compare link for it to work as expected
Marcin Kuzminski <marcin@python-works.com>
parents: 3612
diff changeset
137 <li>${h.link_to(_('Compare fork'),h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default', merge=1),class_='compare_request')}</li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
138 %endif
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
139 <li>${h.link_to(_('Search'),h.url('search_repo',repo_name=c.repo_name),class_='search')}</li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
140
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
141 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.rhodecode_db_repo.enable_locking:
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
142 %if c.rhodecode_db_repo.locked[0]:
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
143 <li>${h.link_to(_('Unlock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_del')}</li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
144 %else:
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
145 <li>${h.link_to(_('Lock'), h.url('toggle_locking',repo_name=c.repo_name),class_='locking_add')}</li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
146 %endif
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
147 %endif
3616
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
148 ## TODO: this check feels wrong, it would be better to have a check for permissions
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
149 ## also it feels like a job for the controller
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
150 %if c.rhodecode_user.username != 'default':
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
151 <li>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
152 <a class="${follow_class()}" onclick="javascript:toggleFollowingRepo(this,${c.rhodecode_db_repo.repo_id},'${str(h.get_token())}');">
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
153 <span class="show-follow">${_('Follow')}</span>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
154 <span class="show-following">${_('Unfollow')}</span>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
155 </a>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
156 </li>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
157 <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}" class="fork">${_('Fork')}</a></li>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
158 %if h.is_hg(c.rhodecode_repo):
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
159 <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="pull-request">${_('Create Pull Request')}</a></li>
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
160 %endif
e9ac7544c2f6 added super simple cache_key paster function for showing and cleaning cache keys
Marcin Kuzminski <marcin@python-works.com>
parents: 3613
diff changeset
161 %endif
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
162 </ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
163 </li>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
164 <li ${is_current('showpullrequest')}>
3581
93d912ea8cb1 show forks in contextbar
Marcin Kuzminski <marcin@python-works.com>
parents: 3552
diff changeset
165 <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests')}" class="pull-request">${_('Pull Requests')}
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
166 %if c.repository_pull_requests:
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
167 <span>${c.repository_pull_requests}</span>
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
168 %endif
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
169 </a>
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
170 </li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
171 </ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
172 </div>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
173 <script type="text/javascript">
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
174 YUE.on('branch_tag_switcher_2','mouseover',function(){
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
175 var loaded = YUD.hasClass('branch_tag_switcher_2','loaded');
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
176 if(!loaded){
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
177 YUD.addClass('branch_tag_switcher_2','loaded');
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
178 ypjax("${h.url('branch_tag_switcher',repo_name=c.repo_name)}",'switch_to_list_2',
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
179 function(o){},
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
180 function(o){YUD.removeClass('branch_tag_switcher_2','loaded');}
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
181 ,null);
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
182 }
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
183 return false;
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
184 });
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
185 </script>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
186 <!--- END CONTEXT BAR -->
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
187 </%def>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
188
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
189 <%def name="usermenu()">
3206
d4bb8de7382f top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents: 3205
diff changeset
190 ## USER MENU
3205
f01540c62f8a top menu: show user menu as a menu option like others, now also with login name
Mads Kiilerich <madski@unity3d.com>
parents: 3204
diff changeset
191 <li>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
192 <a class="menu_link childs" id="quick_login_link">
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
193 <span class="icon">
3207
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
194 <img src="${h.gravatar_url(c.rhodecode_user.email,20)}" alt="avatar">
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
195 </span>
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
196 %if c.rhodecode_user.username != 'default':
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
197 <span class="menu_link_user">${c.rhodecode_user.username}</span>
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
198 %if c.unread_notifications != 0:
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
199 <span class="menu_link_notifications">${c.unread_notifications}</span>
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
200 %endif
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
201 %else:
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
202 <span>${_('Not logged in')}</span>
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
203 %endif
b9de46161c96 make gravatar icon little bit bigger, re-use same img src like on other menu items,
Marcin Kuzminski <marcin@python-works.com>
parents: 3206
diff changeset
204 </a>
3205
f01540c62f8a top menu: show user menu as a menu option like others, now also with login name
Mads Kiilerich <madski@unity3d.com>
parents: 3204
diff changeset
205
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
206 <div class="user-menu">
3206
d4bb8de7382f top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents: 3205
diff changeset
207 <div id="quick_login">
1926
049bc911b04f removed upper menu to save space and did little rip off menu similar to G+
Marcin Kuzminski <marcin@python-works.com>
parents: 1888
diff changeset
208 %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
209 <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
210 ${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
211 <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
212 <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
213 <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
214 <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
215 <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
216 </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
217 <div class="input">
3422
b5ce72167906 fixed login input sizes
Marcin Kuzminski <marcin@python-works.com>
parents: 3410
diff changeset
218 ${h.text('username',class_='focus')}
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
219 </div>
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
220
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
221 </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
222 <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
223 <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
224 <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
225 </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
226 <div class="input">
3422
b5ce72167906 fixed login input sizes
Marcin Kuzminski <marcin@python-works.com>
parents: 3410
diff changeset
227 ${h.password('password',class_='focus')}
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
228 </div>
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
229
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
230 </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
231 <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
232 <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
233 <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
234 %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
235 ${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
236 %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
237 </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
238 <div class="submit">
1935
ff167a938ce0 user menu fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 1931
diff changeset
239 ${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
240 </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
241 </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
242 </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
243 </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
244 ${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
245 %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
246 <div class="links_left">
3658
7e73c0f4f335 usermenu
Marcin Kuzminski <marcin@python-works.com>
parents: 3657
diff changeset
247 <div class="big_gravatar"><img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,48)}" /></div>
1950
4ae17f819ee8 #344 optional firstname lastname on user creation
Marcin Kuzminski <marcin@python-works.com>
parents: 1944
diff changeset
248 <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
249 <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
250 </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
251 <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
252 <ol class="links">
3658
7e73c0f4f335 usermenu
Marcin Kuzminski <marcin@python-works.com>
parents: 3657
diff changeset
253 <li><a href="${h.url('notifications')}">${_('Notifications')}: ${c.unread_notifications}</a></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
254 <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
255 <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
256 </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
257 </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
258 %endif
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
259 </div>
3206
d4bb8de7382f top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents: 3205
diff changeset
260 </div>
d4bb8de7382f top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents: 3205
diff changeset
261
d4bb8de7382f top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents: 3205
diff changeset
262 </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
263 </%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
264
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
265 <%def name="menu(current=None)">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
266 <%
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
267 def is_current(selected):
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
268 if selected == current:
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
269 return h.literal('class="current"')
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
270 %>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
271 <ul id="quick" class="horizontal-list">
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
272 <!-- repo switcher -->
3603
eacd33e0c5b3 use valid options for the top menu: repositories, journal, search and admin
Mads Kiilerich <madski@unity3d.com>
parents: 3601
diff changeset
273 <li ${is_current('repositories')}>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
274 <a class="menu_link repo_switcher childs" id="repo_switcher" title="${_('Switch repository')}" href="${h.url('home')}">
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
275 ${_('Repositories')}
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
276 </a>
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
277 <ul id="repo_switcher_list" class="repo_switcher">
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
278 <li>
3986
6aa83fecf669 uppercase "Loading..."
Mads Kiilerich <madski@unity3d.com>
parents: 3960
diff changeset
279 <a href="#">${_('Loading...')}</a>
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
280 </li>
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
281 </ul>
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
282 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
283 ##ROOT MENU
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
284 %if c.rhodecode_user.username != 'default':
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
285 <li ${is_current('journal')}>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
286 <a class="menu_link journal" title="${_('Show recent activity')}" href="${h.url('journal')}">
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
287 ${_('Journal')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
288 </a>
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
289 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
290 %else:
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
291 <li ${is_current('journal')}>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
292 <a class="menu_link journal" title="${_('Public journal')}" href="${h.url('public_journal')}">
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
293 ${_('Public journal')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
294 </a>
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
295 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
296 %endif
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
297 <li ${is_current('gists')}>
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
298 <a class="menu_link gists childs" title="${_('Show public gists')}" href="${h.url('gists')}">
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
299 ${_('Gists')}
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
300 </a>
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
301 <ul class="admin_menu">
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
302 <li>${h.link_to(_('Create new gist'),h.url('new_gist'),class_='gists-new ')}</li>
3847
bec04f371579 Gist: added shortcut for my public gists
Marcin Kuzminski <marcin@python-works.com>
parents: 3840
diff changeset
303 <li>${h.link_to(_('All public gists'),h.url('gists'),class_='gists ')}</li>
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
304 %if c.rhodecode_user.username != 'default':
3847
bec04f371579 Gist: added shortcut for my public gists
Marcin Kuzminski <marcin@python-works.com>
parents: 3840
diff changeset
305 <li>${h.link_to(_('My public gists'),h.url('gists', public=1),class_='gists')}</li>
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
306 <li>${h.link_to(_('My private gists'),h.url('gists', private=1),class_='gists-private ')}</li>
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
307 %endif
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
308 </ul>
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
309 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
310 <li ${is_current('search')}>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
311 <a class="menu_link search" title="${_('Search in repositories')}" href="${h.url('search')}">
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
312 ${_('Search')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
313 </a>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
314 </li>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
315 % if h.HasPermissionAll('hg.admin')('access admin main page'):
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
316 <li ${is_current('admin')}>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
317 <a class="menu_link admin childs" title="${_('Admin')}" href="${h.url('admin_home')}">
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
318 ${_('Admin')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
319 </a>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
320 ${admin_menu()}
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
321 </li>
3865
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
322 % elif c.rhodecode_user.repositories_admin or c.rhodecode_user.repository_groups_admin or c.rhodecode_user.user_groups_admin:
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
323 <li ${is_current('admin')}>
3660
38939a5ddae0 fixed dead links for non-admin users
Marcin Kuzminski <marcin@python-works.com>
parents: 3658
diff changeset
324 <a class="menu_link admin childs" title="${_('Admin')}">
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
325 ${_('Admin')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
326 </a>
3865
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
327 ${admin_menu_simple(c.rhodecode_user.repositories_admin,
100be6988bb0 show admin menu and list for users who are admins of repos.
Marcin Kuzminski <marcin@python-works.com>
parents: 3847
diff changeset
328 c.rhodecode_user.repository_groups_admin,
3790
1aee8b0cea70 show link to usergroups if we have a create usergroup permission
Marcin Kuzminski <marcin@python-works.com>
parents: 3779
diff changeset
329 c.rhodecode_user.user_groups_admin or h.HasPermissionAny('hg.usergroup.create.true')())}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
330 </li>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
331 % endif
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
332 ${usermenu()}
3211
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
333 <script type="text/javascript">
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
334 YUE.on('repo_switcher','mouseover',function(){
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
335 var target = 'q_filter_rs';
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
336 var qfilter_activate = function(){
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
337 var nodes = YUQ('ul#repo_switcher_list li a.repo_name');
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
338 var func = function(node){
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
339 return node.parentNode;
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
340 }
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
341 q_filter(target,nodes,func);
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
342 }
3216
81bbb8086f03 whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3211
diff changeset
343
3211
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
344 var loaded = YUD.hasClass('repo_switcher','loaded');
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
345 if(!loaded){
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
346 YUD.addClass('repo_switcher','loaded');
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
347 ypjax("${h.url('repo_switcher')}",'repo_switcher_list',
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
348 function(o){qfilter_activate();YUD.get(target).focus()},
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
349 function(o){YUD.removeClass('repo_switcher','loaded');}
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
350 ,null);
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
351 }else{
3267
7b74079beec9 coding style: fix trailing and leading spaces and tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3216
diff changeset
352 YUD.get(target).focus();
3211
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
353 }
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
354 return false;
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
355 });
3299
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
356
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
357 YUE.on('header-dd', 'click',function(e){
3315
fc08484c5bf3 whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3299
diff changeset
358 YUD.addClass('header-inner', 'hover');
3341
030103d57e30 drop down hover menu now fixes whole page padding
Marcin Kuzminski <marcin@python-works.com>
parents: 3322
diff changeset
359 YUD.addClass('content', 'hover');
3299
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
360 });
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
361
3211
c77a846a24d5 autofocus when quick repo switcher is on
Marcin Kuzminski <marcin@python-works.com>
parents: 3210
diff changeset
362 </script>
1472
aaec08ad9daf Added pt_BR localization, added i18n wrappers on some places missing, fixed css in settings screen for longer labels.
Augusto Herrmann <augusto.herrmann@planejamento.gov.br>
parents: 1453
diff changeset
363 </%def>