~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/templates/distroseries-details.pt

[r=gmb][bug=793547] Show multiple parent derivation information in
 the "Series information" portlet on DistroSeries:+index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
      </dd>
47
47
    </dl>
48
48
 
 
49
    <tal:derivation-not-enabled
 
50
        tal:condition="not:request/features/soyuz.derived_series_ui.enabled">
 
51
 
49
52
    <dl>
50
53
      <dt>Derives from:</dt>
51
54
      <dd>
60
63
      </dd>
61
64
    </dl>
62
65
 
63
 
    <dl tal:condition="request/features/soyuz.derived_series_ui.enabled"
64
 
        tal:define="all_child_series context/getDerivedSeries">
 
66
    </tal:derivation-not-enabled>
 
67
 
 
68
    <tal:derivation-enabled
 
69
        tal:condition="request/features/soyuz.derived_series_ui.enabled">
 
70
 
 
71
    <dl tal:define="parents context/getParentSeries">
 
72
      <dt>Derives from:</dt>
 
73
      <dd tal:condition="parents">
 
74
        <tal:parents repeat="parent parents">
 
75
          <a tal:attributes="href parent/fmt:url"
 
76
             tal:content="parent/named_version">
 
77
          </a><tal:comma condition="not:repeat/parent/end">, </tal:comma>
 
78
        </tal:parents>
 
79
      </dd>
 
80
      <dd tal:condition="not:parents">
 
81
        <tal:name replace="context/named_version"/> is not derived from
 
82
        another series.
 
83
      </dd>
 
84
    </dl>
 
85
 
 
86
    <dl tal:define="all_child_series context/getDerivedSeries">
65
87
      <dt>Derived series:</dt>
66
88
      <dd>
67
89
        <tal:per_child_series repeat="child_series all_child_series">
70
92
            tal:content="child_series/named_version" /><tal:comma
71
93
            condition="not: repeat/child_series/end">,</tal:comma>
72
94
        </tal:per_child_series>
73
 
       <tal:none condition="all_child_series">
 
95
        <tal:none condition="not:all_child_series">
74
96
          No derived series.
75
97
        </tal:none>
76
98
      </dd>
77
99
    </dl>
78
100
 
 
101
    </tal:derivation-enabled>
 
102
 
79
103
    <dl tal:define="sourcecount context/sourcecount">
80
104
      <dt>Source packages:</dt>
81
105
      <dd