##// END OF EJS Templates
removed obsolete id from <html>
marcink -
r1156:c9a9e0b3 beta
parent child Browse files
Show More
@@ -1,405 +1,402
1 ## -*- coding: utf-8 -*-
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">
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
4 <head>
5 <title>${next.title()}</title>
5 <title>${next.title()}</title>
6 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
6 <link rel="icon" href="${h.url('/images/icons/database_gear.png')}" type="image/png" />
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
8 <meta name="robots" content="index, nofollow"/>
8 <meta name="robots" content="index, nofollow"/>
9 <!-- stylesheets -->
9 <!-- stylesheets -->
10 ${self.css()}
10 ${self.css()}
11 <!-- scripts -->
11 <!-- scripts -->
12 ${self.js()}
12 ${self.js()}
13 %if c.ga_code:
13 %if c.ga_code:
14 <script type="text/javascript">
14 <script type="text/javascript">
15
16 var _gaq = _gaq || [];
15 var _gaq = _gaq || [];
17 _gaq.push(['_setAccount', '${c.ga_code}']);
16 _gaq.push(['_setAccount', '${c.ga_code}']);
18 _gaq.push(['_trackPageview']);
17 _gaq.push(['_trackPageview']);
19
18
20 (function() {
19 (function() {
21 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
20 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
22 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
21 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
23 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
22 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
24 })();
23 })();
25
26
27 </script>
24 </script>
28 %endif
25 %endif
29 </head>
26 </head>
30 <body>
27 <body>
31 <!-- header -->
28 <!-- header -->
32 <div id="header">
29 <div id="header">
33 <!-- user -->
30 <!-- user -->
34 <ul id="logged-user">
31 <ul id="logged-user">
35 <li class="first">
32 <li class="first">
36 <div class="gravatar">
33 <div class="gravatar">
37 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" />
34 <img alt="gravatar" src="${h.gravatar_url(c.rhodecode_user.email,20)}" />
38 </div>
35 </div>
39 <div class="account">
36 <div class="account">
40 %if c.rhodecode_user.username == 'default':
37 %if c.rhodecode_user.username == 'default':
41 <a href="${h.url('public_journal')}">${_('Public journal')}</a>
38 <a href="${h.url('public_journal')}">${_('Public journal')}</a>
42 %else:
39 %else:
43 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
40 ${h.link_to(c.rhodecode_user.username,h.url('admin_settings_my_account'),title='%s %s'%(c.rhodecode_user.name,c.rhodecode_user.lastname))}
44 %endif
41 %endif
45 </div>
42 </div>
46 </li>
43 </li>
47 <li>
44 <li>
48 <a href="${h.url('home')}">${_('Home')}</a>
45 <a href="${h.url('home')}">${_('Home')}</a>
49 </li>
46 </li>
50 %if c.rhodecode_user.username != 'default':
47 %if c.rhodecode_user.username != 'default':
51 <li>
48 <li>
52 <a href="${h.url('journal')}">${_('Journal')}</a>
49 <a href="${h.url('journal')}">${_('Journal')}</a>
53 ##(${c.unread_journal})</a>
50 ##(${c.unread_journal})</a>
54 </li>
51 </li>
55 %endif
52 %endif
56 %if c.rhodecode_user.username == 'default':
53 %if c.rhodecode_user.username == 'default':
57 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'))}</li>
54 <li class="last highlight">${h.link_to(u'Login',h.url('login_home'))}</li>
58 %else:
55 %else:
59 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
56 <li class="last highlight">${h.link_to(u'Log Out',h.url('logout_home'))}</li>
60 %endif
57 %endif
61 </ul>
58 </ul>
62 <!-- end user -->
59 <!-- end user -->
63 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
60 <div id="header-inner" class="title top-left-rounded-corner top-right-rounded-corner">
64 <!-- logo -->
61 <!-- logo -->
65 <div id="logo">
62 <div id="logo">
66 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
63 <h1><a href="${h.url('home')}">${c.rhodecode_name}</a></h1>
67 </div>
64 </div>
68 <!-- end logo -->
65 <!-- end logo -->
69 <!-- menu -->
66 <!-- menu -->
70 ${self.page_nav()}
67 ${self.page_nav()}
71 <!-- quick -->
68 <!-- quick -->
72 </div>
69 </div>
73 </div>
70 </div>
74 <!-- end header -->
71 <!-- end header -->
75
72
76 <!-- CONTENT -->
73 <!-- CONTENT -->
77 <div id="content">
74 <div id="content">
78 <div class="flash_msg">
75 <div class="flash_msg">
79 <% messages = h.flash.pop_messages() %>
76 <% messages = h.flash.pop_messages() %>
80 % if messages:
77 % if messages:
81 <ul id="flash-messages">
78 <ul id="flash-messages">
82 % for message in messages:
79 % for message in messages:
83 <li class="${message.category}_msg">${message}</li>
80 <li class="${message.category}_msg">${message}</li>
84 % endfor
81 % endfor
85 </ul>
82 </ul>
86 % endif
83 % endif
87 </div>
84 </div>
88 <div id="main">
85 <div id="main">
89 ${next.main()}
86 ${next.main()}
90 </div>
87 </div>
91 </div>
88 </div>
92 <!-- END CONTENT -->
89 <!-- END CONTENT -->
93
90
94 <!-- footer -->
91 <!-- footer -->
95 <div id="footer">
92 <div id="footer">
96 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
93 <div id="footer-inner" class="title bottom-left-rounded-corner bottom-right-rounded-corner">
97 <div>
94 <div>
98 <p class="footer-link">${h.link_to(_('Submit a bug'),h.url('bugtracker'))}</p>
95 <p class="footer-link">${h.link_to(_('Submit a bug'),h.url('bugtracker'))}</p>
99 <p class="footer-link">${h.link_to(_('GPL license'),h.url('gpl_license'))}</p>
96 <p class="footer-link">${h.link_to(_('GPL license'),h.url('gpl_license'))}</p>
100 <p class="footer-link-right"><a href="${h.url('rhodecode_official')}">RhodeCode</a> ${c.rhodecode_version} &copy; 2010-2011 by Marcin Kuzminski</p>
97 <p class="footer-link-right"><a href="${h.url('rhodecode_official')}">RhodeCode</a> ${c.rhodecode_version} &copy; 2010-2011 by Marcin Kuzminski</p>
101 </div>
98 </div>
102 </div>
99 </div>
103 <script type="text/javascript">
100 <script type="text/javascript">
104 function tooltip_activate(){
101 function tooltip_activate(){
105 ${h.tooltip.activate()}
102 ${h.tooltip.activate()}
106 }
103 }
107 tooltip_activate();
104 tooltip_activate();
108 </script>
105 </script>
109 </div>
106 </div>
110 <!-- end footer -->
107 <!-- end footer -->
111 </body>
108 </body>
112
109
113 </html>
110 </html>
114
111
115 ### MAKO DEFS ###
112 ### MAKO DEFS ###
116 <%def name="page_nav()">
113 <%def name="page_nav()">
117 ${self.menu()}
114 ${self.menu()}
118 </%def>
115 </%def>
119
116
120 <%def name="menu(current=None)">
117 <%def name="menu(current=None)">
121 <%
118 <%
122 def is_current(selected):
119 def is_current(selected):
123 if selected == current:
120 if selected == current:
124 return h.literal('class="current"')
121 return h.literal('class="current"')
125 %>
122 %>
126 %if current not in ['home','admin']:
123 %if current not in ['home','admin']:
127 ##REGULAR MENU
124 ##REGULAR MENU
128 <ul id="quick">
125 <ul id="quick">
129 <!-- repo switcher -->
126 <!-- repo switcher -->
130 <li>
127 <li>
131 <a id="repo_switcher" title="${_('Switch repository')}" href="#">
128 <a id="repo_switcher" title="${_('Switch repository')}" href="#">
132 <span class="icon">
129 <span class="icon">
133 <img src="${h.url("/images/icons/database.png")}" alt="${_('Products')}" />
130 <img src="${h.url("/images/icons/database.png")}" alt="${_('Products')}" />
134 </span>
131 </span>
135 <span>&darr;</span>
132 <span>&darr;</span>
136 </a>
133 </a>
137 <ul class="repo_switcher">
134 <ul class="repo_switcher">
138 %for repo in c.cached_repo_list:
135 %for repo in c.cached_repo_list:
139
136
140 %if repo['dbrepo']['private']:
137 %if repo['dbrepo']['private']:
141 <li><img src="${h.url("/images/icons/lock.png")}" alt="${_('Private repository')}" class="repo_switcher_type"/>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
138 <li><img src="${h.url("/images/icons/lock.png")}" alt="${_('Private repository')}" class="repo_switcher_type"/>${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
142 %else:
139 %else:
143 <li><img src="${h.url("/images/icons/lock_open.png")}" alt="${_('Public repository')}" class="repo_switcher_type" />${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
140 <li><img src="${h.url("/images/icons/lock_open.png")}" alt="${_('Public repository')}" class="repo_switcher_type" />${h.link_to(repo['repo'].name,h.url('summary_home',repo_name=repo['repo'].name),class_="%s" % repo['dbrepo']['repo_type'])}</li>
144 %endif
141 %endif
145 %endfor
142 %endfor
146 </ul>
143 </ul>
147 </li>
144 </li>
148
145
149 <li ${is_current('summary')}>
146 <li ${is_current('summary')}>
150 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
147 <a title="${_('Summary')}" href="${h.url('summary_home',repo_name=c.repo_name)}">
151 <span class="icon">
148 <span class="icon">
152 <img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" />
149 <img src="${h.url("/images/icons/clipboard_16.png")}" alt="${_('Summary')}" />
153 </span>
150 </span>
154 <span>${_('Summary')}</span>
151 <span>${_('Summary')}</span>
155 </a>
152 </a>
156 </li>
153 </li>
157 ##<li ${is_current('shortlog')}>
154 ##<li ${is_current('shortlog')}>
158 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
155 ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}">
159 ## <span class="icon">
156 ## <span class="icon">
160 ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" />
157 ## <img src="${h.url("/images/icons/application_view_list.png")}" alt="${_('Shortlog')}" />
161 ## </span>
158 ## </span>
162 ## <span>${_('Shortlog')}</span>
159 ## <span>${_('Shortlog')}</span>
163 ## </a>
160 ## </a>
164 ##</li>
161 ##</li>
165 <li ${is_current('changelog')}>
162 <li ${is_current('changelog')}>
166 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
163 <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}">
167 <span class="icon">
164 <span class="icon">
168 <img src="${h.url("/images/icons/time.png")}" alt="${_('Changelog')}" />
165 <img src="${h.url("/images/icons/time.png")}" alt="${_('Changelog')}" />
169 </span>
166 </span>
170 <span>${_('Changelog')}</span>
167 <span>${_('Changelog')}</span>
171 </a>
168 </a>
172 </li>
169 </li>
173
170
174 <li ${is_current('switch_to')}>
171 <li ${is_current('switch_to')}>
175 <a title="${_('Switch to')}" href="#">
172 <a title="${_('Switch to')}" href="#">
176 <span class="icon">
173 <span class="icon">
177 <img src="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" />
174 <img src="${h.url("/images/icons/arrow_switch.png")}" alt="${_('Switch to')}" />
178 </span>
175 </span>
179 <span>${_('Switch to')}</span>
176 <span>${_('Switch to')}</span>
180 </a>
177 </a>
181 <ul>
178 <ul>
182 <li>
179 <li>
183 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
180 ${h.link_to('%s (%s)' % (_('branches'),len(c.rhodecode_repo.branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')}
184 <ul>
181 <ul>
185 %if c.rhodecode_repo.branches.values():
182 %if c.rhodecode_repo.branches.values():
186 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
183 %for cnt,branch in enumerate(c.rhodecode_repo.branches.items()):
187 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
184 <li>${h.link_to('%s - %s' % (branch[0],h.short_id(branch[1])),h.url('files_home',repo_name=c.repo_name,revision=branch[1]))}</li>
188 %endfor
185 %endfor
189 %else:
186 %else:
190 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
187 <li>${h.link_to(_('There are no branches yet'),'#')}</li>
191 %endif
188 %endif
192 </ul>
189 </ul>
193 </li>
190 </li>
194 <li>
191 <li>
195 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
192 ${h.link_to('%s (%s)' % (_('tags'),len(c.rhodecode_repo.tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')}
196 <ul>
193 <ul>
197 %if c.rhodecode_repo.tags.values():
194 %if c.rhodecode_repo.tags.values():
198 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
195 %for cnt,tag in enumerate(c.rhodecode_repo.tags.items()):
199 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
196 <li>${h.link_to('%s - %s' % (tag[0],h.short_id(tag[1])),h.url('files_home',repo_name=c.repo_name,revision=tag[1]))}</li>
200 %endfor
197 %endfor
201 %else:
198 %else:
202 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
199 <li>${h.link_to(_('There are no tags yet'),'#')}</li>
203 %endif
200 %endif
204 </ul>
201 </ul>
205 </li>
202 </li>
206 </ul>
203 </ul>
207 </li>
204 </li>
208 <li ${is_current('files')}>
205 <li ${is_current('files')}>
209 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
206 <a title="${_('Files')}" href="${h.url('files_home',repo_name=c.repo_name)}">
210 <span class="icon">
207 <span class="icon">
211 <img src="${h.url("/images/icons/file.png")}" alt="${_('Files')}" />
208 <img src="${h.url("/images/icons/file.png")}" alt="${_('Files')}" />
212 </span>
209 </span>
213 <span>${_('Files')}</span>
210 <span>${_('Files')}</span>
214 </a>
211 </a>
215 </li>
212 </li>
216
213
217 <li ${is_current('options')}>
214 <li ${is_current('options')}>
218 <a title="${_('Options')}" href="#">
215 <a title="${_('Options')}" href="#">
219 <span class="icon">
216 <span class="icon">
220 <img src="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" />
217 <img src="${h.url("/images/icons/table_gear.png")}" alt="${_('Admin')}" />
221 </span>
218 </span>
222 <span>${_('Options')}</span>
219 <span>${_('Options')}</span>
223 </a>
220 </a>
224 <ul>
221 <ul>
225 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
222 %if h.HasRepoPermissionAll('repository.admin')(c.repo_name):
226 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
223 %if h.HasPermissionAll('hg.admin')('access settings on repository'):
227 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
224 <li>${h.link_to(_('settings'),h.url('edit_repo',repo_name=c.repo_name),class_='settings')}</li>
228 %else:
225 %else:
229 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
226 <li>${h.link_to(_('settings'),h.url('repo_settings_home',repo_name=c.repo_name),class_='settings')}</li>
230 %endif
227 %endif
231 %endif
228 %endif
232 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
229 <li>${h.link_to(_('fork'),h.url('repo_fork_home',repo_name=c.repo_name),class_='fork')}</li>
233 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
230 <li>${h.link_to(_('search'),h.url('search_repo',search_repo=c.repo_name),class_='search')}</li>
234
231
235 %if h.HasPermissionAll('hg.admin')('access admin main page'):
232 %if h.HasPermissionAll('hg.admin')('access admin main page'):
236 <li>
233 <li>
237 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
234 ${h.link_to(_('admin'),h.url('admin_home'),class_='admin')}
238 <%def name="admin_menu()">
235 <%def name="admin_menu()">
239 <ul>
236 <ul>
240 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
237 <li>${h.link_to(_('journal'),h.url('admin_home'),class_='journal')}</li>
241 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
238 <li>${h.link_to(_('repositories'),h.url('repos'),class_='repos')}</li>
242 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
239 <li>${h.link_to(_('users'),h.url('users'),class_='users')}</li>
243 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li>
240 <li>${h.link_to(_('users groups'),h.url('users_groups'),class_='groups')}</li>
244 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
241 <li>${h.link_to(_('permissions'),h.url('edit_permission',id='default'),class_='permissions')}</li>
245 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
242 <li>${h.link_to(_('ldap'),h.url('ldap_home'),class_='ldap')}</li>
246 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
243 <li class="last">${h.link_to(_('settings'),h.url('admin_settings'),class_='settings')}</li>
247 </ul>
244 </ul>
248 </%def>
245 </%def>
249
246
250 ${admin_menu()}
247 ${admin_menu()}
251 </li>
248 </li>
252 %endif
249 %endif
253
250
254 </ul>
251 </ul>
255 </li>
252 </li>
256
253
257 <li>
254 <li>
258 <a title="${_('Followers')}" href="#">
255 <a title="${_('Followers')}" href="#">
259 <span class="icon_short">
256 <span class="icon_short">
260 <img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" />
257 <img src="${h.url("/images/icons/heart.png")}" alt="${_('Followers')}" />
261 </span>
258 </span>
262 <span id="current_followers_count" class="short">${c.repository_followers}</span>
259 <span id="current_followers_count" class="short">${c.repository_followers}</span>
263 </a>
260 </a>
264 </li>
261 </li>
265 <li>
262 <li>
266 <a title="${_('Forks')}" href="#">
263 <a title="${_('Forks')}" href="#">
267 <span class="icon_short">
264 <span class="icon_short">
268 <img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" />
265 <img src="${h.url("/images/icons/arrow_divide.png")}" alt="${_('Forks')}" />
269 </span>
266 </span>
270 <span class="short">${c.repository_forks}</span>
267 <span class="short">${c.repository_forks}</span>
271 </a>
268 </a>
272 </li>
269 </li>
273
270
274
271
275
272
276 </ul>
273 </ul>
277 %else:
274 %else:
278 ##ROOT MENU
275 ##ROOT MENU
279 <ul id="quick">
276 <ul id="quick">
280 <li>
277 <li>
281 <a title="${_('Home')}" href="${h.url('home')}">
278 <a title="${_('Home')}" href="${h.url('home')}">
282 <span class="icon">
279 <span class="icon">
283 <img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" />
280 <img src="${h.url("/images/icons/home_16.png")}" alt="${_('Home')}" />
284 </span>
281 </span>
285 <span>${_('Home')}</span>
282 <span>${_('Home')}</span>
286 </a>
283 </a>
287 </li>
284 </li>
288 %if c.rhodecode_user.username != 'default':
285 %if c.rhodecode_user.username != 'default':
289 <li>
286 <li>
290 <a title="${_('Journal')}" href="${h.url('journal')}">
287 <a title="${_('Journal')}" href="${h.url('journal')}">
291 <span class="icon">
288 <span class="icon">
292 <img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" />
289 <img src="${h.url("/images/icons/book.png")}" alt="${_('Journal')}" />
293 </span>
290 </span>
294 <span>${_('Journal')}</span>
291 <span>${_('Journal')}</span>
295 </a>
292 </a>
296 </li>
293 </li>
297 %endif
294 %endif
298 <li>
295 <li>
299 <a title="${_('Search')}" href="${h.url('search')}">
296 <a title="${_('Search')}" href="${h.url('search')}">
300 <span class="icon">
297 <span class="icon">
301 <img src="${h.url("/images/icons/search_16.png")}" alt="${_('Search')}" />
298 <img src="${h.url("/images/icons/search_16.png")}" alt="${_('Search')}" />
302 </span>
299 </span>
303 <span>${_('Search')}</span>
300 <span>${_('Search')}</span>
304 </a>
301 </a>
305 </li>
302 </li>
306
303
307 %if h.HasPermissionAll('hg.admin')('access admin main page'):
304 %if h.HasPermissionAll('hg.admin')('access admin main page'):
308 <li ${is_current('admin')}>
305 <li ${is_current('admin')}>
309 <a title="${_('Admin')}" href="${h.url('admin_home')}">
306 <a title="${_('Admin')}" href="${h.url('admin_home')}">
310 <span class="icon">
307 <span class="icon">
311 <img src="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" />
308 <img src="${h.url("/images/icons/cog_edit.png")}" alt="${_('Admin')}" />
312 </span>
309 </span>
313 <span>${_('Admin')}</span>
310 <span>${_('Admin')}</span>
314 </a>
311 </a>
315 ${admin_menu()}
312 ${admin_menu()}
316 </li>
313 </li>
317 %endif
314 %endif
318 </ul>
315 </ul>
319 %endif
316 %endif
320 </%def>
317 </%def>
321
318
322
319
323 <%def name="css()">
320 <%def name="css()">
324 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
321 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
325 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" />
322 <link rel="stylesheet" type="text/css" href="${h.url('/css/pygments.css')}" />
326 <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" />
323 <link rel="stylesheet" type="text/css" href="${h.url('/css/diff.css')}" />
327 </%def>
324 </%def>
328
325
329 <%def name="js()">
326 <%def name="js()">
330 ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script>
327 ##<script type="text/javascript" src="${h.url('/js/yui/utilities/utilities.js')}"></script>
331 ##<script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script>
328 ##<script type="text/javascript" src="${h.url('/js/yui/container/container.js')}"></script>
332 ##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script>
329 ##<script type="text/javascript" src="${h.url('/js/yui/datasource/datasource.js')}"></script>
333 ##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script>
330 ##<script type="text/javascript" src="${h.url('/js/yui/autocomplete/autocomplete.js')}"></script>
334 ##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script>
331 ##<script type="text/javascript" src="${h.url('/js/yui/selector/selector-min.js')}"></script>
335
332
336 <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script>
333 <script type="text/javascript" src="${h.url('/js/yui2a.js')}"></script>
337 <!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script><![endif]-->
334 <!--[if IE]><script language="javascript" type="text/javascript" src="${h.url('/js/excanvas.min.js')}"></script><![endif]-->
338 <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
335 <script type="text/javascript" src="${h.url('/js/yui.flot.js')}"></script>
339
336
340 <script type="text/javascript">
337 <script type="text/javascript">
341 var base_url = "${h.url('toggle_following')}";
338 var base_url = "${h.url('toggle_following')}";
342 var YUC = YAHOO.util.Connect;
339 var YUC = YAHOO.util.Connect;
343 var YUD = YAHOO.util.Dom;
340 var YUD = YAHOO.util.Dom;
344 var YUE = YAHOO.util.Event;
341 var YUE = YAHOO.util.Event;
345
342
346 function onSuccess(target){
343 function onSuccess(target){
347
344
348 var f = YUD.get(target.id);
345 var f = YUD.get(target.id);
349 var f_cnt = YUD.get('current_followers_count');
346 var f_cnt = YUD.get('current_followers_count');
350
347
351 if(f.getAttribute('class')=='follow'){
348 if(f.getAttribute('class')=='follow'){
352 f.setAttribute('class','following');
349 f.setAttribute('class','following');
353 f.setAttribute('title',"${_('Stop following this repository')}");
350 f.setAttribute('title',"${_('Stop following this repository')}");
354
351
355 if(f_cnt){
352 if(f_cnt){
356 var cnt = Number(f_cnt.innerHTML)+1;
353 var cnt = Number(f_cnt.innerHTML)+1;
357 f_cnt.innerHTML = cnt;
354 f_cnt.innerHTML = cnt;
358 }
355 }
359
356
360 }
357 }
361 else{
358 else{
362 f.setAttribute('class','follow');
359 f.setAttribute('class','follow');
363 f.setAttribute('title',"${_('Start following this repository')}");
360 f.setAttribute('title',"${_('Start following this repository')}");
364 if(f_cnt){
361 if(f_cnt){
365 var cnt = Number(f_cnt.innerHTML)+1;
362 var cnt = Number(f_cnt.innerHTML)+1;
366 f_cnt.innerHTML = cnt;
363 f_cnt.innerHTML = cnt;
367 }
364 }
368 }
365 }
369 }
366 }
370
367
371 function toggleFollowingUser(target,fallows_user_id,token,user_id){
368 function toggleFollowingUser(target,fallows_user_id,token,user_id){
372 args = 'follows_user_id='+fallows_user_id;
369 args = 'follows_user_id='+fallows_user_id;
373 args+= '&amp;auth_token='+token;
370 args+= '&amp;auth_token='+token;
374 if(user_id != undefined){
371 if(user_id != undefined){
375 args+="&amp;user_id="+user_id;
372 args+="&amp;user_id="+user_id;
376 }
373 }
377 YUC.asyncRequest('POST',base_url,{
374 YUC.asyncRequest('POST',base_url,{
378 success:function(o){
375 success:function(o){
379 onSuccess(target);
376 onSuccess(target);
380 }
377 }
381 },args); return false;
378 },args); return false;
382 }
379 }
383
380
384 function toggleFollowingRepo(target,fallows_repo_id,token,user_id){
381 function toggleFollowingRepo(target,fallows_repo_id,token,user_id){
385
382
386 args = 'follows_repo_id='+fallows_repo_id;
383 args = 'follows_repo_id='+fallows_repo_id;
387 args+= '&amp;auth_token='+token;
384 args+= '&amp;auth_token='+token;
388 if(user_id != undefined){
385 if(user_id != undefined){
389 args+="&amp;user_id="+user_id;
386 args+="&amp;user_id="+user_id;
390 }
387 }
391 YUC.asyncRequest('POST',base_url,{
388 YUC.asyncRequest('POST',base_url,{
392 success:function(o){
389 success:function(o){
393 onSuccess(target);
390 onSuccess(target);
394 }
391 }
395 },args); return false;
392 },args); return false;
396 }
393 }
397 </script>
394 </script>
398
395
399 </%def>
396 </%def>
400
397
401 <%def name="breadcrumbs()">
398 <%def name="breadcrumbs()">
402 <div class="breadcrumbs">
399 <div class="breadcrumbs">
403 ${self.breadcrumbs_links()}
400 ${self.breadcrumbs_links()}
404 </div>
401 </div>
405 </%def> No newline at end of file
402 </%def>
@@ -1,54 +1,54
1 ## -*- coding: utf-8 -*-
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">
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
4 <head>
5 <title>Error - ${c.error_message}</title>
5 <title>Error - ${c.error_message}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 %if c.redirect_time:
7 %if c.redirect_time:
8 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
8 <meta http-equiv="refresh" content="${c.redirect_time}; url=${c.url_redirect}"/>
9 %endif
9 %endif
10 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
10 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
11 <meta name="robots" content="index, nofollow"/>
11 <meta name="robots" content="index, nofollow"/>
12
12
13 <!-- stylesheets -->
13 <!-- stylesheets -->
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
14 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
15 <style type="text/css">
15 <style type="text/css">
16 #main_div{
16 #main_div{
17 border: 0px solid #000;
17 border: 0px solid #000;
18 width: 500px;
18 width: 500px;
19 margin: auto;
19 margin: auto;
20 text-align: center;
20 text-align: center;
21 margin-top: 200px;
21 margin-top: 200px;
22 font-size: 1.6em;
22 font-size: 1.6em;
23 }
23 }
24 .error_message{
24 .error_message{
25 text-align: center;
25 text-align: center;
26 color:#003367;
26 color:#003367;
27 font-size: 1.6em;
27 font-size: 1.6em;
28 margin:10px;
28 margin:10px;
29 }
29 }
30 </style>
30 </style>
31
31
32 </head>
32 </head>
33 <body>
33 <body>
34
34
35 <div id="login">
35 <div id="login">
36 <div class="table">
36 <div class="table">
37 <div id="main_div">
37 <div id="main_div">
38 <div style="font-size:2.0em;margin: 10px">${c.rhodecode_name}</div>
38 <div style="font-size:2.0em;margin: 10px">${c.rhodecode_name}</div>
39 <h1 class="error_message">${c.error_message}</h1>
39 <h1 class="error_message">${c.error_message}</h1>
40
40
41 <p>${c.error_explanation}</p>
41 <p>${c.error_explanation}</p>
42
42
43 %if c.redirect_time:
43 %if c.redirect_time:
44 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
44 <p>${_('You will be redirected to %s in %s seconds') % (c.redirect_module,c.redirect_time)}</p>
45 %endif
45 %endif
46
46
47 </div>
47 </div>
48 </div>
48 </div>
49 <!-- end login -->
49 <!-- end login -->
50 </div>
50 </div>
51 </body>
51 </body>
52
52
53 </html>
53 </html>
54
54
@@ -1,82 +1,82
1 ## -*- coding: utf-8 -*-
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">
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
4 <head>
5 <title>${_('Sign In')} - ${c.rhodecode_name}</title>
5 <title>${_('Sign In')} - ${c.rhodecode_name}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <link rel="icon" href="${h.url("/images/icons/database_gear.png")}" type="image/png" />
7 <link rel="icon" href="${h.url("/images/icons/database_gear.png")}" type="image/png" />
8 <meta name="robots" content="index, nofollow"/>
8 <meta name="robots" content="index, nofollow"/>
9
9
10 <!-- stylesheets -->
10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
12
12
13 </head>
13 </head>
14 <body>
14 <body>
15 <div id="login">
15 <div id="login">
16 <div class="flash_msg">
16 <div class="flash_msg">
17 <% messages = h.flash.pop_messages() %>
17 <% messages = h.flash.pop_messages() %>
18 % if messages:
18 % if messages:
19 <ul id="flash-messages">
19 <ul id="flash-messages">
20 % for message in messages:
20 % for message in messages:
21 <li class="${message.category}_msg">${message}</li>
21 <li class="${message.category}_msg">${message}</li>
22 % endfor
22 % endfor
23 </ul>
23 </ul>
24 % endif
24 % endif
25 </div>
25 </div>
26 <!-- login -->
26 <!-- login -->
27 <div class="title top-left-rounded-corner top-right-rounded-corner">
27 <div class="title top-left-rounded-corner top-right-rounded-corner">
28 <h5>${_('Sign In to')} ${c.rhodecode_name}</h5>
28 <h5>${_('Sign In to')} ${c.rhodecode_name}</h5>
29 </div>
29 </div>
30 <div class="inner">
30 <div class="inner">
31 ${h.form(h.url.current(came_from=c.came_from))}
31 ${h.form(h.url.current(came_from=c.came_from))}
32 <div class="form">
32 <div class="form">
33 <!-- fields -->
33 <!-- fields -->
34
34
35 <div class="fields">
35 <div class="fields">
36 <div class="field">
36 <div class="field">
37 <div class="label">
37 <div class="label">
38 <label for="username">${_('Username')}:</label>
38 <label for="username">${_('Username')}:</label>
39 </div>
39 </div>
40 <div class="input">
40 <div class="input">
41 ${h.text('username',class_='focus',size=40)}
41 ${h.text('username',class_='focus',size=40)}
42 </div>
42 </div>
43
43
44 </div>
44 </div>
45 <div class="field">
45 <div class="field">
46 <div class="label">
46 <div class="label">
47 <label for="password">${_('Password')}:</label>
47 <label for="password">${_('Password')}:</label>
48 </div>
48 </div>
49 <div class="input">
49 <div class="input">
50 ${h.password('password',class_='focus',size=40)}
50 ${h.password('password',class_='focus',size=40)}
51 </div>
51 </div>
52
52
53 </div>
53 </div>
54 ##<div class="field">
54 ##<div class="field">
55 ## <div class="checkbox">
55 ## <div class="checkbox">
56 ## <input type="checkbox" id="remember" name="remember" />
56 ## <input type="checkbox" id="remember" name="remember" />
57 ## <label for="remember">Remember me</label>
57 ## <label for="remember">Remember me</label>
58 ## </div>
58 ## </div>
59 ##</div>
59 ##</div>
60 <div class="buttons">
60 <div class="buttons">
61 ${h.submit('sign_in','Sign In',class_="ui-button")}
61 ${h.submit('sign_in','Sign In',class_="ui-button")}
62 </div>
62 </div>
63 </div>
63 </div>
64 <!-- end fields -->
64 <!-- end fields -->
65 <!-- links -->
65 <!-- links -->
66 <div class="links">
66 <div class="links">
67 ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))}
67 ${h.link_to(_('Forgot your password ?'),h.url('reset_password'))}
68 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
68 %if h.HasPermissionAny('hg.admin', 'hg.register.auto_activate', 'hg.register.manual_activate')():
69 /
69 /
70 ${h.link_to(_("Don't have an account ?"),h.url('register'))}
70 ${h.link_to(_("Don't have an account ?"),h.url('register'))}
71 %endif
71 %endif
72 </div>
72 </div>
73
73
74 <!-- end links -->
74 <!-- end links -->
75 </div>
75 </div>
76 ${h.end_form()}
76 ${h.end_form()}
77 </div>
77 </div>
78 <!-- end login -->
78 <!-- end login -->
79 </div>
79 </div>
80 </body>
80 </body>
81 </html>
81 </html>
82
82
@@ -1,48 +1,48
1 ## -*- coding: utf-8 -*-
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">
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
4 <head>
5 <title>${_('Reset You password')} - ${c.rhodecode_name}</title>
5 <title>${_('Reset You password')} - ${c.rhodecode_name}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
7 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
8 <meta name="robots" content="index, nofollow"/>
8 <meta name="robots" content="index, nofollow"/>
9
9
10 <!-- stylesheets -->
10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
12
12
13 </head>
13 </head>
14 <body>
14 <body>
15 <div id="register">
15 <div id="register">
16
16
17 <div class="title top-left-rounded-corner top-right-rounded-corner">
17 <div class="title top-left-rounded-corner top-right-rounded-corner">
18 <h5>${_('Reset You password to')} ${c.rhodecode_name}</h5>
18 <h5>${_('Reset You password to')} ${c.rhodecode_name}</h5>
19 </div>
19 </div>
20 <div class="inner">
20 <div class="inner">
21 ${h.form(url('password_reset'))}
21 ${h.form(url('password_reset'))}
22 <div class="form">
22 <div class="form">
23 <!-- fields -->
23 <!-- fields -->
24 <div class="fields">
24 <div class="fields">
25
25
26 <div class="field">
26 <div class="field">
27 <div class="label">
27 <div class="label">
28 <label for="email">${_('Email address')}:</label>
28 <label for="email">${_('Email address')}:</label>
29 </div>
29 </div>
30 <div class="input">
30 <div class="input">
31 ${h.text('email')}
31 ${h.text('email')}
32 </div>
32 </div>
33 </div>
33 </div>
34
34
35 <div class="buttons">
35 <div class="buttons">
36 <div class="nohighlight">
36 <div class="nohighlight">
37 ${h.submit('send','Reset my password',class_="ui-button")}
37 ${h.submit('send','Reset my password',class_="ui-button")}
38 <div class="activation_msg">${_('Your new password will be send to matching email address')}</div>
38 <div class="activation_msg">${_('Your new password will be send to matching email address')}</div>
39 </div>
39 </div>
40 </div>
40 </div>
41 </div>
41 </div>
42 </div>
42 </div>
43 ${h.end_form()}
43 ${h.end_form()}
44 </div>
44 </div>
45 </div>
45 </div>
46 </body>
46 </body>
47 </html>
47 </html>
48
48
@@ -1,96 +1,96
1 ## -*- coding: utf-8 -*-
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">
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="mainhtml">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
4 <head>
5 <title>${_('Sign Up')} - ${c.rhodecode_name}</title>
5 <title>${_('Sign Up')} - ${c.rhodecode_name}</title>
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
7 <link rel="icon" href="${h.url("/images/hgicon.png")}" type="image/png" />
8 <meta name="robots" content="index, nofollow"/>
8 <meta name="robots" content="index, nofollow"/>
9
9
10 <!-- stylesheets -->
10 <!-- stylesheets -->
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
11 <link rel="stylesheet" type="text/css" href="${h.url('/css/style.css')}" media="screen" />
12
12
13 </head>
13 </head>
14 <body>
14 <body>
15 <div id="register">
15 <div id="register">
16
16
17 <div class="title top-left-rounded-corner top-right-rounded-corner">
17 <div class="title top-left-rounded-corner top-right-rounded-corner">
18 <h5>${_('Sign Up to')} ${c.rhodecode_name}</h5>
18 <h5>${_('Sign Up to')} ${c.rhodecode_name}</h5>
19 </div>
19 </div>
20 <div class="inner">
20 <div class="inner">
21 ${h.form(url('register'))}
21 ${h.form(url('register'))}
22 <div class="form">
22 <div class="form">
23 <!-- fields -->
23 <!-- fields -->
24 <div class="fields">
24 <div class="fields">
25 <div class="field">
25 <div class="field">
26 <div class="label">
26 <div class="label">
27 <label for="username">${_('Username')}:</label>
27 <label for="username">${_('Username')}:</label>
28 </div>
28 </div>
29 <div class="input">
29 <div class="input">
30 ${h.text('username',class_="medium")}
30 ${h.text('username',class_="medium")}
31 </div>
31 </div>
32 </div>
32 </div>
33
33
34 <div class="field">
34 <div class="field">
35 <div class="label">
35 <div class="label">
36 <label for="password">${_('Password')}:</label>
36 <label for="password">${_('Password')}:</label>
37 </div>
37 </div>
38 <div class="input">
38 <div class="input">
39 ${h.password('password',class_="medium")}
39 ${h.password('password',class_="medium")}
40 </div>
40 </div>
41 </div>
41 </div>
42
42
43 <div class="field">
43 <div class="field">
44 <div class="label">
44 <div class="label">
45 <label for="password">${_('Re-enter password')}:</label>
45 <label for="password">${_('Re-enter password')}:</label>
46 </div>
46 </div>
47 <div class="input">
47 <div class="input">
48 ${h.password('password_confirmation',class_="medium")}
48 ${h.password('password_confirmation',class_="medium")}
49 </div>
49 </div>
50 </div>
50 </div>
51
51
52 <div class="field">
52 <div class="field">
53 <div class="label">
53 <div class="label">
54 <label for="name">${_('First Name')}:</label>
54 <label for="name">${_('First Name')}:</label>
55 </div>
55 </div>
56 <div class="input">
56 <div class="input">
57 ${h.text('name',class_="medium")}
57 ${h.text('name',class_="medium")}
58 </div>
58 </div>
59 </div>
59 </div>
60
60
61 <div class="field">
61 <div class="field">
62 <div class="label">
62 <div class="label">
63 <label for="lastname">${_('Last Name')}:</label>
63 <label for="lastname">${_('Last Name')}:</label>
64 </div>
64 </div>
65 <div class="input">
65 <div class="input">
66 ${h.text('lastname',class_="medium")}
66 ${h.text('lastname',class_="medium")}
67 </div>
67 </div>
68 </div>
68 </div>
69
69
70 <div class="field">
70 <div class="field">
71 <div class="label">
71 <div class="label">
72 <label for="email">${_('Email')}:</label>
72 <label for="email">${_('Email')}:</label>
73 </div>
73 </div>
74 <div class="input">
74 <div class="input">
75 ${h.text('email',class_="medium")}
75 ${h.text('email',class_="medium")}
76 </div>
76 </div>
77 </div>
77 </div>
78
78
79 <div class="buttons">
79 <div class="buttons">
80 <div class="nohighlight">
80 <div class="nohighlight">
81 ${h.submit('sign_up','Sign Up',class_="ui-button")}
81 ${h.submit('sign_up','Sign Up',class_="ui-button")}
82 %if c.auto_active:
82 %if c.auto_active:
83 <div class="activation_msg">${_('Your account will be activated right after registration')}</div>
83 <div class="activation_msg">${_('Your account will be activated right after registration')}</div>
84 %else:
84 %else:
85 <div class="activation_msg">${_('Your account must wait for activation by administrator')}</div>
85 <div class="activation_msg">${_('Your account must wait for activation by administrator')}</div>
86 %endif
86 %endif
87 </div>
87 </div>
88 </div>
88 </div>
89 </div>
89 </div>
90 </div>
90 </div>
91 ${h.end_form()}
91 ${h.end_form()}
92 </div>
92 </div>
93 </div>
93 </div>
94 </body>
94 </body>
95 </html>
95 </html>
96
96
General Comments 0
You need to be logged in to leave comments. Login now