# HG changeset patch # User Marcin Kuzminski # Date 1273418591 -7200 # Node ID 787689980bcd96a272a26be2c137ac944d5ededb # Parent f7218849798af25738485be2bdbfd8a4693f515c Tempaltes changes for changelog and shortlog, changed menu generation in base diff -r f7218849798a -r 787689980bcd pylons_app/templates/base/base.html --- a/pylons_app/templates/base/base.html Sun May 09 17:22:30 2010 +0200 +++ b/pylons_app/templates/base/base.html Sun May 09 17:23:11 2010 +0200 @@ -1,15 +1,16 @@ ## -*- coding: utf-8 -*- - + ${next.title()} + ## ${self.css()} ${self.js()} - +
-
  • ${h.link_to_unless(current=='summary',_('summary'),h.url('summary_home',repo_name=c.repo_name))}
  • -
  • ${h.link_to_unless(current=='changelog',_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}
  • -
  • ${h.link_to_unless(current=='branches',_('branches'),h.url('branches_home',repo_name=c.repo_name))}
  • -
  • ${h.link_to_unless(current=='tags',_('tags'),h.url('tags_home',repo_name=c.repo_name))}
  • -
  • ${h.link_to_unless(current=='graph',_('graph'),h.url('graph_home',repo_name=c.repo_name))}
  • -
  • ${h.link_to_unless(current=='files',_('files'),h.url('files_home',repo_name=c.repo_name))}
  • + <%def name="is_current(selected)"> + <% + if selected == current: + return 'current' + else: + return '' + %> + +
  • ${h.link_to(_('summary'),h.url('summary_home',repo_name=c.repo_name))}
  • +
  • ${h.link_to(_('shortlog'),h.url('shortlog_home',repo_name=c.repo_name))}
  • +
  • ${h.link_to(_('changelog'),h.url('changelog_home',repo_name=c.repo_name))}
  • +
  • ${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name))}
  • +
  • ${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name))}
  • +
  • ${h.link_to(_('files'),h.url('files_home',repo_name=c.repo_name))}
  • diff -r f7218849798a -r 787689980bcd pylons_app/templates/changelog/changelog.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pylons_app/templates/changelog/changelog.html Sun May 09 17:23:11 2010 +0200 @@ -0,0 +1,115 @@ +<%inherit file="/base/base.html"/> + +<%def name="title()"> + ${_('Repository managment')} + +<%def name="breadcrumbs()"> + ${h.link_to(u'Home',h.url('/'))} + / + ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))} + / + ${_('changelog')} + +<%def name="page_nav()"> +
    + +
    + + ${self.menu('changelog')} + + +<%def name="main()"> + + + +
    +${h.form(h.url.current(),method='get')} + ${_('Show')}: ${h.text('size',size=5,value=c.size)} ${_('revisions')} + ${h.submit('','set')} +${h.end_form()} +
    +
    +
    + +
    +
    +
      +
      +
      + + + +
      +

      ${c.pagination.pager('$link_previous ~2~ $link_next')}

      +
      + \ No newline at end of file diff -r f7218849798a -r 787689980bcd pylons_app/templates/graph.html --- a/pylons_app/templates/graph.html Sun May 09 17:22:30 2010 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,112 +0,0 @@ -<%inherit file="/base/base.html"/> - -<%def name="title()"> - ${_('Repository managment')} - -<%def name="breadcrumbs()"> - ${h.link_to(u'Home',h.url('/'))} - / - ${h.link_to(c.repo_name,h.url('graph_home',repo_name=c.repo_name))} - / - ${_('graph')} - -<%def name="page_nav()"> -
      - -
      - - ${self.menu('graph')} - - -<%def name="main()"> - - - -
      -${h.form(h.url.current(),method='get')} - ${_('Show')}: ${h.text('size',size=10,value=c.size)} ${_('revisions')} - ${h.submit('','set')} -${h.end_form()} -
      -
      -
        - -
          -
          - - - -
          -

          ${c.pagination.pager('$link_previous ~2~ $link_next')}

          -
          - \ No newline at end of file diff -r f7218849798a -r 787689980bcd pylons_app/templates/shortlog/shortlog.html --- a/pylons_app/templates/shortlog/shortlog.html Sun May 09 17:22:30 2010 +0200 +++ b/pylons_app/templates/shortlog/shortlog.html Sun May 09 17:23:11 2010 +0200 @@ -18,7 +18,7 @@ - ${self.menu('changelog')} + ${self.menu('shortlog')} <%def name="main()">