~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templates/macros.pt

score one for the memory profiling we did at pycon: store the "where merged"
information in small tuples, not small sets.
this makes the 'whole history' cache for a launchpad branch take up about 15%
less RAM.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" metal:define-macro="main">
 
4
  <head>
 
5
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
 
6
 
 
7
    <title metal:define-slot="title"></title>
 
8
    <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>
 
39
    <metal:block metal:define-slot="header_extras" />
 
40
  </head>
 
41
 
 
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>
 
64
  </body>
 
65
</html>