Merge lp:~bac/launchpad/bug-429248 into lp:launchpad

Proposed by Brad Crittenden on 2010-08-25
Status: Merged
Approved by: Curtis Hovey on 2010-08-25
Approved revision: no longer in the source branch.
Merged at revision: 11445
Proposed branch: lp:~bac/launchpad/bug-429248
Merge into: lp:launchpad
Diff against target: 115 lines (+22/-12)
2 files modified
lib/lp/registry/stories/product/xx-product-files.txt (+20/-10)
lib/lp/registry/templates/product-index.pt (+2/-2)
To merge this branch: bzr merge lp:~bac/launchpad/bug-429248
Reviewer Review Type Date Requested Status
Curtis Hovey (community) code 2010-08-25 Approve on 2010-08-25
Review via email: mp+33684@code.launchpad.net

Commit Message

Fix text describing a project's lack of file downloads.

Description of the Change

= Summary =

Text describing the status of a project's download files was confusing.

== Proposed fix ==

Change the text.

== Pre-implementation notes ==

Chat with Curtis.

== Implementation details ==

As above.

== Tests ==

bin/test -vvt xx-product-files.txt

== Demo and Q/A ==

https://launchpad.dev/applets

= Launchpad lint =

Checking for conflicts and issues in changed files.

Linting changed files:

I'll fix these.

  lib/lp/registry/templates/product-index.pt
  lib/lp/registry/stories/product/xx-product-files.txt

./lib/lp/registry/stories/product/xx-product-files.txt
       1: narrative uses a moin header.
      20: want exceeds 78 characters.
      36: want exceeds 78 characters.
      45: narrative uses a moin header.
     110: narrative uses a moin header.
     159: narrative uses a moin header.
     380: narrative uses a moin header.
     435: narrative uses a moin header.
     474: narrative uses a moin header.

To post a comment you must log in.
Curtis Hovey (sinzui) wrote :

Thanks for the text fix.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/registry/stories/product/xx-product-files.txt'
2--- lib/lp/registry/stories/product/xx-product-files.txt 2010-08-02 18:59:44 +0000
3+++ lib/lp/registry/stories/product/xx-product-files.txt 2010-08-25 19:42:49 +0000
4@@ -1,4 +1,6 @@
5-= Downloadable Files =
6+==================
7+Downloadable Files
8+==================
9
10 Launchpad can show a product's downloadable files, by series, with
11 links to each.
12@@ -9,7 +11,7 @@
13 >>> content = find_tag_by_id(anon_browser.contents, 'downloads')
14 >>> print extract_text(content)
15 Downloads
16- APTonCD does not have any download files.
17+ APTonCD does not have any download files registered with Launchpad.
18
19 Any user can see a project with a release without files has no downlaod files.
20
21@@ -17,7 +19,8 @@
22 >>> content = find_tag_by_id(anon_browser.contents, 'downloads')
23 >>> print extract_text(content)
24 Downloads
25- Mozilla Thunderbird does not have any download files.
26+ Mozilla Thunderbird does not have any download files
27+ registered with Launchpad.
28
29 Any user can see a projects download files organised by series. For each
30 series, the owner sees a heading, summary, table of files, and links to each
31@@ -33,7 +36,8 @@
32 >>> anon_browser.getLink('All downloads').click()
33 >>> print extract_text(
34 ... find_tag_by_id(anon_browser.contents, 'project-downloads'))
35- 0.9.2 (One (secure) Tree Hill) release from the trunk series released 2004-10-15
36+ 0.9.2 (One (secure) Tree Hill) release from the trunk series
37+ released 2004-10-15
38 Release information
39 Release notes:
40 Security fixes
41@@ -42,7 +46,8 @@
42 firefox_0.9.2.orig.tar.gz (md5) -
43
44
45-== Deletion is only for the privileged ==
46+Deletion is only for the privileged
47+===================================
48
49 As an anonymous user the files for download should be shown, but not
50 the delete options.
51@@ -107,7 +112,8 @@
52 LookupError: label 'Delete Files'
53
54
55-== The download file layout ==
56+The download file layout
57+========================
58
59 When a project has a series with one or more releases, an option to
60 add download files for each release in that series is presented.
61@@ -156,7 +162,8 @@
62 Add download file to the 1.0 series for release: 1.0.0
63
64
65-== Adding new files ==
66+Adding new files
67+================
68
69 In order to add new files, the admin can click on the link release
70 link provided under the series name, or navigate to the product
71@@ -377,7 +384,8 @@
72 foo.txt
73
74
75-== Downloading and deleting files ==
76+Downloading and deleting files
77+==============================
78
79 Download one of the files.
80
81@@ -432,7 +440,8 @@
82 foo.txt
83
84
85-== Listing on the ProductRelease page ==
86+Listing on the ProductRelease page
87+==================================
88
89 Download files are shown on the page for the product release.
90 Non-administrators do not have the delete option.
91@@ -471,7 +480,8 @@
92 [u'1 file has been deleted.']
93
94
95-== Scheme redirection ==
96+Scheme redirection
97+==================
98
99 Files may be downloaded over http or https with the URL for the
100 librarian file constructed based upon the scheme of the original
101
102=== modified file 'lib/lp/registry/templates/product-index.pt'
103--- lib/lp/registry/templates/product-index.pt 2010-08-13 21:30:24 +0000
104+++ lib/lp/registry/templates/product-index.pt 2010-08-25 19:42:49 +0000
105@@ -258,8 +258,8 @@
106 tal:attributes="href link/fmt:url;
107 title link/summary">All downloads</a>
108 <tal:no-files condition="not: release">
109- <tal:name replace="context/displayname" /> does not have any
110- download files.
111+ <tal:name replace="context/displayname" />
112+ does not have any download files registered with Launchpad.
113 </tal:no-files>
114 </p>
115 </div>