~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.kid

  • Committer: Robey Pointer
  • Date: 2006-12-20 22:17:33 UTC
  • Revision ID: robey@lag.net-20061220221733-1y0ix5n2eexmltdo
update README

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    <span py:if="not title"> bazaar branches in loggerhead </span>
14
14
</h1>
15
15
 
16
 
<div class="browse-project" py:for="project in projects">
17
 
    <div class="browse-project-name">
18
 
        ${project.friendly_name}
19
 
    </div>
20
 
    
21
 
    <div class="browse-project-description" py:if="len(project.long_description) > 0">
22
 
    ${XML(project.long_description)}
 
16
<div class="browse-group" py:for="group in groups">
 
17
    <div class="browse-group-name">
 
18
        ${group.friendly_name}
23
19
    </div>
24
20
    
25
21
    <div class="browse-view">
28
24
            <th> Name </th>
29
25
            <th> Description </th>
30
26
            <th> Last change </th>
31
 
            <th />
32
27
        </tr>
33
 
        <span py:for="view in project.views">
 
28
        <span py:for="view in group.views">
34
29
            <tr>
35
 
            <td class="name"> <a href="${tg.url([ '/' + project.name, view.name ])}">${view.friendly_name}</a> </td>
 
30
            <td class="name"> <a href="${tg.url([ '/' + group.name, view.name ])}">${view.friendly_name}</a> </td>
36
31
            <td class="description"> ${view.description} </td>
37
 
            <td class="last-update"> ${view.get_history().has_revisions and util.approximatedate(view.last_updated()) or "(no revisions)"} </td>
38
 
            <td class="feed">
39
 
                <a href="${tg.url([ '/' + project.name, view.name, 'atom' ])}" title="atom feed">
40
 
                    <img src="${tg.url('/static/images/feed-icon-16x16.gif')}" alt="atom feed" />
41
 
                </a>
42
 
            </td>
 
32
            <td class="last-update"> <!--${view.last_updated().strftime('%d %b %Y')} &nbsp;--> ${util.ago(view.last_updated())} </td>
43
33
            </tr>
44
 
            <tr py:if="view.branch_url is not None">
 
34
            <tr py:if="view.url">
45
35
                <td class="name"> </td>
46
 
                <td class="description url" colspan="2"> <a href="${view.branch_url}">${view.branch_url}</a> </td>
 
36
                <td class="description url" colspan="2"> <a href="${view.url}">${view.branch_url}</a> </td>
47
37
            </tr>
48
38
        </span>
49
39
        </table>