~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/master.pt

fix css so the modified files don't get listed twice on the revision page
(initially)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<metal:page define-macro="master">
2
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
 
<html xmlns="http://www.w3.org/1999/xhtml">
5
 
 
6
 
  <head>
7
 
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" tal:replace="nothing"/>
8
 
    <title tal:content="view/title">Your title goes here</title>
9
 
    <meta py:replace="item[:]"/>
10
 
    <style type="text/css" media="screen"
11
 
           tal:content="string:@import url(${tg.url('/static/css/style.css')});">
12
 
@import url(/static/css/style.css);
13
 
    </style>
14
 
 
15
 
<!-- !define common navbar -->
16
 
<span py:def="navbar()" py:strip="True">
17
 
    <!-- !requires: ${navigation: start_revid, revid, revid_list, pagesize, buttons, scan_url}, ${branch}, ${history} -->
18
 
    <div class="bar" py:if="navigation is not None">
19
 
        <!-- form must go OUTSIDE the table, or safari will add extra padding :( -->
20
 
        <form action="${branch.url('/changes', start_revid=getattr(navigation, 'start_revid', None),
21
 
              file_id=getattr(navigation, 'file_id', None))}"><table><tr>
22
 
            <td><span class="buttons">
23
 
                <!-- ! navbar buttons never change, from now on.  i decree it! -->
24
 
                <a href="${branch.url('/changes', **util.get_context(clear=1))}"> changes </a>
25
 
                <a href="${branch.url('/files', **util.get_context(clear=1))}"> files </a>
26
 
                <span class="search"> search: <input type="text" name="q" /> </span>
27
 
            </span></td>
28
 
            <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')}">
31
 
                    <img src="${tg.url('/static/images/feed-icon-16x16.gif')}" /></a>
32
 
                </span>
33
 
                <span class="navbuttons">
34
 
                        <span py:if="navigation.prev_page_revid">
35
 
                        <a href="${navigation.prev_page_url}" title="Previous page"> &#171; </a>
36
 
                    </span>
37
 
                        <span py:if="not navigation.prev_page_revid"> &#171; </span>
38
 
                    revision ${history.get_revno(revid)}
39
 
                    (<span py:if="navigation.pagesize > 1">page </span>
40
 
                    ${navigation.page_position} / ${navigation.page_count})
41
 
                        <span py:if="navigation.next_page_revid">
42
 
                    <a href="${navigation.next_page_url}" title="Next page"> &#187; </a>
43
 
                    </span>
44
 
                        <span py:if="not navigation.next_page_revid"> &#187; </span>
45
 
                </span>
46
 
            </td>
47
 
        </tr></table></form>
48
 
    </div>
49
 
</span>
50
 
 
51
 
<metal:revlink metal:define-macro="revision-link">
52
 
  <tal:comment replace="nothing">
53
 
    This macro expects the following variables:
54
 
    :revid:
55
 
    :text:
56
 
    :history:
57
 
    :branch:
58
 
    :overrides: ???
59
 
  </tal:comment>
60
 
    <a tal:attributes="title string:Show revision ${history.get_revno(revid)}
61
 
                       href string:${branch.url([ '/revision', revid ], **util.get_context(**overrides))}"
62
 
       tal:content="text"
63
 
       href="/branch/revision/$revid">
64
 
      $text
65
 
    </a>
66
 
  </metal:revlink>
67
 
 
68
 
<!-- ! expand button functions: -->
69
 
 
70
 
        <span py:strip="True" py:def="use_collapse_buttons()">
71
 
                <!-- this is totally matty's fault.  i don't like javacsript. ;) -->
72
 
                <script type="text/javascript" src="${tg.url('/static/javascript/collapse.js')}"></script>
73
 
        </span>
74
 
        
75
 
        <span py:strip="True" py:def="collapse_all_button(group, normal='block')">
76
 
            <a class="hide-all collapse-${group}-hideall"
77
 
               href="javascript:collapseAllDisplay('${group}','none')">
78
 
                <img src="${tg.url('/static/images/nav-small-down.gif')}"
79
 
                     width="10" height="10" alt="collapse"
80
 
                     class="collapse-triangle" />collapse all</a>
81
 
            <a class="hide-all collapse-${group}-showall"
82
 
               href="javascript:collapseAllDisplay('${group}','${normal}')">
83
 
                <img src="${tg.url('/static/images/nav-small-right.gif')}"
84
 
                     width="10" height="10" alt="expand"
85
 
                     class="collapse-triangle" />expand all</a>
86
 
        </span>
87
 
        
88
 
        <span py:strip="True" py:def="collapse_button(group, name, normal='block')">
89
 
            <a href="javascript:collapseDisplay('${group}','${name}','none')"
90
 
               class="hide-button collapse-${group}-${name}-hide" title="collapse">
91
 
                <img src="${tg.url('/static/images/nav-small-down.gif')}"
92
 
                     width="10" height="10" alt="collapse"
93
 
                     class="collapse-triangle" />
94
 
            </a>
95
 
            <a href="javascript:collapseDisplay('${group}','${name}','${normal}')"
96
 
               class="show-button collapse-${group}-${name}-show" title="expand">
97
 
                <img src="${tg.url('/static/images/nav-small-right.gif')}"
98
 
                     witdh="10" height="10" alt="expand"
99
 
                     class="collapse-triangle" />
100
 
            </a>
101
 
        </span>
102
 
 
103
 
</head>
104
 
 
105
 
<body py:match="item.tag=='{http://www.w3.org/1999/xhtml}body'"
106
 
      py:attrs="item.items()">
107
 
 
108
 
    <div py:replace="[item.text]+item[:]"/>
109
 
 
110
 
        <!-- End of main_content -->
111
 
        
112
 
        <div class="footer">
113
 
            <span class="banner"><a href="http://www.bazaar-vcs.org/">
114
 
            <img src="${tg.url('/static/images/bazaar-banner.png')}" /></a></span>
115
 
            <span class="banner"><a href="http://www.lag.net/loggerhead/">
116
 
            <img src="${tg.url('/static/images/loggerhead-banner.png')}" /></a></span>
117
 
        </div>
118
 
</body>
119
 
 
120
 
</html>