~ubuntu-branches/ubuntu/vivid/namebench/vivid

« back to all changes in this revision

Viewing changes to templates/html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Miguel Landaeta
  • Date: 2010-01-27 19:49:17 UTC
  • Revision ID: james.westby@ubuntu.com-20100127194917-1ssrtuje4zabmonl
Tags: upstream-1.1+dfsg
ImportĀ upstreamĀ versionĀ 1.1+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
3
<head>
 
4
  <title>namebench: {{ timestamp }}</title>
 
5
  <style type="text/css">
 
6
    {% include "style.css" %}
 
7
  </style>
 
8
</head>
 
9
<body>
 
10
 
 
11
<div id="container">
 
12
<div id="big_summary" class="greybox">
 
13
        In this test, <strong>{% if best.ip == system_primary %}Your current primary DNS server{% else %}{{ best.name }}{% endif %}</strong> is
 
14
        <h1>{{ "%0.0f"|format(comparison.percent) }}% <span id="sumverb">Faster</span></h1>
 
15
        than {% if comparison.ns.ip == system_primary %}your current primary DNS server{% else %}{{ comparison.ns.name }}{% endif %}
 
16
</div>
 
17
 
 
18
<div id="recommended_config" class="greybox">
 
19
        <h4>Recommended configuration (fastest + nearest)</h4>
 
20
        <table>
 
21
        {% for ns in recommended %}
 
22
        <tr>
 
23
          <td>{% if loop.index == 1 %}Primary{% elif loop.index == 2 %}Secondary{% else %}Tertiary{% endif %} Server</td>
 
24
    <td><div class="ip">{{ ns.ip }}</div></td><td class="rec_name">{% if ns.name != ns.ip %}{{ ns.name }}{% endif %}</td>
 
25
        </tr>
 
26
{% endfor %}
 
27
  </table>
 
28
</div>
 
29
 
 
30
 
 
31
<h2>Tested DNS Servers</h2>
 
32
 
 
33
<div id="nsdetails">
 
34
<table id="nstable">
 
35
<thead>
 
36
<tr>
 
37
  <td nowrap="nowrap">IP</td>
 
38
  <td nowrap="nowrap">Descr.</td>
 
39
  <td nowrap="nowrap">Hostname</td>
 
40
  <td nowrap="nowrap">Avg (ms)</td>
 
41
        <td nowrap="nowrap">Min</td>
 
42
        <td nowrap="nowrap">Max</td>
 
43
  <td nowrap="nowrap">Err</td>
 
44
  <td nowrap="nowrap">NoAns</td>
 
45
  <td>Notes</td>
 
46
</tr>
 
47
</thead>
 
48
{# (ns, overall_average, run_averages, fastest, slowest, failure_count, nx_count) #}
 
49
{% for row in nameserver_details %}
 
50
<tr class="{% if row.0.disabled %}disabled{% else %}normal{{ loop.cycle(' odd ', ' even')}}{% endif %}{% if row.0.system_position == 0 %} primary_row{% endif %}{% if row.0.is_error_prone %} unhealthy_host{% endif %}">
 
51
  <td>{{ row.0.ip }}</td>
 
52
  <td>{{ row.0.name }}</td>
 
53
  <td>{{ row.0.hostname }}</td>
 
54
  <td>{{ "%0.2f"|format(row.1) }}</td>
 
55
  <td>{{ "%0.2f"|format(row.3) }}</td>
 
56
  <td>{{ "%0.2f"|format(row.4) }}</td>
 
57
  <td {% if row.5 != 0 %}class="error_count"{% endif %}>{{ row.5 }}</td>
 
58
  <td>{{ row.6 }}</td>
 
59
  <td>
 
60
  {% if row.0.notes %}
 
61
    <ul class="warnings">
 
62
      {% for note_data in row.0.notes %}
 
63
                <li>
 
64
        {% if note_data.1 %}<a href="{{ note_data.1|e }}">{% endif %}
 
65
                {{ note_data.0|e }}
 
66
            {% if note_data.1 %}</a>{% endif %}
 
67
            </li>
 
68
      {% endfor %}
 
69
        </ul>
 
70
  {% endif %}
 
71
  </td>
 
72
</tr>
 
73
{% endfor %}
 
74
</table>
 
75
</div>
 
76
 
 
77
 
 
78
<h2>Graphs</h2>
 
79
 
 
80
<div id="graphs" class="section">
 
81
<h2>Mean Response Duration</h2>
 
82
<img src="{{ mean_duration_url }}" alt="Mean Duration Graph" />
 
83
 
 
84
<h3>Fastest Individual Response Duration</h3>
 
85
<img src="{{ min_duration_url }}" alt="Fastest Response Graph" />
 
86
 
 
87
<h3>Response Distribution Chart (First 200ms)</h3>
 
88
 
 
89
<img src="{{ distribution_url_200 }}" alt="Response Distribution Graph (first 200ms)" />
 
90
 
 
91
<h3>Response Distribution Chart (Full)</h3>
 
92
 
 
93
<img src="{{ distribution_url }}" alt="Response Distribution Graph (full)" />
 
94
</div>
 
95
 
 
96
{% if csv_link %}
 
97
<h2>Query Details</h2>
 
98
 
 
99
<div id="details" class="section">
 
100
View the details in <a href="{{ csv_link }}">Comma Separated Values (csv)</a> format.
 
101
</div>
 
102
{% endif %}
 
103
 
 
104
{% if config %}
 
105
<h2>Configuration</h2>
 
106
 
 
107
 
 
108
<div id="config" class="section">
 
109
<table id="configtable">
 
110
        <thead><tr><td>Name</td><td>Value</td></tr></thead>
 
111
        {% for item in config %}
 
112
          <tr><td>{{ item.0 }}</td><td>{{ item.1 }}</td></tr>
 
113
        {% endfor %}
 
114
</table>
 
115
</div>
 
116
{% endif %}
 
117
</div>
 
118
</body>
 
119
</html>
 
120