Mercurial > kallithea
diff 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 |
line wrap: on
line diff
--- a/pylons_app/templates/admin.html Wed Apr 07 15:28:50 2010 +0200 +++ b/pylons_app/templates/admin.html Wed Apr 07 16:42:11 2010 +0200 @@ -1,51 +1,53 @@ ## -*- coding: utf-8 -*- -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> - <link rel="icon" href="${c.staticurl}hgicon.png" type="image/png" /> - <meta name="robots" content="index, nofollow"/> - <link rel="stylesheet" href="${c.staticurl}style-monoblue.css" type="text/css" /> - <title>Mercurial repositories Admin</title> -</head> - -<body> -<div id="container"> - <div class="page-header"> - <h1><a href="/">Home</a> / Admin</h1> - <ul class="page-nav"> - </ul> +<%inherit file="base/base.html"/> +<%def name="title()"> + ${_('Repository managment')} +</%def> +<%def name="breadcrumbs()"> + ${h.link_to(u'Home',h.url('/'))} + / + ${h.link_to(u'Admin',h.url('admin_home'))} +</%def> +<%def name="page_nav()"> +<li>${h.link_to(u'Home',h.url('/'))}</li> +<li class="current">${_('Admin')}</li> +</%def> +<%def name="main()"> + %if c.admin_user: + <ul class="submenu"> + <li> + ${h.link_to(u'Repos managment',h.url('admin_repos_manage'))} + </li> + <li> + ${h.link_to(u'Users managment',h.url('admin_users_manage'))} + </li> + </ul> + <br/> + <div> + + <h2>Hi !</h2> </div> - <table cellspacing="0"> - <tr> - <td>${h.link_to(u'Create "ccc" repository',h.url('admin_add_repo',new_repo='ccc'))}</td> - </tr> - <tr> - <td>${h.link_to(u'Create "ccc" repository',h.url('admin_add_repo',new_repo='ccc'))}</td> - </tr> - <tr> - <td>${h.link_to(u'Create "ccc" repository',h.url('admin_add_repo',new_repo='ccc'))}</td> - </tr> - <tr> - <td><h2>${c.new_repo}</h2></td> - </tr> - </table> - <div class="page-footer"> - Mercurial Repository: admin - </div> - - <div id="powered-by"> - <p> - <a href="http://mercurial.selenic.com/" title="Mercurial"> - <img src="${c.staticurl}hglogo.png" width="75" height="90" alt="mercurial"></a> - </p> - </div> - - <div id="corner-top-left"></div> - <div id="corner-top-right"></div> - <div id="corner-bottom-left"></div> - <div id="corner-bottom-right"></div> - -</div> -</body> -</html> - \ No newline at end of file + %else: + <div> + <br /> + <h2>${_('Login')}</h2> + ${h.form(h.url.current())} + <table> + <tr> + <td>${_('Username')}</td> + <td>${h.text('username')}</td> + </tr> + <tr> + <td>${_('Password')}</td> + <td>${h.text('password')}</td> + </tr> + <tr> + <td></td> + <td>${h.submit('login','login')}</td> + </tr> + </table> + ${h.end_form()} + </div> + %endif + +</%def> \ No newline at end of file