~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-16 10:56:29 UTC
  • mto: This revision was merged to the branch mainline in revision 164.
  • Revision ID: michael.hudson@canonical.com-20080616105629-ea9dahymo4rl9cad
improvements borne out of the fires of contact with reality &c

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="main">
4
4
  <head>
5
5
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
6
 
    <meta name="generator"
7
 
          tal:attributes="content generator_string" />
8
 
 
9
 
    <title metal:define-slot="title"></title>
 
6
 
 
7
    <title metal:define-slot="title">
 
8
      Title.
 
9
    </title>
 
10
 
10
11
    <link rel="stylesheet"
11
 
          tal:attributes="href python:branch.static_url('/static/css/global.css')" />
12
 
    <tal:comment condition="nothing">
13
 
      <script type="text/javascript"
14
 
              src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"></script>
15
 
    </tal:comment>
16
 
    <script type="text/javascript">
17
 
      var global_path = <tal:block content="python:'\''+branch.url('/')+'\''" />;
18
 
      var collapsed_icon_path = <tal:block content="python:'\''+branch.static_url('/static/images/treeCollapsed.png')+'\''" />;
19
 
      var expanded_icon_path = <tal:block content="python:'\''+branch.static_url('/static/images/treeExpanded.png')+'\''" />;
20
 
    </script>
21
 
    <script type="text/javascript"
22
 
            tal:attributes="src python:branch.yui_url('yui/yui-min.js')"></script>
23
 
    <script type="text/javascript"
24
 
            tal:attributes="src python:branch.yui_url('oop/oop-min.js')"></script>
25
 
    <script type="text/javascript"
26
 
            tal:attributes="src python:branch.yui_url('event/event-min.js')"></script>
27
 
    <script type="text/javascript"
28
 
            tal:attributes="src python:branch.yui_url('attribute/attribute-min.js')"></script>
29
 
    <script type="text/javascript"
30
 
            tal:attributes="src python:branch.yui_url('base/base-min.js')"></script>
31
 
    <script type="text/javascript"
32
 
            tal:attributes="src python:branch.yui_url('dom/dom-min.js')"></script>
33
 
    <script type="text/javascript"
34
 
            tal:attributes="src python:branch.yui_url('node/node-min.js')"></script>
35
 
    <script type="text/javascript"
36
 
            tal:attributes="src python:branch.yui_url('anim/anim-min.js')"></script>
37
 
    <script type="text/javascript"
38
 
            tal:attributes="src python:branch.yui_url('io/io-base-min.js')"></script>
39
 
    <script type="text/javascript"
40
 
            tal:attributes="src python:branch.static_url('/static/javascript/custom.js')"></script>
 
12
          tal:attributes="href python:branch.static_url('/static/css/zptstyle.css')" />
 
13
 
41
14
    <metal:block metal:define-slot="header_extras" />
42
15
  </head>
43
16
 
44
 
<body>
45
 
    <!-- Loggerhead Content Area -->
46
 
 
47
 
      <tal:menu define="fileview_active fileview_active"
48
 
                replace="structure python:menu(branch, url, fileview_active)" />
49
 
      <div id="loggerheadCont">
50
 
 
51
 
        <div id="search_terms"></div>
52
 
 
53
 
        <h1 metal:define-slot="heading"></h1>
54
 
        <div metal:define-slot="content"></div>
55
 
 
56
 
        <p class="fl">Loggerhead <tal:version content="loggerhead_version" /> is a web-based interface for <a href="http://bazaar-vcs.org/">Bazaar</a> branches</p>
57
 
      </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:branch.static_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:branch.static_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:branch.static_url('/static/images/loggerhead-banner.png')" />
 
82
        </a>
 
83
      </span>
 
84
    </div>
58
85
  </body>
59
86
</html>