annotate rhodecode/templates/base/base.html @ 611:edf8567be8ed

css cleanup, fixed rounded corners, removed obsolete images and css imports
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 18 Oct 2010 15:19:51 +0200
parents 7dbeb55fe533
children 956952fea94c
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 -*-
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
143
787689980bcd Tempaltes changes for changelog and shortlog, changed menu generation in base
Marcin Kuzminski <marcin@python-works.com>
parents: 109
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
4 <head>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
5 <title>${next.title()}</title>
101
8b06c420491d statics moved to pylons.
Marcin Kuzminski <marcin@python-works.com>
parents: 98
diff changeset
6 <link rel="icon" href="/images/hgicon.png" type="image/png" />
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
44
d924b931b488 Added managment pages.
marcink
parents: 0
diff changeset
8 <meta name="robots" content="index, nofollow"/>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
9 <!-- stylesheets -->
98
01d0f363f36d added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
10 ${self.css()}
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
11 <!-- scripts -->
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
12 ${self.js()}
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
13 </head>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
14 <body>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
15 <!-- header -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
16 <div id="header">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
17 <!-- user -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
18 <ul id="logged-user">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
19 <li class="first">
402
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
20 <div class="gravatar">
548
b75b77ef649d renamed hg_app to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
21 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,24)}" />
402
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
22 </div>
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
23 <div class="account">
548
b75b77ef649d renamed hg_app to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
24 ${h.link_to('%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname),h.url('admin_settings_my_account'))}<br/>
b75b77ef649d renamed hg_app to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
25 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'))}
402
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
26 </div>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
27 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
28 <li class="last highlight">${h.link_to(u'Logout',h.url('logout_home'))}</li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
29 </ul>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
30 <!-- end user -->
611
edf8567be8ed css cleanup, fixed rounded corners, removed obsolete images and css imports
Marcin Kuzminski <marcin@python-works.com>
parents: 580
diff changeset
31 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
32 <!-- logo -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
33 <div id="logo">
548
b75b77ef649d renamed hg_app to rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents: 547
diff changeset
34 <h1><a href="${h.url('hg_home')}">${c.rhodecode_name}</a></h1>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
35 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
36 <!-- end logo -->
611
edf8567be8ed css cleanup, fixed rounded corners, removed obsolete images and css imports
Marcin Kuzminski <marcin@python-works.com>
parents: 580
diff changeset
37 <!-- menu -->
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
38 ${self.page_nav()}
611
edf8567be8ed css cleanup, fixed rounded corners, removed obsolete images and css imports
Marcin Kuzminski <marcin@python-works.com>
parents: 580
diff changeset
39 <!-- quick -->
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
40 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
41 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
42 <!-- end header -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
43
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
44 <!-- CONTENT -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
45 <div id="content">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
46 <div class="flash_msg">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
47 <% messages = h.flash.pop_messages() %>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
48 % if messages:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
49 <ul id="flash-messages">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
50 % for message in messages:
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
51 <li class="${message.category}_msg">${message}</li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
52 % endfor
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
53 </ul>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
54 % endif
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
55 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
56 <div id="main">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
57 ${next.main()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
58 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
59 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
60 <!-- END CONTENT -->
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
61
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
62 <!-- footer -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
63 <div id="footer">
611
edf8567be8ed css cleanup, fixed rounded corners, removed obsolete images and css imports
Marcin Kuzminski <marcin@python-works.com>
parents: 580
diff changeset
64 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
569
000b675e7c1d bumped version, some spelling fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 548
diff changeset
65 <p>RhodeCode ${c.rhodecode_version} &copy; 2010 by Marcin Kuzminski</p>
611
edf8567be8ed css cleanup, fixed rounded corners, removed obsolete images and css imports
Marcin Kuzminski <marcin@python-works.com>
parents: 580
diff changeset
66 </div>
edf8567be8ed css cleanup, fixed rounded corners, removed obsolete images and css imports
Marcin Kuzminski <marcin@python-works.com>
parents: 580
diff changeset
67 <script type="text/javascript">${h.tooltip.activate()}</script>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
68 </div>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
69 <!-- end footer -->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
70 </body>
0
564e40829f80 initial commit.
Marcin Kuzminski
parents:
diff changeset
71
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
72 </html>
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
73
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
74 ### MAKO DEFS ###
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
75 <%def name="page_nav()">
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
76 ${self.menu()}
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
77 </%def>
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
78
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
79 <%def name="menu(current=None)">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
80 <%
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
81 def is_current(selected):
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
82 if selected == current:
414
27f801e03489 fixed escaping for new webhelpers and added perm2user constraint
Marcin Kuzminski <marcin@python-works.com>
parents: 402
diff changeset
83 return h.literal('class="current"')
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
84 %>
454
ffbd1808b4c8 fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents: 453
diff changeset
85 %if current not in ['home','admin']:
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
86 ##REGULAR MENU
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
87 <ul id="quick">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
88 <!-- repo switcher -->
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
89 <li>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
90 <a id="repo_switcher" title="${_('Switch repository')}" href="#">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
91 <span class="icon">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
92 <img src="/images/icons/database.png" alt="${_('Products')}" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
93 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
94 <span>&darr;</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
95 </a>
454
ffbd1808b4c8 fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents: 453
diff changeset
96 <ul class="repo_switcher">
477
fdebc5f67dc6 Some gui fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 476
diff changeset
97 %for repo,private in c.repo_switcher_list:
fdebc5f67dc6 Some gui fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 476
diff changeset
98 %if private:
fdebc5f67dc6 Some gui fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 476
diff changeset
99 <li>${h.link_to(repo,h.url('summary_home',repo_name=repo),class_="private_repo")}</li>
fdebc5f67dc6 Some gui fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 476
diff changeset
100 %else:
fdebc5f67dc6 Some gui fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 476
diff changeset
101 <li>${h.link_to(repo,h.url('summary_home',repo_name=repo),class_="public_repo")}</li>
fdebc5f67dc6 Some gui fixes
Marcin Kuzminski <marcin@python-works.com>
parents: 476
diff changeset
102 %endif
454
ffbd1808b4c8 fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents: 453
diff changeset
103 %endfor
ffbd1808b4c8 fixed repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents: 453
diff changeset
104 </ul>
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
105 </li>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
106
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
107 <li ${is_current('summary')}>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
108 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
109 <span class="icon">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
110 <img src="/images/icons/clipboard_16.png" alt="${_('Summary')}" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
111 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
112 <span>${_('Summary')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
113 </a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
114 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
115 <li ${is_current('shortlog')}>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
116 <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
117 <span class="icon">
580
7dbeb55fe533 changed icon for shortlog
Marcin Kuzminski <marcin@python-works.com>
parents: 578
diff changeset
118 <img src="/images/icons/application_view_list.png" alt="${_('Shortlog')}" />
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
119 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
120 <span>${_('Shortlog')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
121 </a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
122 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
123 <li ${is_current('changelog')}>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
124 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
125 <span class="icon">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
126 <img src="/images/icons/time.png" alt="${_('Changelog')}" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
127 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
128 <span>${_('Changelog')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
129 </a>
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
130 </li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
131
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
132 <li ${is_current('switch_to')}>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
133 <a title="${_('Switch to')}" href="#">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
134 <span class="icon">
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
135 <img src="/images/icons/arrow_switch.png" alt="${_('Switch to')}" />
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
136 </span>
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
137 <span>${_('Switch to')}</span>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
138 </a>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
139 <ul>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
140 <li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
141 ${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
142 <ul>
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
143 %if c.repository_branches.values():
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
144 %for cnt,branch in enumerate(c.repository_branches.items()):
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
145 <li>${h.link_to('%s - %s' % (branch[0],branch[1]),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
146 %endfor
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
147 %else:
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
148 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
149 %endif
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
150 </ul>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
151 </li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
152 <li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
153 ${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
154 <ul>
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
155 %if c.repository_tags.values():
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
156 %for cnt,tag in enumerate(c.repository_tags.items()):
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
157 <li>${h.link_to('%s - %s' % (tag[0],tag[1]),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
158 %endfor
509
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
159 %else:
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
160 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
b50e79b4257a fixes to pidlock, to not raise unneded execptions
Marcin Kuzminski <marcin@python-works.com>
parents: 477
diff changeset
161 %endif
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
162 </ul>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
163 </li>
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
164 </ul>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
165 </li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
166 <li ${is_current('files')}>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
167 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
168 <span class="icon">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
169 <img src="/images/icons/file.png" alt="${_('Files')}" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
170 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
171 <span>${_('Files')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
172 </a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
173 </li>
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
174
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
175 <li ${is_current('options')}>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
176 <a title="${_('Options')}" href="#">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
177 <span class="icon">
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
178 <img src="/images/icons/table_gear.png" alt="${_('Admin')}" />
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
179 </span>
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
180 <span>${_('Options')}</span>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
181 </a>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
182 <ul>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
183 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
184 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
185 %endif
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
186 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
187 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
532
946ed2955f48 template updates, added icon to repo name showing private/public
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
188 ## %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
946ed2955f48 template updates, added icon to repo name showing private/public
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
189 ## <li class="last">
946ed2955f48 template updates, added icon to repo name showing private/public
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
190 ## ${h.link_to(_('delete'),'#',class_='delete')}
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
191 ## ${h.form(url('repo_settings_delete', repo_name=c.repo_name),method='delete')}
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
192 ## ${h.submit('remove_%s' % c.repo_name,'delete',class_="delete_icon action_button",onclick="return confirm('Confirm to delete this repository');")}
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
193 ## ${h.end_form()}
532
946ed2955f48 template updates, added icon to repo name showing private/public
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
194 ## </li>
946ed2955f48 template updates, added icon to repo name showing private/public
Marcin Kuzminski <marcin@python-works.com>
parents: 524
diff changeset
195 ## %endif
524
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
196 </ul>
63212fea2471 a lot of fixes in templates,
Marcin Kuzminski <marcin@python-works.com>
parents: 509
diff changeset
197 </li>
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
198 </ul>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
199 %else:
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
200 ##ROOT MENU
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
201 <ul id="quick">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
202 <li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
203 <a title="${_('Home')}" href="${h.url('hg_home')}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
204 <span class="icon">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
205 <img src="/images/icons/home_16.png" alt="${_('Home')}" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
206 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
207 <span>${_('Home')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
208 </a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
209 </li>
402
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
210
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
211 <li>
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
212 <a title="${_('Search')}" href="${h.url('search')}">
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
213 <span class="icon">
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
214 <img src="/images/icons/search_16.png" alt="${_('Search')}" />
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
215 </span>
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
216 <span>${_('Search')}</span>
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
217 </a>
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
218 </li>
757c7eef0dcd implemented gravatars into main bar.
Marcin Kuzminski <marcin@python-works.com>
parents: 380
diff changeset
219
318
fdf9f6ee5217 Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents: 299
diff changeset
220 %if h.HasPermissionAll('hg.admin')('access admin main page'):
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
221 <li ${is_current('admin')}>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
222 <a title="${_('Admin')}" href="${h.url('admin_home')}">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
223 <span class="icon">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
224 <img src="/images/icons/cog_edit.png" alt="${_('Admin')}" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
225 </span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
226 <span>${_('Admin')}</span>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
227 </a>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
228 <ul>
476
8ba65e4c4e4c added journal icon and made active links in journal, fixed edit user bug when given wrong id
Marcin Kuzminski <marcin@python-works.com>
parents: 457
diff changeset
229 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
230 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
231 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
417
3ed2d46a2ca7 permission refactoring,
Marcin Kuzminski <marcin@python-works.com>
parents: 414
diff changeset
232 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
453
2a95d54b19e6 reimplemented tags/branches menu.
Marcin Kuzminski <marcin@python-works.com>
parents: 448
diff changeset
233 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
234 </ul>
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
235 </li>
318
fdf9f6ee5217 Implemented permissions into hg app, secured admin controllers, templates and repository specific controllers
Marcin Kuzminski <marcin@python-works.com>
parents: 299
diff changeset
236 %endif
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
237
182
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
238 </ul>
11e8eb5a92e3 new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents: 176
diff changeset
239 %endif
216
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 208
diff changeset
240 </%def>
c8162373f214 Cleaned the way based was used to generate submenu for admin, now it's much more clear to use submenu. Cleaned admin and added comment to middleware
Marcin Kuzminski <marcin@python-works.com>
parents: 208
diff changeset
241
91
25e01cb65282 Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents: 83
diff changeset
242
98
01d0f363f36d added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
243 <%def name="css()">
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
244 <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
245 <link rel="stylesheet" type="text/css" href="/css/pygments.css" />
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
246 <link rel="stylesheet" type="text/css" href="/css/diff.css" />
98
01d0f363f36d added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents: 91
diff changeset
247 </%def>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
248
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
249 <%def name="js()">
457
644795a4e8d2 Code cleanups, made js rollup file, some preparation for .egg creation
Marcin Kuzminski <marcin@python-works.com>
parents: 454
diff changeset
250 ##<script type="text/javascript" src="/js/yui/utilities/utilities.js"></script>
644795a4e8d2 Code cleanups, made js rollup file, some preparation for .egg creation
Marcin Kuzminski <marcin@python-works.com>
parents: 454
diff changeset
251 ##<script type="text/javascript" src="/js/yui/container/container.js"></script>
644795a4e8d2 Code cleanups, made js rollup file, some preparation for .egg creation
Marcin Kuzminski <marcin@python-works.com>
parents: 454
diff changeset
252 ##<script type="text/javascript" src="/js/yui/datasource/datasource.js"></script>
644795a4e8d2 Code cleanups, made js rollup file, some preparation for .egg creation
Marcin Kuzminski <marcin@python-works.com>
parents: 454
diff changeset
253 ##<script type="text/javascript" src="/js/yui/autocomplete/autocomplete.js"></script>
644795a4e8d2 Code cleanups, made js rollup file, some preparation for .egg creation
Marcin Kuzminski <marcin@python-works.com>
parents: 454
diff changeset
254
644795a4e8d2 Code cleanups, made js rollup file, some preparation for .egg creation
Marcin Kuzminski <marcin@python-works.com>
parents: 454
diff changeset
255 <script type="text/javascript" src="/js/yui2.js"></script>
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
256 <!--[if IE]><script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script><![endif]-->
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
257 <script type="text/javascript" src="/js/yui.flot.js"></script>
176
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
258 </%def>
8dd7305fbc2d moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents: 166
diff changeset
259
362
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
260 <%def name="breadcrumbs()">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
261 <div class="breadcrumbs">
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
262 ${self.breadcrumbs_links()}
558eb7c5028f version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents: 346
diff changeset
263 </div>
79
9fe23fdab9e9 Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents: 74
diff changeset
264 </%def>