~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.pt

  • Committer: Michael Hudson
  • Date: 2008-06-20 03:46:24 UTC
  • mfrom: (159.2.51 wsgi-ify)
  • Revision ID: michael.hudson@canonical.com-20080620034624-p46dvwbhppj2pojw
merge wsgi-ify
this removes the dependency on turbogears and cherrypy in favour of one on
paste (http://pythonpaste.org).
it adds a new executable, serve-branches.py, that serves branches following the
structure of the file system, but also converts start-loggerhead.py to serve
things from a loggerhead.conf file the 'old-fashioned' way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
            <tal:block repeat="view project/views">
49
49
              <tr>
50
50
                <td class="name">
51
 
                  <a tal:attributes="href python:tg.url(['/' + project.name, view.name])"
 
51
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name)"
52
52
                     tal:content="view/friendly_name">
53
53
                    ${view.friendly_name}
54
54
                  </a>
58
58
                  ${view.description}
59
59
                </td>
60
60
                <td class="last-update"
61
 
                    tal:content="python:view.get_history().has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'"></td>
 
61
                    tal:content="python:view.history.has_revisions and util._approximatedate(view.last_updated()) or '(no revisions)'"></td>
62
62
                <td class="feed">
63
 
                  <a tal:attributes="href python:tg.url(['/' + project.name, view.name, 'atom'])"
 
63
                  <a tal:attributes="href python:branch.static_url(project.name + '/' +  view.name + '/atom')"
64
64
                     title="atom feed">
65
 
                    <img tal:attributes="src python:tg.url('/static/images/feed-icon-16x16.gif')"
 
65
                    <img tal:attributes="src python:branch.static_url('/static/images/feed-icon-16x16.gif')"
66
66
                         alt="atom feed" />
67
67
                  </a>
68
68
                </td>
69
69
              </tr>
70
 
              <tr tal:condition="python:view.branch_url is not None">
 
70
              <tr tal:condition="view/branch_url">
71
71
                <td class="name">
72
72
                </td>
73
73
                <td class="description url" colspan="2">