~launchpad-pqm/launchpad/devel

5127.2.1 by Curtis Hovey
Fixed namespaces and bad markup in o.* and p.*
1
<html
2
  xmlns="http://www.w3.org/1999/xhtml"
3
  xmlns:tal="http://xml.zope.org/namespaces/tal"
4
  xmlns:metal="http://xml.zope.org/namespaces/metal"
5
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
9224.2.1 by Guilherme Salgado
Change product-files.pt to use the main_only macro
6
  metal:use-macro="view/macro:page/main_only"
5127.2.1 by Curtis Hovey
Fixed namespaces and bad markup in o.* and p.*
7
  i18n:domain="launchpad"
8
>
4195.1.1 by Brad Crittenden
Implement upload and management of files associated with a product release.
9
10154.5.1 by Brad Crittenden
Adding batching to +downloads. Checkpoint.
10
<h1 metal:fill-slot="heading">Download project files</h1>
9224.2.1 by Guilherme Salgado
Change product-files.pt to use the main_only macro
11
4195.1.1 by Brad Crittenden
Implement upload and management of files associated with a product release.
12
<body>
13
14
<div metal:fill-slot="main"
15
     tal:define="has_edit context/required:launchpad.Edit">
16
9224.2.7 by Guilherme Salgado
Fix failing test and revert some changes that accidentally changed the behaviour of the page
17
  <p tal:condition="view/has_download_files">
9742.5.3 by Brad Crittenden
Checkpoint before new UI experiment. Incorporates new feedback from Martin.
18
    <a
8717.1.2 by matthew.revell at canonical
Removed previous gpg --verify help from bottom of the page and added further tal conditions to the intro text.
19
    href="/+help/verify-downloads.html" target="help">How do I verify a
9742.5.3 by Brad Crittenden
Checkpoint before new UI experiment. Incorporates new feedback from Martin.
20
    download?</a>
9224.2.7 by Guilherme Salgado
Fix failing test and revert some changes that accidentally changed the behaviour of the page
21
  </p>
22
  <br />
23
24
  <form id="project-downloads" method="POST"
25
        tal:attributes="action request/URL">
26
27
    <div tal:condition="not: view/has_download_files" id="no-downloads">
28
      <p>No download files exist for this project.</p>
29
      <p>You might want to check
9285.1.1 by Brad Crittenden
Fixed a typo of 'Bazaar'.
30
        <a tal:attributes="href context/fmt:url:code">this project's Bazaar
9224.2.7 by Guilherme Salgado
Fix failing test and revert some changes that accidentally changed the behaviour of the page
31
          branches</a>
32
        <span tal:condition="context/homepageurl">or its
33
          <a tal:attributes="href context/homepageurl">home page</a>
34
        </span>.
35
      </p>
9224.2.4 by Guilherme Salgado
fix bugs 419742 and 275677
36
    </div>
10154.5.15 by Brad Crittenden
Fixed css for better display of batching. Cleaned up page template.
37
38
    <div class="freeform-batch">
10154.5.13 by Brad Crittenden
Add nav links to the page.
39
    <tal:batch condition="view/has_download_files"
11049.2.8 by Curtis Hovey
Switch package cache rules to private to satisfy tests (p3a are but public).
40
               define="batch view/series_and_releases_batch">
10154.5.13 by Brad Crittenden
Add nav links to the page.
41
      <tal:multipage tal:condition="batch/has_multiple_pages">
42
        <tal:navigation
43
           replace="structure batch/@@+navigation-links-upper"/>
44
      </tal:multipage>
45
      <tal:repeat_current_batch repeat="batch_item batch/currentBatch">
46
        <div tal:define="series batch_item/series;
47
                         release batch_item/release"
48
             tal:attributes="id series/name/fmt:css-id/series-">
49
50
          <tal:seriesfilesexist condition="series/has_release_files">
51
            <div tal:condition="not: repeat/batch_item/start" class="portlet-border" />
52
53
            <tal:releasefilesexist condition="release/files">
54
55
              <div class="top-portlet">
12521.2.7 by Curtis Hovey
Removed style attributes from headings.
56
                <h3>
10154.5.13 by Brad Crittenden
Add nav links to the page.
57
                  <a tal:attributes="href release/fmt:url">
58
                    <span tal:replace="release/name_with_codename" /> release</a>
59
                  from the
60
                  <a tal:attributes="href series/fmt:url"
61
                     tal:content="series/name">name</a> series released
62
                  <span
63
                     tal:attributes="title release/datereleased/fmt:datetime"
64
                     tal:content="release/datereleased/fmt:approximatedate" />
12521.2.7 by Curtis Hovey
Removed style attributes from headings.
65
                </h3>
10154.5.13 by Brad Crittenden
Add nav links to the page.
66
67
                <div tal:attributes="id release/version/fmt:css-id/release-information-"
68
                     tal:condition="python: release.release_notes or release.changelog">
69
70
                  <fieldset class="collapsible collapsed" style="padding: 0px;">
71
                    <legend>Release information</legend>
72
73
                    <div tal:condition="release/release_notes">
74
                      <strong>Release notes:</strong>
75
                      <div style="margin-bottom: 0px;"
