Mercurial > kallithea
annotate pylons_app/templates/base/base.html @ 380:ca54622e39a1
Added separate create repository views for non administrative users.
Fixed permission issue with private repos
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 01 Aug 2010 17:08:58 +0200 |
parents | 3171614c0067 |
children | 757c7eef0dcd |
rev | line source |
---|---|
0 | 1 ## -*- coding: utf-8 -*- |
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 | 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 | 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 | 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"> |
371
5cd6616b8673
routes python 2.5 compatible
Marcin Kuzminski <marcin@python-works.com>
parents:
362
diff
changeset
|
20 ${h.link_to('%s %s (%s)'%(c.hg_app_user.name,c.hg_app_user.lastname,c.hg_app_user.username),h.url('admin_settings_my_account'))} |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
21 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
22 <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
|
23 </ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
24 <!-- end user --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
25 <div id="header-inner"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
26 <div id="home"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
27 <a href="${h.url('hg_home')}"></a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
28 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
29 <!-- logo --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
30 <div id="logo"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
31 <h1><a href="${h.url('hg_home')}">${c.hg_app_name}</a></h1> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
32 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
33 <!-- end logo --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
34 <!-- quick menu --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
35 ${self.page_nav()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
36 <!-- end quick --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
37 <div class="corner tl"></div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
38 <div class="corner tr"></div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
39 </div> |
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 <!-- end header --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
42 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
43 <!-- CONTENT --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
44 <div id="content"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
45 <div class="flash_msg"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
46 <% messages = h.flash.pop_messages() %> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
47 % if messages: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
48 <ul id="flash-messages"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
49 % for message in messages: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
50 <li class="${message.category}_msg">${message}</li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
51 % endfor |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
52 </ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
53 % endif |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
54 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
55 <div id="main"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
56 ${next.main()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
57 </div> |
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 <!-- END CONTENT --> |
0 | 60 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
61 <!-- footer --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
62 <div id="footer"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
63 <p>Hg App ${c.hg_app_version} © 2010 by Marcin Kuzminski</p> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
64 <script type="text/javascript">${h.tooltip.activate()}</script> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
65 </div> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
66 <!-- end footer --> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
67 </body> |
0 | 68 |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
69 </html> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
70 |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
71 ### MAKO DEFS ### |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
72 <%def name="page_nav()"> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
73 ${self.menu()} |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
74 </%def> |
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
75 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
76 <%def name="menu(current=None)"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
77 <% |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
78 def is_current(selected): |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
79 if selected == current: |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
80 return "class='current'" |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
81 %> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
82 %if current not in ['home','admin']: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
83 <script type="text/javascript"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
84 YAHOO.util.Event.onDOMReady(function(){ |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
85 YAHOO.util.Event.addListener('repo_switcher','click',function(){ |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
86 if(YAHOO.util.Dom.hasClass('repo_switcher','selected')){ |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
87 YAHOO.util.Dom.setStyle('switch_repos','display','none'); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
88 YAHOO.util.Dom.setStyle('repo_switcher','background',''); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
89 YAHOO.util.Dom.removeClass('repo_switcher','selected'); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
90 YAHOO.util.Dom.get('repo_switcher').removeAttribute('style'); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
91 } |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
92 else{ |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
93 YAHOO.util.Dom.setStyle('switch_repos','display',''); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
94 YAHOO.util.Dom.addClass('repo_switcher','selected'); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
95 } |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
96 }); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
97 YAHOO.util.Event.addListener('repos_list','change',function(e){ |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
98 var wa = YAHOO.util.Dom.get('repos_list').value; |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
99 |
373
3171614c0067
Added permissions check on repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
371
diff
changeset
|
100 var url = "${h.url('summary_home',repo_name='__REPO__')}".replace('__REPO__',wa); |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
101 window.location = url; |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
102 }) |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
103 }); |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
104 </script> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
105 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
106 ##REGULAR MENU |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
107 <ul id="quick"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
108 <!-- 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
|
109 <li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
110 <a id="repo_switcher" title="${_('Switch repository')}" href="#"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
111 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
112 <img src="/images/icons/database.png" alt="${_('Products')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
113 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
114 <span>↓</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
115 </a> |
373
3171614c0067
Added permissions check on repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
371
diff
changeset
|
116 <div id="switch_repos" style="display:none;"> |
3171614c0067
Added permissions check on repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
371
diff
changeset
|
117 <select id="repos_list" size="10"> |
3171614c0067
Added permissions check on repo switcher,
Marcin Kuzminski <marcin@python-works.com>
parents:
371
diff
changeset
|
118 %for repo in c.repo_switcher_list: |
256
c49010829e4d
fixed sorting in repo switcher
Marcin Kuzminski <marcin@python-works.com>
parents:
255
diff
changeset
|
119 <option value="${repo}">${repo}</option> |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
120 %endfor |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
121 </select> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
122 </div> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
123 </li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
124 |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
125 <li ${is_current('summary')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
126 <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
|
127 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
128 <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
|
129 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
130 <span>${_('Summary')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
131 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
132 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
133 <li ${is_current('shortlog')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
134 <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
|
135 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
136 <img src="/images/icons/application_double.png" alt="${_('Shortlog')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
137 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
138 <span>${_('Shortlog')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
139 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
140 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
141 <li ${is_current('changelog')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
142 <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
|
143 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
144 <img src="/images/icons/time.png" alt="${_('Changelog')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
145 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
146 <span>${_('Changelog')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
147 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
148 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
149 <li ${is_current('branches')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
150 <a title="${_('Branches')}" href="${h.url('branches_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
151 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
152 <img src="/images/icons/arrow_branch.png" alt="${_('Branches')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
153 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
154 <span>${_('Branches')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
155 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
156 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
157 <li ${is_current('tags')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
158 <a title="${_('Tags')}" href="${h.url('tags_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
159 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
160 <img src="/images/icons/tag_blue.png" alt="${_('Tags')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
161 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
162 <span>${_('Tags')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
163 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
164 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
165 <li ${is_current('files')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
166 <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
|
167 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
168 <img src="/images/icons/file.png" alt="${_('Files')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
169 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
170 <span>${_('Files')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
171 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
172 </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
|
173 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name): |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
174 <li ${is_current('settings')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
175 <a title="${_('Settings')}" href="${h.url('repo_settings_home',repo_name=c.repo_name)}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
176 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
177 <img src="/images/icons/cog_edit.png" alt="${_('Settings')}" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
178 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
179 <span>${_('Settings')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
180 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
181 </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
|
182 %endif |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
183 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
184 %else: |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
185 ##ROOT MENU |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
186 <ul id="quick"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
187 <li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
188 <a title="${_('Home')}" href="${h.url('hg_home')}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
189 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
190 <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
|
191 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
192 <span>${_('Home')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
193 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
194 </li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
195 |
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
|
196 %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
|
197 <li ${is_current('admin')}> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
198 <a title="${_('Admin')}" href="${h.url('admin_home')}"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
199 <span class="icon"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
200 <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
|
201 </span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
202 <span>${_('Admin')}</span> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
203 </a> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
204 <ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
205 <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
|
206 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li> |
380
ca54622e39a1
Added separate create repository views for non administrative users.
Marcin Kuzminski <marcin@python-works.com>
parents:
373
diff
changeset
|
207 <li>${h.link_to(_('permissions'),h.url('permissions'),class_='permissions')}</li> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
208 <li>${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
209 </ul> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
210 </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
|
211 %endif |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
212 |
182
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
213 </ul> |
11e8eb5a92e3
new way of menu generation for base, and all admin pages
Marcin Kuzminski <marcin@python-works.com>
parents:
176
diff
changeset
|
214 %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
|
215 </%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
|
216 |
91
25e01cb65282
Added menu generation as function
Marcin Kuzminski <marcin@python-works.com>
parents:
83
diff
changeset
|
217 |
98
01d0f363f36d
added pygments webhelper
Marcin Kuzminski <marcin@python-works.com>
parents:
91
diff
changeset
|
218 <%def name="css()"> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
219 <link rel="stylesheet" type="text/css" href="/css/reset.css" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
220 <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
|
221 <link rel="stylesheet" type="text/css" href="/css/style_full.css" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
222 <link id="color" rel="stylesheet" type="text/css" href="/css/colors/blue.css" /> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
223 <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
|
224 <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
|
225 </%def> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
226 |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
227 <%def name="js()"> |
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
228 <script type="text/javascript" src="/js/yui/utilities/utilities.js"></script> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
229 <!--[if IE]><script language="javascript" type="text/javascript" src="/js/excanvas.min.js"></script><![endif]--> |
281
cd2ee462fc2c
implemented yui tooltip, and added it into annotation and main page.
Marcin Kuzminski <marcin@python-works.com>
parents:
270
diff
changeset
|
230 <script type="text/javascript" src="/js/yui/container/container-min.js"></script> |
298
15e96b5a2685
autocomplete for repository managment of users
Marcin Kuzminski <marcin@python-works.com>
parents:
294
diff
changeset
|
231 <script type="text/javascript" src="/js/yui/datasource/datasource-min.js"></script> |
15e96b5a2685
autocomplete for repository managment of users
Marcin Kuzminski <marcin@python-works.com>
parents:
294
diff
changeset
|
232 <script type="text/javascript" src="/js/yui/autocomplete/autocomplete-min.js"></script> |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
233 <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
|
234 </%def> |
8dd7305fbc2d
moved get_form_error to base
Marcin Kuzminski <marcin@python-works.com>
parents:
166
diff
changeset
|
235 |
362
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
236 <%def name="breadcrumbs()"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
237 <div class="breadcrumbs"> |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
238 ${self.breadcrumbs_links()} |
558eb7c5028f
version bump to 0.8
Marcin Kuzminski <marcin@python-works.com>
parents:
346
diff
changeset
|
239 </div> |
79
9fe23fdab9e9
Implemented AJAH paging
Marcin Kuzminski <marcin@python-blog.com>
parents:
74
diff
changeset
|
240 </%def> |