comparison pylons_app/templates/admin.html @ 44:d924b931b488

Added managment pages. + fixed routing bug done a lot in templates
author marcink
date Wed, 07 Apr 2010 16:42:11 +0200
parents 2e1247e62c5b
children a886f5eba757
comparison
equal deleted inserted replaced
43:2e1247e62c5b 44:d924b931b488
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 <%inherit file="base/base.html"/>
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <%def name="title()">
4 <head> 4 ${_('Repository managment')}
5 <link rel="icon" href="${c.staticurl}hgicon.png" type="image/png" /> 5 </%def>
6 <meta name="robots" content="index, nofollow"/> 6 <%def name="breadcrumbs()">
7 <link rel="stylesheet" href="${c.staticurl}style-monoblue.css" type="text/css" /> 7 ${h.link_to(u'Home',h.url('/'))}
8 <title>Mercurial repositories Admin</title> 8 /
9 </head> 9 ${h.link_to(u'Admin',h.url('admin_home'))}
10 10 </%def>
11 <body> 11 <%def name="page_nav()">
12 <div id="container"> 12 <li>${h.link_to(u'Home',h.url('/'))}</li>
13 <div class="page-header"> 13 <li class="current">${_('Admin')}</li>
14 <h1><a href="/">Home</a> / Admin</h1> 14 </%def>
15 <ul class="page-nav"> 15 <%def name="main()">
16 </ul> 16 %if c.admin_user:
17 <ul class="submenu">
18 <li>
19 ${h.link_to(u'Repos managment',h.url('admin_repos_manage'))}
20 </li>
21 <li>
22 ${h.link_to(u'Users managment',h.url('admin_users_manage'))}
23 </li>
24 </ul>
25 <br/>
26 <div>
27
28 <h2>Hi !</h2>
17 </div> 29 </div>
18 <table cellspacing="0"> 30 %else:
19 <tr> 31 <div>
20 <td>${h.link_to(u'Create "ccc" repository',h.url('admin_add_repo',new_repo='ccc'))}</td> 32 <br />
21 </tr> 33 <h2>${_('Login')}</h2>
22 <tr> 34 ${h.form(h.url.current())}
23 <td>${h.link_to(u'Create "ccc" repository',h.url('admin_add_repo',new_repo='ccc'))}</td> 35 <table>
24 </tr> 36 <tr>
25 <tr> 37 <td>${_('Username')}</td>
26 <td>${h.link_to(u'Create "ccc" repository',h.url('admin_add_repo',new_repo='ccc'))}</td> 38 <td>${h.text('username')}</td>
27 </tr> 39 </tr>
28 <tr> 40 <tr>
29 <td><h2>${c.new_repo}</h2></td> 41 <td>${_('Password')}</td>
30 </tr> 42 <td>${h.text('password')}</td>
31 </table> 43 </tr>
32 <div class="page-footer"> 44 <tr>
33 Mercurial Repository: admin 45 <td></td>
34 </div> 46 <td>${h.submit('login','login')}</td>
35 47 </tr>
36 <div id="powered-by"> 48 </table>
37 <p> 49 ${h.end_form()}
38 <a href="http://mercurial.selenic.com/" title="Mercurial"> 50 </div>
39 <img src="${c.staticurl}hglogo.png" width="75" height="90" alt="mercurial"></a> 51 %endif
40 </p> 52
41 </div> 53 </%def>
42
43 <div id="corner-top-left"></div>
44 <div id="corner-top-right"></div>
45 <div id="corner-bottom-left"></div>
46 <div id="corner-bottom-right"></div>
47
48 </div>
49 </body>
50 </html>
51