~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/browse.kid

merge lp:~pnutzh4x0r/loggerhead/loggerhead-convert-comment-newlines, which
preserves newlines in commit messages in the UI.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
 
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
3
 
    py:extends="'master.kid'">
4
 
<head>
5
 
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
6
 
    <title> loggerhead branches </title>
7
 
</head>
8
 
 
9
 
<body>
10
 
 
11
 
<h1>
12
 
    <span py:if="title">${title}</span>
13
 
    <span py:if="not title"> bazaar branches in loggerhead </span>
14
 
</h1>
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)}
23
 
    </div>
24
 
    
25
 
    <div class="browse-view">
26
 
        <table>
27
 
        <tr class="heading">
28
 
            <th> Name </th>
29
 
            <th> Description </th>
30
 
            <th> Last change </th>
31
 
            <th />
32
 
        </tr>
33
 
        <span py:for="view in project.views">
34
 
            <tr>
35
 
            <td class="name"> <a href="${tg.url([ '/' + project.name, view.name ])}">${view.friendly_name}</a> </td>
36
 
            <td class="description"> ${view.description} </td>
37
 
            <td class="last-update"> ${util.ago(view.last_updated())} </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>
43
 
            </tr>
44
 
            <tr py:if="view.branch_url is not None">
45
 
                <td class="name"> </td>
46
 
                <td class="description url" colspan="2"> <a href="${view.branch_url}">${view.branch_url}</a> </td>
47
 
            </tr>
48
 
        </span>
49
 
        </table>
50
 
    </div>
51
 
 
52
 
</div>
53
 
 
54
 
</body>
55
 
</html>