~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/templates/distributionmirror-macros.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-07-01 14:40:36 UTC
  • mfrom: (13303.8.3 table-headings-728187)
  • Revision ID: launchpad@pqm.canonical.com-20110701144036-8eerjzvqyl72x6px
[r=benji][bug=728187] On mirror pages: fixed table headings to be
        consistent with other tables in LP,
        removed redundant inline styles and replaced some with external CSS and
        fixed bottom table lines length.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
  <table class="listing" id="mirrors_list">
17
17
  <tbody>
18
18
    <tal:country_and_mirrors repeat="country_and_mirrors mirrors_by_country">
19
 
      <tr class="highlight">
20
 
        <th colspan="2" style="text-align: left"
 
19
      <tr class="head">
 
20
        <th colspan="2" 
21
21
            tal:content="country_and_mirrors/country" />
22
 
        <th style="text-align: left"
23
 
            tal:content="country_and_mirrors/throughput"/>
24
 
        <th style="text-align: left" tal:condition="show_mirror_type">
 
22
        <th tal:content="country_and_mirrors/throughput"/>
 
23
        <th tal:condition="show_mirror_type">
25
24
          Type
26
25
        </th>
27
 
        <th style="text-align: left"
28
 
            tal:define="mirror_count country_and_mirrors/number">
 
26
        <th tal:define="mirror_count country_and_mirrors/number">
29
27
          <tal:count replace="mirror_count" />
30
28
          <span tal:condition="python:mirror_count == 1">mirror</span>
31
29
          <span tal:condition="python:mirror_count != 1">mirrors</span>
59
57
        Include a blank row after the last entry of a country to provide
60
58
        vertical spacing to separate the next country.
61
59
      </tal:comment>
62
 
      <tr class="lesser">
63
 
        <td>&nbsp;</td>
 
60
      <tr class="section-break">
 
61
        <td colspan="5" />
64
62
      </tr>
65
63
 
66
64
    </tal:country_and_mirrors>
67
 
    <tr class="highlight">
68
 
      <th colspan="5" style="text-align: left; font-weight: bold;">Total</th>
 
65
    <tr class="head">
 
66
      <th colspan="5" >Total</th>
69
67
    </tr>
70
68
    <tr>
71
69
      <td colspan="2" />
72
 
      <td style="text-align: left; font-weight: bold;"
73
 
          tal:content="total_throughput" />
 
70
      <td tal:content="total_throughput" />
74
71
      <td tal:condition="show_mirror_type"></td>
75
 
      <td style="text-align: left; font-weight: bold;">
 
72
      <td>
76
73
          <tal:count replace="total_mirror_count" />
77
74
          <span tal:condition="python:total_mirror_count == 1">mirror</span>
78
75
          <span tal:condition="python:total_mirror_count != 1">mirrors</span>