annotate kallithea/templates/base/base.html @ 4196:06e49be38d78 kallithea-2.2.5-rebrand

Rename rhodecode_repo to db_repo_scm_instance
author Bradley M. Kuhn <bkuhn@sfconservancy.org>
date Wed, 02 Jul 2014 19:05:00 -0400
parents 9581233e9275
children d208416c84c6
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">
3299
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
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">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
8 <div class="header">
4140
05ed7e20bd0f old style: use kallithea-logo.png in page headers
Mads Kiilerich <madski@unity3d.com>
parents: 4116
diff changeset
9 <a href="${h.url('home')}"><img src="${h.url('/images/kallithea-logo.png')}" alt="RhodeCode"/></a>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
10 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
11 %if c.rhodecode_name:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
12 <div class="branding">- ${c.rhodecode_name}</div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
13 %endif
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
14 </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
15 <!-- 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
16 ${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
17 <!-- 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
18 ${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
19 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
20 </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
21 <!-- END HEADER -->
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
22
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
23 <!-- CONTENT -->
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
24 <div id="content">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
25 ${self.flash_msg()}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
26 <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
27 ${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
28 </div>
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1791
diff changeset
29 </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
30 <!-- END CONTENT -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
31
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 <!-- 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
33 <div id="footer">
1470
ea41c494cc3f beatify !
Marcin Kuzminski <marcin@python-works.com>
parents: 1468
diff changeset
34 <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
35 <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
36 <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
37 ${_('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
38 </p>
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
39 <p class="footer-link-right">
4178
9dd726706178 Complete copyright notices for web interface; change footer to link to them.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4146
diff changeset
40 This site is powered by
3910
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
41 %if c.visual.show_version:
4193
fe982e5c086c Rename the project site
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4187
diff changeset
42 <a href="${h.url('kallithea_project_url')}" target="_blank">Kallithea</a> ${c.kallithea_version},
4178
9dd726706178 Complete copyright notices for web interface; change footer to link to them.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4146
diff changeset
43 %else:
4193
fe982e5c086c Rename the project site
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4187
diff changeset
44 <a href="${h.url('kallithea_project_url')}" target="_blank">Kallithea</a>,
3910
36f7562a5919 Implements #842 RhodeCode version disclosure.
Marcin Kuzminski <marcin@python-works.com>
parents: 3865
diff changeset
45 %endif
4178
9dd726706178 Complete copyright notices for web interface; change footer to link to them.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4146
diff changeset
46 which is
9dd726706178 Complete copyright notices for web interface; change footer to link to them.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4146
diff changeset
47 <a href="${h.url('about')}#copyright">&copy; 2010&ndash;2014 by various authors &amp; licensed under GPLv3</a>.
4194
da9aca2f4aef Correct support url and naming
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4193
diff changeset
48 %if c.issues_url:
da9aca2f4aef Correct support url and naming
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4193
diff changeset
49 &ndash; <a href="${c.issues_url}" target="_blank">${_('Support')}</a>
4006
cdf10b3df899 Allow RhodeCode maintainers to specify a custom bug tracker.
Jonathan Sternberg <jonathansternberg@gmail.com>
parents: 3988
diff changeset
50 %endif
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
51 </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
52 </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
53 </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
54 </div>
3667
16c153cf1759 update footer instance id and copyrights
Marcin Kuzminski <marcin@python-works.com>
parents: 3660
diff changeset
55
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
56 <!-- END FOOTER -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
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 ### MAKO DEFS ###
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
59
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
60 <%def name="flash_msg()">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
61 <%include file="/base/flash_msg.html"/>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
62 </%def>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
63
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
64 <%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
65 <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
66 ${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
67 </div>
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
68 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
69
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
70 <%def name="admin_menu()">
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
71 <ul class="admin_menu">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
72 <li><a href="${h.url('admin_home')}"><i class="icon-book"></i> ${_('Admin journal')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
73 <li><a href="${h.url('repos')}"><i class="icon-archive"></i> ${_('Repositories')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
74 <li><a href="${h.url('repos_groups')}"><i class="icon-folder-close"></i> ${_('Repository groups')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
75 <li><a href="${h.url('users')}"><i class="icon-user"></i> ${_('Users')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
76 <li><a href="${h.url('users_groups')}"><i class="icon-group"></i> ${_('User groups')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
77 <li><a href="${h.url('admin_permissions')}"><i class="icon-ban-circle"></i> ${_('Permissions')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
78 <li><a href="${h.url('auth_home')}"><i class="icon-key"></i> ${_('Authentication')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
79 <li><a href="${h.url('defaults')}"><i class="icon-wrench"></i> ${_('Defaults')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
80 <li class="last"><a href="${h.url('admin_settings')}"><i class="icon-cog"></i> ${_('Settings')}</a></li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
81 </ul>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
82
3529
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
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
85
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
86 ## admin menu used for people that have some admin resources
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 <%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
88 <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
89 %if repositories:
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
90 <li><a href="${h.url('repos')}"><i class="icon-archive"></i> ${_('Repositories')}</a></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
91 %endif
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
92 %if repository_groups:
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
93 <li><a href="${h.url('repos_groups')}"><i class="icon-folder-close"></i> ${_('Repository groups')}</a></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
94 %endif
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
95 %if user_groups:
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
96 <li><a href="${h.url('users_groups')}"><i class="icon-group"></i> ${_('User groups')}</a></li>
3714
7e3d89d9d3a2 - Manage User’s Groups: create, delete, rename, add/remove users inside.
Marcin Kuzminski <marcin@python-works.com>
parents: 3689
diff changeset
97 %endif
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
98 </ul>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
99 </%def>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
100
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
101 <%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
102 <%
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
103 def follow_class():
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
104 if c.repository_following:
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
105 return h.literal('following')
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
106 else:
3611
ceb7fdf4588a move repo actions from their own menu line to Options menu
Mads Kiilerich <madski@unity3d.com>
parents: 3609
diff changeset
107 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
108 %>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
109 <%
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
110 def is_current(selected):
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
111 if selected == current:
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
112 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
113 %>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
114
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
115 <!--- CONTEXT BAR -->
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
116 <div id="context-bar" class="box">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
117 <h2>
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
118 %if h.is_hg(c.db_repo):
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
119 <i class="icon-hg" style="color: #316293; font-size: 24px"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
120 %endif
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
121 %if h.is_git(c.db_repo):
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
122 <i class="icon-git" style="color: #e85634; font-size: 24px"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
123 %endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
124
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
125 ## public/private
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
126 %if c.db_repo.private:
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
127 <i class="icon-lock"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
128 %else:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
129 <i class="icon-unlock-alt"></i>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
130 %endif
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
131 ${h.repo_link(c.db_repo.groups_and_repo)}
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
132
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
133 %if current == 'createfork':
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
134 - ${_('Create fork')}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
135 %endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
136 </h2>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
137 <!--
3532
9e677f6d34cb Fixing missing icons.
Leonardo <leo@unity3d.com>
parents: 3530
diff changeset
138 <div id="breadcrumbs">
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
139 ${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
140 &raquo;
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
141 ${h.repo_link(c.db_repo.groups_and_repo)}
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
142 </div>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
143 -->
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
144 <ul id="context-pages" class="horizontal-list">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
145 <li ${is_current('summary')}><a href="${h.url('summary_home', repo_name=c.repo_name)}"><i class="icon-file-text"></i> ${_('Summary')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
146 <li ${is_current('changelog')}><a href="${h.url('changelog_home', repo_name=c.repo_name)}"><i class="icon-time"></i> ${_('Changelog')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
147 <li ${is_current('files')}><a href="${h.url('files_home', repo_name=c.repo_name)}"><i class="icon-file"></i> ${_('Files')}</a></li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
148 <li ${is_current('switch-to')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
149 <a href="#" id="branch_tag_switcher_2" class="dropdown"><i class="icon-random"></i> ${_('Switch To')}</a>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
150 <ul id="switch_to_list_2" class="switch_to submenu">
3986
6aa83fecf669 uppercase "Loading..."
Mads Kiilerich <madski@unity3d.com>
parents: 3960
diff changeset
151 <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
152 </ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
153 </li>
3539
c65b440540da Style clean up, and comments removal.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3538
diff changeset
154 <li ${is_current('options')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
155 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
156 <a href="${h.url('edit_repo',repo_name=c.repo_name)}" class="dropdown"><i class="icon-cogs"></i> ${_('Options')}</a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
157 %else:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
158 <a href="#" class="dropdown"><i class="icon-cogs"></i> ${_('Options')}</a>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
159 %endif
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
160 <ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
161 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
162 <li><a href="${h.url('edit_repo',repo_name=c.repo_name)}"><i class="icon-cog"></i> ${_('Settings')}</a></li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
163 %endif
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
164 %if c.db_repo.fork:
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
165 <li><a href="${h.url('compare_url',repo_name=c.db_repo.fork.repo_name,org_ref_type=c.db_repo.landing_rev[0],org_ref=c.db_repo.landing_rev[1], other_repo=c.repo_name,other_ref_type='branch' if request.GET.get('branch') else c.db_repo.landing_rev[0],other_ref=request.GET.get('branch') or c.db_repo.landing_rev[1], merge=1)}">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
166 <i class="icon-loop"></i> ${_('Compare fork')}</a></li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
167 %endif
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
168 <li><a href="${h.url('compare_home',repo_name=c.repo_name)}"><i class="icon-loop"></i> ${_('Compare')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
169
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
170 <li><a href="${h.url('search_repo',repo_name=c.repo_name)}"><i class="icon-search"></i> ${_('Search')}</a></li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
171
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
172 %if h.HasRepoPermissionAny('repository.write','repository.admin')(c.repo_name) and c.db_repo.enable_locking:
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
173 %if c.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
174 <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
175 %else:
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
176 <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
177 %endif
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
178 %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
179 ## 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
180 ## 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
181 %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
182 <li>
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
183 <a class="${follow_class()}" onclick="javascript:toggleFollowingRepo(this,${c.db_repo.repo_id},'${str(h.get_token())}');">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
184 <span class="show-follow"><i class="icon-heart-empty"></i> ${_('Follow')}</span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
185 <span class="show-following"><i class="icon-heart"></i> ${_('Unfollow')}</span>
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
186 </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
187 </li>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
188 <li><a href="${h.url('repo_fork_home',repo_name=c.repo_name)}"><i class="icon-code-fork"></i> ${_('Fork')}</a></li>
4196
06e49be38d78 Rename rhodecode_repo to db_repo_scm_instance
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4195
diff changeset
189 %if h.is_hg(c.db_repo_scm_instance):
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
190 <li><a href="${h.url('pullrequest_home',repo_name=c.repo_name)}"><i class="icon-code-fork"></i> ${_('Create Pull Request')}</a></li>
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
191 %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
192 %endif
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
193 </ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
194 </li>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
195 <li ${is_current('showpullrequest')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
196 <a href="${h.url('pullrequest_show_all',repo_name=c.repo_name)}" title="${_('Show Pull Requests for %s') % c.repo_name}"> <i class="icon-code-fork"></i> ${_('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
197 %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
198 <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
199 %endif
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
200 </a>
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
201 </li>
3527
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
202 </ul>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
203 </div>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
204 <script type="text/javascript">
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
205 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
206 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
207 if(!loaded){
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
208 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
209 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
210 function(o){},
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
211 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
212 ,null);
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
213 }
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
214 return false;
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
215 });
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
216 </script>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
217 <!--- END CONTEXT BAR -->
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
218 </%def>
87c97fcea029 Adding the context bar too all pages related to a Repository.
Leonardo <leo@unity3d.com>
parents: 3394
diff changeset
219
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
220 <%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
221 ## 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
222 <li>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
223 <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
224 <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
225 <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
226 </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
227 %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
228 <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
229 %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
230 <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
231 %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
232 %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
233 <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
234 %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
235 </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
236
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
237 <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
238 <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
239 %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
240 <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
241 ${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
242 <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
243 <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
244 <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
245 <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
246 <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
247 </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
248 <div class="input">
3422
b5ce72167906 fixed login input sizes
Marcin Kuzminski <marcin@python-works.com>
parents: 3410
diff changeset
249 ${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
250 </div>
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
251
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
252 </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
253 <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
254 <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
255 <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
256 </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
257 <div class="input">
3422
b5ce72167906 fixed login input sizes
Marcin Kuzminski <marcin@python-works.com>
parents: 3410
diff changeset
258 ${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
259 </div>
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
260
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
261 </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
262 <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
263 <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
264 <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
265 %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
266 ${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
267 %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
268 </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
269 <div class="submit">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
270 ${h.submit('sign_in',_('Log In'),class_="btn btn-mini")}
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
271 </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
272 </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
273 </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
274 </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
275 ${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
276 %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
277 <div class="links_left">
3658
7e73c0f4f335 usermenu
Marcin Kuzminski <marcin@python-works.com>
parents: 3657
diff changeset
278 <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
279 <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
280 <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
281 </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
282 <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
283 <ol class="links">
3658
7e73c0f4f335 usermenu
Marcin Kuzminski <marcin@python-works.com>
parents: 3657
diff changeset
284 <li><a href="${h.url('notifications')}">${_('Notifications')}: ${c.unread_notifications}</a></li>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
285 <li>${h.link_to(_(u'My account'),h.url('my_account'))}</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
286 <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
287 </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
288 </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
289 %endif
1944
5fc9c92025c1 white space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1935
diff changeset
290 </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
291 </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
292
d4bb8de7382f top menu: show user menu when hovering instead of using js - like other menus
Mads Kiilerich <madski@unity3d.com>
parents: 3205
diff changeset
293 </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
294 </%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
295
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
296 <%def name="menu(current=None)">
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
297 <%
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
298 def is_current(selected):
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
299 if selected == current:
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
300 return h.literal('class="current"')
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 3188
diff changeset
301 %>
3538
9bf927589f7a Tweaks to Changelog and Summary view, removing excess information, and improving layout.
Leonardo Carneiro <leonardo@unity3d.com>
parents: 3534
diff changeset
302 <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
303 <!-- 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
304 <li ${is_current('repositories')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
305 <input id="repo_switcher" name="repo_switcher" type="hidden">
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
306 </li>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
307
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
308 ##ROOT MENU
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
309 %if c.rhodecode_user.username != 'default':
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
310 <li ${is_current('journal')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
311 <a class="menu_link" title="${_('Show recent activity')}" href="${h.url('journal')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
312 <i class="icon-book"></i> ${_('Journal')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
313 </a>
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
314 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
315 %else:
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
316 <li ${is_current('journal')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
317 <a class="menu_link" title="${_('Public journal')}" href="${h.url('public_journal')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
318 <i class="icon-book"></i> ${_('Public journal')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
319 </a>
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
320 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
321 %endif
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
322 <li ${is_current('gists')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
323 <a class="menu_link childs" title="${_('Show public gists')}" href="${h.url('gists')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
324 <i class="icon-file-2"></i> ${_('Gists')}
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
325 </a>
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
326 <ul class="admin_menu">
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
327 <li><a href="${h.url('new_gist', public=1)}"><i class="icon-file-alt"></i> ${_('Create new gist')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
328 <li><a href="${h.url('gists')}"><i class="icon-copy"></i> ${_('All public gists')}</a></li>
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
329 %if c.rhodecode_user.username != 'default':
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
330 <li><a href="${h.url('gists', public=1)}"><i class="icon-copy"></i> ${_('My public gists')}</a></li>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
331 <li><a href="${h.url('gists', private=1)}"><i class="icon-file-text"></i> ${_('My private gists')}</a></li>
3840
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
332 %endif
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
333 </ul>
dc4644865e8b Implemented simple gist functionality ref #530.
Marcin Kuzminski <marcin@python-works.com>
parents: 3790
diff changeset
334 </li>
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
335 <li ${is_current('search')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
336 <a class="menu_link" title="${_('Search in repositories')}" href="${h.url('search')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
337 <i class="icon-search"></i> ${_('Search')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
338 </a>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
339 </li>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
340 % if h.HasPermissionAll('hg.admin')('access admin main page'):
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
341 <li ${is_current('admin')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
342 <a class="menu_link childs" title="${_('Admin')}" href="${h.url('admin_home')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
343 <i class="icon-cog"></i> ${_('Admin')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
344 </a>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
345 ${admin_menu()}
3209
e7600fe19943 Implements #734 repo switcher should be available in all views
Marcin Kuzminski <marcin@python-works.com>
parents: 3208
diff changeset
346 </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
347 % 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
348 <li ${is_current('admin')}>
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
349 <a class="menu_link childs" title="${_('Admin')}">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
350 <i class="icon-cog"></i> ${_('Admin')}
3529
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
351 </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
352 ${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
353 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
354 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
355 </li>
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
356 % endif
1c32b72930fa Addding context bar to more repo related pages.
leonardo
parents: 3528
diff changeset
357 ${usermenu()}
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
358
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
359 <script type="text/javascript">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
360 var visual_show_public_icon = "${c.visual.show_public_icon}" == "True";
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
361 var cache = {}
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
362 /*format the look of items in the list*/
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
363 var format = function(state){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
364 if (!state.id){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
365 return state.text; // optgroup
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
366 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
367 var obj_dict = state.obj;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
368 var tmpl = '';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
369
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
370 if(obj_dict && state.type == 'repo'){
4144
962f753552cd old style: don't reserve space for icons - they will have take the space they need
Mads Kiilerich <madski@unity3d.com>
parents: 4140
diff changeset
371 tmpl += '<span class="repo-icons">';
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
372 if(obj_dict['repo_type'] === 'hg'){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
373 tmpl += '<i class="icon-hg"></i> ';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
374 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
375 else if(obj_dict['repo_type'] === 'git'){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
376 tmpl += '<i class="icon-git"></i> ';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
377 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
378 if(obj_dict['private']){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
379 tmpl += '<i class="icon-lock" style="color: #e85634;"></i> ';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
380 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
381 else if(visual_show_public_icon){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
382 tmpl += '<i class="icon-unlock-alt"></i> ';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
383 }
4144
962f753552cd old style: don't reserve space for icons - they will have take the space they need
Mads Kiilerich <madski@unity3d.com>
parents: 4140
diff changeset
384 tmpl += '</span>';
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
385 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
386 if(obj_dict && state.type == 'group'){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
387 tmpl += '<i class="icon-folder-close"></i> ';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
388 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
389 tmpl += state.text;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
390 return tmpl;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
391 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
392
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
393 $("#repo_switcher").select2({
4146
5842d2115a25 old style: fix repository repository selector select2
Andrew Shadura <andrew@shadura.me>
parents: 4144
diff changeset
394 placeholder: '<i class="icon-archive"></i> ${_('Repositories')}',
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
395 dropdownAutoWidth: true,
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
396 formatResult: format,
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
397 formatSelection: format,
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
398 formatNoMatches: function(term){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
399 return "${_('No matches found')}";
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
400 },
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
401 containerCssClass: "repo-switcher",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
402 dropdownCssClass: "repo-switcher-dropdown",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
403 escapeMarkup: function(m){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
404 // don't escape our custom placeholder
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
405 if(m.substr(0,28) == '<i class="icon-archive"></i>'){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
406 return m;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
407 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
408
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
409 return Select2.util.escapeMarkup(m);
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
410 },
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
411 query: function(query){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
412 var key = 'cache';
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
413 var cached = cache[key] ;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
414 if(cached) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
415 var data = {results: []};
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
416 //filter results
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
417 $.each(cached.results, function(){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
418 var section = this.text;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
419 var children = [];
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
420 $.each(this.children, function(){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
421 if(query.term.length == 0 || this.text.toUpperCase().indexOf(query.term.toUpperCase()) >= 0 ){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
422 children.push({'id': this.id, 'text': this.text, 'type': this.type, 'obj': this.obj})
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
423 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
424 })
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
425 if(children.length !== 0){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
426 data.results.push({'text': section, 'children': children})
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
427 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
428
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
429 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
430 query.callback(data);
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
431 }else{
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
432 $.ajax({
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
433 url: "${h.url('repo_switcher_data')}",
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
434 data: {},
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
435 dataType: 'json',
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
436 type: 'GET',
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
437 success: function(data) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
438 cache[key] = data;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
439 query.callback({results: data.results});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
440 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
441 })
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
442 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
443 },
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
444 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
445
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
446 $("#repo_switcher").on('select2-selecting', function(e){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
447 e.preventDefault();
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
448 window.location = pyroutes.url('summary_home', {'repo_name': e.val})
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
449 })
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
450
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
451 ## Global mouse bindings ##
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
452
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
453 // general help "?"
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
454 Mousetrap.bind(['?'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
455 $('#help_kb').modal({})
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
456 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
457
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
458 // / open the quick filter
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
459 Mousetrap.bind(['/'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
460 $("#repo_switcher").select2("open");
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
461
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
462 // return false to prevent default browser behavior
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
463 // and stop event from bubbling
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
464 return false;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
465 });
3216
81bbb8086f03 whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 3211
diff changeset
466
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
467 // ctrl/command+b, show the the main bar
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
468 Mousetrap.bind(['command+b', 'ctrl+b'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
469 if($('#header-inner').hasClass('hover') && $('#content').hasClass('hover')){
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
470 $('#header-inner').removeClass('hover');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
471 $('#content').removeClass('hover');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
472 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
473 else{
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
474 $('#header-inner').addClass('hover');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
475 $('#content').addClass('hover');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
476 }
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
477 return false;
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
478 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
479
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
480 // general nav g + action
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
481 Mousetrap.bind(['g h'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
482 window.location = pyroutes.url('home');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
483 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
484 Mousetrap.bind(['g g'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
485 window.location = pyroutes.url('gists', {'private':1});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
486 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
487 Mousetrap.bind(['g G'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
488 window.location = pyroutes.url('gists', {'public':1});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
489 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
490 Mousetrap.bind(['n g'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
491 window.location = pyroutes.url('new_gist');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
492 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
493 Mousetrap.bind(['n r'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
494 window.location = pyroutes.url('new_repo');
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
495 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
496
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
497 % if hasattr(c, 'repo_name') and hasattr(c, 'db_repo'):
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
498 // nav in repo context
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
499 Mousetrap.bind(['g s'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
500 window.location = pyroutes.url('summary_home', {'repo_name': REPO_NAME});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
501 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
502 Mousetrap.bind(['g c'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
503 window.location = pyroutes.url('changelog_home', {'repo_name': REPO_NAME});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
504 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
505 Mousetrap.bind(['g F'], function(e) {
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
506 window.location = pyroutes.url('files_home', {'repo_name': REPO_NAME, 'revision': '${c.db_repo.landing_rev[1]}', 'f_path': '', 'search': '1'});
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
507 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
508 Mousetrap.bind(['g f'], function(e) {
4195
9581233e9275 Rename rhodecode_db_repo to db_repo - it stores db repo abstractions
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4194
diff changeset
509 window.location = pyroutes.url('files_home', {'repo_name': REPO_NAME, 'revision': '${c.db_repo.landing_rev[1]}', 'f_path': ''});
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
510 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
511 Mousetrap.bind(['g o'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
512 window.location = pyroutes.url('edit_repo', {'repo_name': REPO_NAME});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
513 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
514 Mousetrap.bind(['g O'], function(e) {
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
515 window.location = pyroutes.url('edit_repo_perms', {'repo_name': REPO_NAME});
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
516 });
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
517 % endif
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
518
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
519 </script>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
520 </%def>
3299
d561eb3787f5 header: don't use fixed position
Mads Kiilerich <madski@unity3d.com>
parents: 3297
diff changeset
521
4116
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
522 <div class="modal" id="help_kb" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
523 <div class="modal-dialog">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
524 <div class="modal-content">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
525 <div class="modal-header">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
526 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
527 <h4 class="modal-title">${_('Keyboard shortcuts')}</h4>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
528 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
529 <div class="modal-body">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
530 <div class="row">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
531 <div class="col-md-5">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
532 <table class="keyboard-mappings">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
533 <tbody>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
534 <tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
535 <th></th>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
536 <th>${_('Site-wide shortcuts')}</th>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
537 </tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
538 <%
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
539 elems = [
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
540 ('/', 'Open quick search box'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
541 ('ctrl/cmd+b', 'Show main settings bar'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
542 ('g h', 'Goto home page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
543 ('g g', 'Goto my private gists page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
544 ('g G', 'Goto my public gists page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
545 ('n r', 'New repository page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
546 ('n g', 'New gist page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
547 ]
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
548 %>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
549 %for key, desc in elems:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
550 <tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
551 <td class="keys">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
552 <span class="key">${key}</span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
553 </td>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
554 <td>${desc}</td>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
555 </tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
556 %endfor
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
557 </tbody>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
558 </table>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
559 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
560 <div class="col-md-offset-5">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
561 <table class="keyboard-mappings">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
562 <tbody>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
563 <tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
564 <th></th>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
565 <th>${_('Repositories')}</th>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
566 </tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
567 <%
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
568 elems = [
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
569 ('g s', 'Goto summary page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
570 ('g c', 'Goto changelog page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
571 ('g f', 'Goto files page'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
572 ('g F', 'Goto files page with file search activated'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
573 ('g o', 'Goto repository settings'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
574 ('g O', 'Goto repository permissions settings'),
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
575 ]
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
576 %>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
577 %for key, desc in elems:
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
578 <tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
579 <td class="keys">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
580 <span class="key">${key}</span>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
581 </td>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
582 <td>${desc}</td>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
583 </tr>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
584 %endfor
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
585 </tbody>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
586 </table>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
587 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
588 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
589 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
590 <div class="modal-footer">
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
591 </div>
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
592 </div><!-- /.modal-content -->
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
593 </div><!-- /.modal-dialog -->
ffd45b185016 Imported some of the GPLv3'd changes from RhodeCode v2.2.5.
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents: 4024
diff changeset
594 </div><!-- /.modal -->