~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/macros.pt

  • Committer: Robert Collins
  • Date: 2012-02-02 05:07:53 UTC
  • mfrom: (464.1.1 mod-wsgi)
  • Revision ID: robertc@robertcollins.net-20120202050753-2d8f8r6m24lglbz5
    - Add a script and documentation for running under mod_wsgi.
      (Stuart Colville, Toshio Kuratomi)

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