~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/master.kid

  • Committer: Robey Pointer
  • Date: 2006-12-12 22:40:37 UTC
  • Revision ID: robey@lag.net-20061212224037-xuh1nzpdosb0oq5w
yeah, i like matt's suggestion: default to hide-all, but never hide the committer and date -- and add the full comment to the 'show' section

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <title py:replace="''">Your title goes here</title>
8
8
    <meta py:replace="item[:]"/>
9
9
    <style type="text/css" media="screen">
10
 
@import "${tg.url('/static/css/style.css')}";
 
10
@import "/static/css/style.css";
11
11
    </style>
12
12
 
13
13
<!-- !define common navbar -->
14
14
<span py:def="navbar()">
15
 
    <!-- !requires: ${navigation: start_revid, revid, revid_list, pagesize, buttons, scan_url}, ${branch}, ${history} -->
16
 
    <div class="navbar" py:if="navigation is not None">
 
15
    <!-- !requires: ${revid}, ${buttons}, ${pagesize}, ${history}, ${scan_url} -->
 
16
    <div class="navbar">
17
17
        <div class="bar">
18
 
            <!-- form must go OUTSIDE the table, or safari will add extra padding :( -->
19
 
            <form action="${branch.url('/changes', start_revid=getattr(navigation, 'start_revid', None), file_id=getattr(navigation, 'file_id', None))}">
20
18
            <table>
21
19
                <tr><td>
22
20
                    <span class="buttons">
23
 
                        <!-- ! navbar buttons never change, from now on.  i decree it! -->
24
 
                        <a href="${branch.url('/changes')}"> changes </a>
25
 
                        <a href="${branch.url('/files')}"> files </a>
26
 
                        <span class="search"> search: <input type="text" name="q" /> </span>
27
 
                    </span>
28
 
                </td><td align="right" py:if="hasattr(navigation, 'revid_list')">
29
 
                    <span py:if="hasattr(navigation, 'feed')" class="rbuttons feed">
30
 
                        <a href="${branch.url('/atom')}"><img src="${tg.url('/static/images/feed-icon-16x16.gif')}" /></a>
31
 
                    </span>
 
21
                        <span py:for="label, url in buttons">
 
22
                            <a href="${url}"> ${label} </a>
 
23
                        </span>
 
24
                    </span>
 
25
                </td><td align="right">
32
26
                    <span class="navbuttons">
33
 
                        <span py:if="navigation.prev_page_revid"> <a href="${navigation.prev_page_url}" title="Previous page"> &#171; </a>      </span>
34
 
                        <span py:if="not navigation.prev_page_revid"> &#171; </span>
35
 
                                revision ${history.get_revno(revid)} (<span py:if="navigation.pagesize > 1">page </span>${navigation.page_position} / ${navigation.page_count})
36
 
                        <span py:if="navigation.next_page_revid"> <a href="${navigation.next_page_url}" title="Next page"> &#187; </a>  </span>
37
 
                        <span py:if="not navigation.next_page_revid"> &#187; </span>
 
27
                        <span py:for="label, l_title, l_revid in history.scan_range(revid, pagesize)">
 
28
                            <a py:if="l_revid" href="${tg.url([ scan_url, l_revid ])}" title="${l_title}"> ${label} </a>
 
29
                            <span py:if="not l_revid"> ${label} </span>
 
30
                        </span>
38
31
                    </span>
39
32
                </td></tr>
40
33
            </table>
41
 
            </form>
 
34
        </div>
 
35
        <div class="navposition">
 
36
            <table>
 
37
                <tr>
 
38
                    <td> </td>
 
39
                    <td class="navposition" align="right">
 
40
                        changes: ${history.get_sequence(revid) + 1} / ${history.count}
 
41
                    </td>
 
42
                </tr>
 
43
            </table>
42
44
        </div>
43
45
    </div>
44
46
</span>
45
47
 
46
 
<span py:def="revlink(revid, start_revid, file_id, text)">
47
 
    <a title="Show revision ${history.get_revno(revid)}" href="${branch.url([ '/revision', revid ], start_revid=start_revid, file_id=file_id)}" class="revlink"> ${text} </a>
48
 
</span>
49
 
<span py:def="revlink_q(revid, start_revid, file_id, query, text)">
50
 
    <a title="Show revision ${history.get_revno(revid)}" href="${branch.url([ '/revision', revid ], start_revid=start_revid, file_id=file_id, q=query)}" class="revlink"> ${text} </a>
 
48
<span py:def="revlink(revid, text)">
 
49
    <a title="Show revision" href="${tg.url([ '/revision', revid ])}" class="revlink"> ${text} </a>
51
50
</span>
52
51
 
53
52
</head>
57
56
    <div py:replace="[item.text]+item[:]"/>
58
57
 
59
58
        <!-- End of main_content -->
60
 
        
61
 
        <div class="footer">
62
 
            <span class="banner"><a href="http://www.bazaar-vcs.org/"><img src="${tg.url('/static/images/bazaar-banner.png')}" /></a></span>
63
 
            <span class="banner"><a href="http://www.lag.net/loggerhead/"><img src="${tg.url('/static/images/loggerhead-banner.png')}" /></a></span>
64
 
        </div>
65
59
</body>
66
60
 
67
61
</html>