# HG changeset patch # User Marcin Kuzminski # Date 1300488267 -3600 # Node ID 41241617a7a3a1a982a30a1de348bdbd2b869faa # Parent c9a9e0b3baf85c462f37cc5546bc024eb562d0d1 rewrote templates, all small pages will inherit from root for easier changes and controll diff -r c9a9e0b3baf8 -r 41241617a7a3 rhodecode/templates/base/base.html --- a/rhodecode/templates/base/base.html Fri Mar 18 22:24:42 2011 +0100 +++ b/rhodecode/templates/base/base.html Fri Mar 18 23:44:27 2011 +0100 @@ -1,119 +1,105 @@ ## -*- coding: utf-8 -*- - - - - ${next.title()} - - - - - ${self.css()} - - ${self.js()} - %if c.ga_code: - - %endif - - - - + - - - - + + + - +### MAKO DEFS ### +<%def name="page_nav()"> + ${self.menu()} + -### MAKO DEFS ### -<%def name="page_nav()"> - ${self.menu()} +<%def name="breadcrumbs()"> + + <%def name="menu(current=None)"> <% def is_current(selected): @@ -314,89 +300,4 @@ %endif %endif - - - -<%def name="css()"> - - - - - -<%def name="js()"> -## -## -## -## -## - - - - - - - - - -<%def name="breadcrumbs()"> - \ No newline at end of file diff -r c9a9e0b3baf8 -r 41241617a7a3 rhodecode/templates/base/root.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rhodecode/templates/base/root.html Fri Mar 18 23:44:27 2011 +0100 @@ -0,0 +1,126 @@ +## -*- coding: utf-8 -*- + + + + ${self.title()} + + + + + + ${self.css()} + + %if c.ga_code: + + + %endif + + + ${self.js()} + + + + + ${next.body()} + + + + +<%def name="css()"> + + + + + +<%def name="js()"> + + + % if False: + + + + + + % else: + + + + % endif + + + + + + \ No newline at end of file diff -r c9a9e0b3baf8 -r 41241617a7a3 rhodecode/templates/login.html --- a/rhodecode/templates/login.html Fri Mar 18 22:24:42 2011 +0100 +++ b/rhodecode/templates/login.html Fri Mar 18 23:44:27 2011 +0100 @@ -1,82 +1,72 @@ ## -*- coding: utf-8 -*- - - - - ${_('Sign In')} - ${c.rhodecode_name} - - - - - - +<%inherit file="base/root.html"/> + +<%def name="title()"> + ${_('Sign In')} - ${c.rhodecode_name} + - - -
-
- <% messages = h.flash.pop_messages() %> - % if messages: -
    - % for message in messages: -
  • ${message}
  • - % endfor -
- % endif -
- -
-
${_('Sign In to')} ${c.rhodecode_name}
-
-
- ${h.form(h.url.current(came_from=c.came_from))} -
- +
+
+ <% messages = h.flash.pop_messages() %> + % if messages: +
    + % for message in messages: +
  • ${message}
  • + % endfor +