76
                           tal:attributes="id release/version/fmt:css-id/release-notes-"
77
                           tal:define="notes release/release_notes/fmt:shorten/800"
78
                           tal:content="structure notes/fmt:text-to-html">
79
                        ProductRelease.release_notes
80
                      </div>
81
                    </div>
82
83
                    <div tal:condition="release/changelog">
84
                      <strong>Changelog:</strong>
85
                      <div style="margin-bottom: 0px;"
86
                           tal:attributes="id release/version/fmt:css-id/changelog-"
87
                           tal:content="structure release/changelog/fmt:obfuscate-email/fmt:text-to-html">
88
                        ProductRelease.changelog.
89
                      </div>
90
                  </div>
91
                  </fieldset>
92
                </div>
93
                <div>
94
                  <table class="listing" style="margin-top: 1em;">
95
                    <thead>
96
                      <tr>
97
                        <th width="35%">File</th>
98
                        <th width="45%">Description</th>
99
                        <th>Downloads</th>
100
                        <th tal:condition="has_edit">Delete</th>
101
                      </tr>
102
                    </thead>
103
                    <tbody>
104
                      <tr tal:repeat="file release/files">
105
                        <tal:define-vars
106
                           tal:define="checkbox_index string:${repeat/batch_item/index}_${repeat/file/index}">
107
                          <tal:release-file
108
                             metal:use-macro="file/@@+macros/detailed_display" />
109
                        </tal:define-vars>
110
                      </tr>
111
                    </tbody>
112
                    <tfoot tal:condition="release/total_downloads">
113
                      <tr>
114
                        <th colspan="2" style="padding-top: 1em; text-align: right;">
115
                          Total downloads:
116
                        </th>
117
                        <td style="border: none; text-align: center;">
118
                          <span tal:replace="release/total_downloads/fmt:intcomma" />
119
                        </td>
120
                        <td style="border: none;"
121
                            tal:condition="has_edit" />
122
                      </tr>
123
                    </tfoot>
124
                  </table>
125
                </div>
126
                <div tal:condition="not: release/total_downloads"
10154.5.15 by Brad Crittenden
Fixed css for better display of batching. Cleaned up page template.
127
                     style="margin-bottom: 1em;" />
10154.5.13 by Brad Crittenden
Add nav links to the page.
128
129
                <tal:linkexists
130
                   define="link release/menu:context/add_file"
131
                   condition="link/enabled">
132
                  <ul style="float: right; margin-top: 1em;">
133
                    <li>
134
                      <a tal:replace="structure link/fmt:link" />
9772.4.1 by Brad Crittenden
Cleaned up the template to remove extra vertical whitespace
135
                  </li>
10154.5.13 by Brad Crittenden
Add nav links to the page.
136
                  </ul>
137
                </tal:linkexists>
138
              </div>
139
            </tal:releasefilesexist>
140
141
            <br />
142
          </tal:seriesfilesexist>
143
144
        </div>
145
      </tal:repeat_current_batch>
146
      <tal:multipage condition="batch/has_multiple_pages">
147
        <tal:navigation
148
           replace="structure batch/@@+navigation-links-lower"/>
149
      </tal:multipage>
150
    </tal:batch>
10154.5.15 by Brad Crittenden
Fixed css for better display of batching. Cleaned up page template.
151
    </div>
10154.5.5 by Brad Crittenden
Add div around admin links with an id for isolation.
152
    <div id="admin-links">
10154.5.15 by Brad Crittenden
Fixed css for better display of batching. Cleaned up page template.
153
      <tal:series repeat="series view/sorted_series_list">
10154.5.5 by Brad Crittenden
Add div around admin links with an id for isolation.
154
        <tal:releases condition="series/releases">
155
          <p tal:condition="has_edit" class="add-files">
156
            Add download file to the
157
            <a tal:attributes="href series/fmt:url"
158
               tal:content="series/name">name</a> series for release:
159
            <tal:release repeat="release series/releases">
160
              <a tal:attributes="href string:${series/name}/${release/version}/+adddownloadfile"
161
                 tal:content="release/version"
162
                 >version</a><tal:comma condition="not:repeat/release/end">,</tal:comma>
163
            </tal:release>
164
          </p>
165
        </tal:releases>
10154.5.15 by Brad Crittenden
Fixed css for better display of batching. Cleaned up page template.
166
      </tal:series>
10154.5.2 by Brad Crittenden
Batching for +download
167
    </div>
9224.2.7 by Guilherme Salgado
Fix failing test and revert some changes that accidentally changed the behaviour of the page
168
    <input tal:condition="python: has_edit and view.has_download_files"
169
        type="submit"
170
        name="delete_files"
171
        value="Delete Files" />
5157.1.1 by Brad Crittenden
Fixed multiple Delete Files button problem and removed unnecessary portlets.
172
9224.2.7 by Guilherme Salgado
Fix failing test and revert some changes that accidentally changed the behaviour of the page
173
  </form>
4195.1.1 by Brad Crittenden
Implement upload and management of files associated with a product release.
174
</div>
175
</body>
10154.5.2 by Brad Crittenden
Batching for +download
176
</html>