~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/macros.pt

  • Committer: Michael Hudson
  • Date: 2008-06-20 02:13:34 UTC
  • mto: This revision was merged to the branch mainline in revision 163.
  • Revision ID: michael.hudson@canonical.com-20080620021334-zk1wbjd129ah2y9a
tiny trunk behaviour restorations

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
  <head>
5
5
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
6
6
 
7
 
    <title metal:define-slot="title"></title>
 
7
    <title metal:define-slot="title">
 
8
      Title.
 
9
    </title>
 
10
 
8
11
    <link rel="stylesheet"
9
 
          tal:attributes="href python:branch.static_url('/static/css/global.css')" />
10
 
    <tal:comment condition="nothing">
11
 
      <script type="text/javascript"
12
 
              src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>
13
 
    </tal:comment>
14
 
    <script type="text/javascript">
15
 
      var global_path = <tal:block content="python:'\''+branch.url('/')+'\''" />;
16
 
      var collapsed_icon_path = <tal:block content="python:'\''+branch.static_url('/static/images/treeCollapsed.png')+'\''" />;
17
 
      var expanded_icon_path = <tal:block content="python:'\''+branch.static_url('/static/images/treeExpanded.png')+'\''" />;
18
 
    </script>
19
 
    <script type="text/javascript"
20
 
            tal:attributes="src python:branch.yui_url('yui/yui-min.js')"></script>
21
 
    <script type="text/javascript"
22
 
            tal:attributes="src python:branch.yui_url('oop/oop-min.js')"></script>
23
 
    <script type="text/javascript"
24
 
            tal:attributes="src python:branch.yui_url('event/event-min.js')"></script>
25
 
    <script type="text/javascript"
26
 
            tal:attributes="src python:branch.yui_url('attribute/attribute-min.js')"></script>
27
 
    <script type="text/javascript"
28
 
            tal:attributes="src python:branch.yui_url('base/base-min.js')"></script>
29
 
    <script type="text/javascript"
30
 
            tal:attributes="src python:branch.yui_url('dom/dom-min.js')"></script>
31
 
    <script type="text/javascript"
32
 
            tal:attributes="src python:branch.yui_url('node/node-min.js')"></script>
33
 
    <script type="text/javascript"
34
 
            tal:attributes="src python:branch.yui_url('anim/anim-min.js')"></script>
35
 
    <script type="text/javascript"
36
 
            tal:attributes="src python:branch.yui_url('io/io-base-min.js')"></script>
37
 
    <script type="text/javascript"
38
 
            tal:attributes="src python:branch.static_url('/static/javascript/custom.js')"></script>
 
12
          tal:attributes="href python:tg.url('/static/css/zptstyle.css')" />
 
13
 
39
14
    <metal:block metal:define-slot="header_extras" />
40
15
  </head>
41
16
 
42
 
<body>
43
 
    <!-- Loggerhead Content Area -->
44
 
      <div id="finderBox">
45
 
         <tal:search-box define="navigation navigation"
46
 
                        replace="structure python:search_box(branch,
47
 
                                 navigation)" />
48
 
        <div>
49
 
          <tal:feed-link replace="structure python:feed_link(branch, url)" />
50
 
        </div>
51
 
      </div>
52
 
 
53
 
      <tal:menu define="fileview_active fileview_active"
54
 
                replace="structure python:menu(branch, url, fileview_active)" />
55
 
      <div id="loggerheadCont">
56
 
 
57
 
        <div id="search_terms"></div>
58
 
 
59
 
        <h1 metal:define-slot="heading"></h1>
60
 
        <div metal:define-slot="content"></div>
61
 
 
62
 
        <p class="fl">Loggerhead is a web-based interface for <a href="http://bazaar-vcs.org/">Bazaar</a> branches</p>
63
 
      </div>
 
17
  <body tal:attributes="onload onload|nothing">
 
18
 
 
19
    <div class="bar" tal:condition="navigation|nothing">
 
20
      <form tal:attributes="action python:branch.url('/changes', start_revid=getattr(navigation, 'start_revid', None), file_id=getattr(navigation, 'file_id', None))">
 
21
        <table>
 
22
          <tr>
 
23
            <td>
 
24
              <span class="buttons">
 
25
                <a tal:attributes="href python:url('/changes', clear=1)"> changes </a>
 
26
                <a tal:attributes="href python:url('/files', clear=1)"> files </a>
 
27
                <span class="search">
 
28
                  search: <input type="text" name="q" />
 
29
                </span>
 
30
              </span>
 
31
            </td>
 
32
            <td align="right" tal:condition="navigation/revid_list|nothing">
 
33
              <span tal:condition="navigation/feed" class="rbuttons feed">
 
34
                <a tal:attributes="href python:url(['/atom'])">
 
35
                  <img tal:attributes="src python:tg.url('/static/images/feed-icon-16x16.gif')" />
 
36
                </a>
 
37
              </span>
 
38
              <span class="navbuttons">
 
39
                <a tal:condition="navigation/prev_page_revid"
 
40
                   tal:attributes="href navigation/prev_page_url"
 
41
                   title="Previous page">
 
42
                  &#171;
 
43
                </a>
 
44
                <tal:arrow condition="not:navigation/prev_page_revid">
 
45
                  &#171;
 
46
                </tal:arrow>
 
47
                revision <tal:b content="python:history.get_revno(revid)" />
 
48
                (<tal:b condition="python:navigation.pagesize > 1">page </tal:b>
 
49
                <tal:b content="navigation/page_position" /> / <tal:b content="navigation/page_count" />)
 
50
                <a tal:condition="navigation/next_page_revid"
 
51
                   tal:attributes="href navigation/next_page_url"
 
52
                   title="Next page">
 
53
                  &#187;
 
54
                </a>
 
55
                <tal:arrow condition="not:navigation/next_page_revid">
 
56
                  &#187;
 
57
                </tal:arrow>
 
58
              </span>
 
59
            </td>
 
60
          </tr>
 
61
        </table>
 
62
      </form>
 
63
    </div>
 
64
 
 
65
    <h1 metal:define-slot="heading">
 
66
      Heading
 
67
    </h1>
 
68
 
 
69
    <div metal:define-slot="content">
 
70
      Content.
 
71
    </div>
 
72
 
 
73
    <div class="footer">
 
74
      <span class="banner">
 
75
        <a href="http://www.bazaar-vcs.org/">
 
76
          <img tal:attributes="src python:tg.url('/static/images/bazaar-banner.png')" />
 
77
        </a>
 
78
      </span>
 
79
      <span class="banner">
 
80
        <a href="http://www.lag.net/loggerhead/">
 
81
          <img tal:attributes="src python:tg.url('/static/images/loggerhead-banner.png')" />
 
82
        </a>
 
83
      </span>
 
84
    </div>
64
85
  </body>
65
86
</html>