+ % endif +
+ +
+
${_('Sign In to')} ${c.rhodecode_name}
+
+
+ ${h.form(h.url.current(came_from=c.came_from))} +
+ -
-
-
- -
-
- ${h.text('username',class_='focus',size=40)} -
- -
-
-
- -
-
- ${h.password('password',class_='focus',size=40)} -
- -
- ##
- ##
- ## - ## - ##
- ##
-
- ${h.submit('sign_in','Sign In',class_="ui-button")} -
+
+
+
+ +
+
+ ${h.text('username',class_='focus',size=40)} +
+ +
+
+
+ +
+
+ ${h.password('password',class_='focus',size=40)}
- - - + +
+ ##
+ ##
+ ## + ## + ##
+ ##
+
+ ${h.submit('sign_in','Sign In',class_="ui-button")} +
+
+ + + - -
- ${h.end_form()} -
- +
- - - + ${h.end_form()} +
+ +
\ No newline at end of file diff -r c9a9e0b3baf8 -r 41241617a7a3 rhodecode/templates/password_reset.html --- a/rhodecode/templates/password_reset.html Fri Mar 18 22:24:42 2011 +0100 +++ b/rhodecode/templates/password_reset.html Fri Mar 18 23:44:27 2011 +0100 @@ -1,48 +1,39 @@ ## -*- coding: utf-8 -*- - - - - ${_('Reset You password')} - ${c.rhodecode_name} - - - - - - +<%inherit file="base/root.html"/> + +<%def name="title()"> + ${_('Reset You password')} - ${c.rhodecode_name} + - - -
- -
-
${_('Reset You password to')} ${c.rhodecode_name}
-
-
- ${h.form(url('password_reset'))} -
- -
- -
-
- -
-
- ${h.text('email')} -
-
- -
-
- ${h.submit('send','Reset my password',class_="ui-button")} -
${_('Your new password will be send to matching email address')}
-
-
-
-
- ${h.end_form()} -
+
+ +
+
${_('Reset You password to')} ${c.rhodecode_name}
+
+
+ ${h.form(url('password_reset'))} +
+ +
+ +
+
+ +
+
+ ${h.text('email')} +
+
+ +
+
+ ${h.submit('send','Reset my password',class_="ui-button")} +
${_('Your new password will be send to matching email address')}
+
+
+
- - + ${h.end_form()} +
+
diff -r c9a9e0b3baf8 -r 41241617a7a3 rhodecode/templates/register.html --- a/rhodecode/templates/register.html Fri Mar 18 22:24:42 2011 +0100 +++ b/rhodecode/templates/register.html Fri Mar 18 23:44:27 2011 +0100 @@ -1,96 +1,87 @@ ## -*- coding: utf-8 -*- - - - - ${_('Sign Up')} - ${c.rhodecode_name} - - - - - - +<%inherit file="base/root.html"/> - - -
- -
-
${_('Sign Up to')} ${c.rhodecode_name}
-
-
- ${h.form(url('register'))} -
- -
-
-
- -
-
- ${h.text('username',class_="medium")} -
-
- -
-
- -
-
- ${h.password('password',class_="medium")} -
-
- -
-
- -
-
- ${h.password('password_confirmation',class_="medium")} -
-
- -
-
- -
-
- ${h.text('name',class_="medium")} -
-
- -
-
- -
-
- ${h.text('lastname',class_="medium")} -
-
- -
-
- -
-
- ${h.text('email',class_="medium")} -
-
- -
-
- ${h.submit('sign_up','Sign Up',class_="ui-button")} - %if c.auto_active: -
${_('Your account will be activated right after registration')}
- %else: -
${_('Your account must wait for activation by administrator')}
- %endif -
-
-
-
- ${h.end_form()} -
+<%def name="title()"> + ${_('Sign Up')} - ${c.rhodecode_name} + + +
+ +
+
${_('Sign Up to')} ${c.rhodecode_name}
+
+
+ ${h.form(url('register'))} +
+ +
+
+
+ +
+
+ ${h.text('username',class_="medium")} +
+
+ +
+
+ +
+
+ ${h.password('password',class_="medium")} +
+
+ +
+
+ +
+
+ ${h.password('password_confirmation',class_="medium")} +
+
+ +
+
+ +
+
+ ${h.text('name',class_="medium")} +
+
+ +
+
+ +
+
+ ${h.text('lastname',class_="medium")} +
+
+ +
+
+ +
+
+ ${h.text('email',class_="medium")} +
+
+ +
+
+ ${h.submit('sign_up','Sign Up',class_="ui-button")} + %if c.auto_active: +
${_('Your account will be activated right after registration')}
+ %else: +
${_('Your account must wait for activation by administrator')}
+ %endif +
+
+
- - + ${h.end_form()} +
+