~dylanmccall/harvest/gsoc-client-stuff

« back to all changes in this revision

Viewing changes to harvest/templates/base.html

  • Committer: Dylan McCall
  • Date: 2010-07-04 20:31:12 UTC
  • Revision ID: dylanmccall@gmail.com-20100704203112-njszrm9j4gn0grq0
Added timer middleware, which adds a request header saying how long a page took to generate.

Added a little hack in harvest.js to display that header after loading new results with XHR.

Made some more text translatable in harvest/templates/base.html.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
<div id="header">
28
28
        <span id="pagetitle">
29
29
                <img id="sitelogo" src="{{ MEDIA_URL }}img/logo_humanity-search-icon.png" />
30
 
                <h1 id="sitename">Harvest</h1>
 
30
                <h1 id="sitename">{% trans "Harvest" %}</h1>
31
31
                {% if harvest_version_name %}<span id="releasename">{{harvest_version_name}}</span>{% endif %}
32
32
        </span>
33
33
        
56
56
        {% endblock %}
57
57
</div>
58
58
 
59
 
{#
60
 
 
61
 
 #}
62
 
 
63
59
<div id="footer">
64
60
        <div id="footnav"><nav>
65
 
                <a class="title" href="" tabindex="2">Harvest</a> <a href="" tabindex="2">Help</a> <a href="" tabindex="2">Bugs</a> <a href="" tabindex="2">Code</a>
 
61
                <a class="title" href="{% url home %}" tabindex="2">{% trans "Harvest" %}</a> <a href="http://answers.launchpad.net/harvest" tabindex="2">{% trans "Help" %}</a> <a href="http://bugs.launchpad.net/harvest" tabindex="2">{% trans "Bugs" %}</a> <a href="http://launchpad.net/harvest" tabindex="2">{% trans "Code" %}</a>
66
62
        </nav></div>
67
63
        
68
64
        <div id="smallprint" tabindex="3">
73
69
                </span>
74
70
                
75
71
                <span id="techdetails">
76
 
                Generated in ###TODO###
77
 
                <br />{% trans "Harvest" %} {{ harvest_version }}
 
72
                {% trans "Harvest" %} {{ harvest_version }}
78
73
                {% if translator_credits %}
79
74
                <br />{% trans "Translated by:" %} {{ translator_credits|join:", " }}
80
75
                {% endif %}
 
76
                <br /><span id="requeststats"></span>
81
77
                </span>
82
78
                
83
79
                <div style="clear:both"></div>