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