Merge lp://staging/~intellectronica/launchpad/cve-templates-bug-423061 into lp://staging/launchpad
- cve-templates-bug-423061
- Merge into devel
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp://staging/~intellectronica/launchpad/cve-templates-bug-423061 |
Merge into: | lp://staging/launchpad |
Diff against target: | None lines |
To merge this branch: | bzr merge lp://staging/~intellectronica/launchpad/cve-templates-bug-423061 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Nelson (community) | ui | Approve | |
Abel Deuring (community) | code | Approve | |
Review via email:
|
Commit message
Description of the change
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Eleanor Berger (intellectronica) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Abel Deuring (adeuring) wrote : | # |
looks good. Please remove the the remaining <metal:
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Michael Nelson (michael.nelson) wrote : | # |
Hi Tom,
So we chatted about replacing the manual links that you've added with standard breadcrumbs on:
https:/
https:/
It's up to you - I think it would be good to do, but you said that these pages are very un-important and not worth the extra time investment - your call.
I would recommend completely removing the "CVE-2005-2737 details" portlet at:
https:/
AIUI, object details should never be in the side-bar, and there's only one piece of info there which is not already in the main content - the link to the details at cve.mitre.org. I think you should just move that link into the main content.
With that removed, ui=me.
<noodles775> intellectronica: I'm just looking at your branch now. You've added some manual links on a few of the pages that seem like they could really be part of normal breadcrumbs... what's the reason for not using standard breadcrumbs?
<intellectronica> noodles775: that's just the way they were before, so i didn't consider the option. i suppose it's not a bad idea, but i also don't want to invest much more time in these templates, since they are not very important
Preview Diff
1 | === modified file 'lib/lp/bugs/browser/cve.py' | |||
2 | --- lib/lp/bugs/browser/cve.py 2009-09-02 12:37:58 +0000 | |||
3 | +++ lib/lp/bugs/browser/cve.py 2009-09-07 19:43:17 +0000 | |||
4 | @@ -110,6 +110,8 @@ | |||
5 | 110 | 110 | ||
6 | 111 | page_title = label | 111 | page_title = label |
7 | 112 | 112 | ||
8 | 113 | heading = 'Remove links to bug reports' | ||
9 | 114 | |||
10 | 113 | 115 | ||
11 | 114 | class CveSetView: | 116 | class CveSetView: |
12 | 115 | 117 | ||
13 | 116 | 118 | ||
14 | === modified file 'lib/lp/bugs/templates/buglinktarget-unlinkbugs.pt' | |||
15 | --- lib/lp/bugs/templates/buglinktarget-unlinkbugs.pt 2009-07-17 17:59:07 +0000 | |||
16 | +++ lib/lp/bugs/templates/buglinktarget-unlinkbugs.pt 2009-09-07 19:43:17 +0000 | |||
17 | @@ -6,16 +6,10 @@ | |||
18 | 6 | lang="en" | 6 | lang="en" |
19 | 7 | dir="ltr" | 7 | dir="ltr" |
20 | 8 | metal:define-macro="master" | 8 | metal:define-macro="master" |
22 | 9 | metal:extend-macro="context/@@main_template/master"> | 9 | metal:extend-macro="view/macro:page/main_only"> |
23 | 10 | 10 | ||
24 | 11 | <body> | 11 | <body> |
25 | 12 | 12 | ||
26 | 13 | <metal:rightportlets fill-slot="portlets_two"> | ||
27 | 14 | <metal:slot define-slot="portlets_two"> | ||
28 | 15 | <div tal:replace="structure context/@@+portlet-bugs" /> | ||
29 | 16 | </metal:slot> | ||
30 | 17 | </metal:rightportlets> | ||
31 | 18 | |||
32 | 19 | <div metal:fill-slot="main"> | 13 | <div metal:fill-slot="main"> |
33 | 20 | <tal:nobugs condition="not:context/bugs"> | 14 | <tal:nobugs condition="not:context/bugs"> |
34 | 21 | <p class="informational message"> | 15 | <p class="informational message"> |
35 | @@ -33,11 +27,6 @@ | |||
36 | 33 | <tal:form condition="view/bugsWithPermission"> | 27 | <tal:form condition="view/bugsWithPermission"> |
37 | 34 | <div metal:use-macro="context/@@launchpad_form/form"> | 28 | <div metal:use-macro="context/@@launchpad_form/form"> |
38 | 35 | <metal:heading fill-slot="heading"> | 29 | <metal:heading fill-slot="heading"> |
39 | 36 | <metal:slot define-slot="heading"> | ||
40 | 37 | <div tal:content="structure context/fmt:link" /> | ||
41 | 38 | <h1 tal:condition="view/label" | ||
42 | 39 | tal:content="view/label">Heading from ZCML label="xxx"</h1> | ||
43 | 40 | </metal:slot> | ||
44 | 41 | </metal:heading> | 30 | </metal:heading> |
45 | 42 | 31 | ||
46 | 43 | <metal:description fill-slot="extra_info"> | 32 | <metal:description fill-slot="extra_info"> |
47 | 44 | 33 | ||
48 | === modified file 'lib/lp/bugs/templates/cve-index.pt' | |||
49 | --- lib/lp/bugs/templates/cve-index.pt 2009-07-17 17:59:07 +0000 | |||
50 | +++ lib/lp/bugs/templates/cve-index.pt 2009-09-07 13:38:16 +0000 | |||
51 | @@ -5,18 +5,14 @@ | |||
52 | 5 | xml:lang="en" | 5 | xml:lang="en" |
53 | 6 | lang="en" | 6 | lang="en" |
54 | 7 | dir="ltr" | 7 | dir="ltr" |
57 | 8 | metal:use-macro="context/@@main_template/master" | 8 | metal:use-macro="view/macro:page/main_side"> |
56 | 9 | > | ||
58 | 10 | <body> | 9 | <body> |
59 | 11 | 10 | ||
61 | 12 | <metal:leftportlets fill-slot="portlets_one"> | 11 | <div metal:fill-slot="side"> |
62 | 12 | <div tal:replace="structure context/@@+portlet-bugs" /> | ||
63 | 13 | <div tal:replace="structure context/@@+portlet-details" /> | 13 | <div tal:replace="structure context/@@+portlet-details" /> |
64 | 14 | <div tal:replace="structure context/@@+portlet-references" /> | 14 | <div tal:replace="structure context/@@+portlet-references" /> |
70 | 15 | </metal:leftportlets> | 15 | </div> |
66 | 16 | |||
67 | 17 | <metal:rightportlets fill-slot="portlets_two"> | ||
68 | 18 | <div tal:replace="structure context/@@+portlet-bugs" /> | ||
69 | 19 | </metal:rightportlets> | ||
71 | 20 | 16 | ||
72 | 21 | <div metal:fill-slot="main"> | 17 | <div metal:fill-slot="main"> |
73 | 22 | 18 | ||
74 | 23 | 19 | ||
75 | === modified file 'lib/lp/bugs/templates/cve-linkbug.pt' | |||
76 | --- lib/lp/bugs/templates/cve-linkbug.pt 2009-07-17 17:59:07 +0000 | |||
77 | +++ lib/lp/bugs/templates/cve-linkbug.pt 2009-09-07 13:44:43 +0000 | |||
78 | @@ -5,19 +5,11 @@ | |||
79 | 5 | xml:lang="en" | 5 | xml:lang="en" |
80 | 6 | lang="en" | 6 | lang="en" |
81 | 7 | dir="ltr" | 7 | dir="ltr" |
83 | 8 | metal:use-macro="context/@@main_template/master" | 8 | metal:use-macro="view/macro:page/main_only" |
84 | 9 | > | 9 | > |
85 | 10 | 10 | ||
86 | 11 | <body> | 11 | <body> |
87 | 12 | 12 | ||
88 | 13 | <metal:leftportlets fill-slot="portlets_one"> | ||
89 | 14 | <div tal:replace="structure context/@@+portlet-details" /> | ||
90 | 15 | </metal:leftportlets> | ||
91 | 16 | |||
92 | 17 | <metal:rightportlets fill-slot="portlets_two"> | ||
93 | 18 | <div tal:replace="structure context/@@+portlet-bugs" /> | ||
94 | 19 | </metal:rightportlets> | ||
95 | 20 | |||
96 | 21 | <div metal:fill-slot="main"> | 13 | <div metal:fill-slot="main"> |
97 | 22 | <div metal:use-macro="context/@@launchpad_form/form"> | 14 | <div metal:use-macro="context/@@launchpad_form/form"> |
98 | 23 | <metal:heading fill-slot="heading"> | 15 | <metal:heading fill-slot="heading"> |
99 | 24 | 16 | ||
100 | === modified file 'lib/lp/bugs/templates/cve-portlet-bugs2.pt' | |||
101 | --- lib/lp/bugs/templates/cve-portlet-bugs2.pt 2009-07-17 17:59:07 +0000 | |||
102 | +++ lib/lp/bugs/templates/cve-portlet-bugs2.pt 2009-09-07 13:38:16 +0000 | |||
103 | @@ -18,6 +18,15 @@ | |||
104 | 18 | 18 | ||
105 | 19 | <p tal:condition="not: links"><i>No related bugs.</i></p> | 19 | <p tal:condition="not: links"><i>No related bugs.</i></p> |
106 | 20 | </div> | 20 | </div> |
107 | 21 | |||
108 | 22 | <ul> | ||
109 | 23 | <li> | ||
110 | 24 | <a href="+linkbug" class="sprite add">Link to bug</a> | ||
111 | 25 | </li> | ||
112 | 26 | <li condition="context/bugs"> | ||
113 | 27 | <a href="+unlinkbug" class="sprite remove">Remove bug link</a> | ||
114 | 28 | </li> | ||
115 | 29 | </ul> | ||
116 | 21 | 30 | ||
117 | 22 | </div> | 31 | </div> |
118 | 23 | 32 | ||
119 | 24 | 33 | ||
120 | === modified file 'lib/lp/bugs/templates/cve-portlet-references.pt' | |||
121 | --- lib/lp/bugs/templates/cve-portlet-references.pt 2009-07-17 17:59:07 +0000 | |||
122 | +++ lib/lp/bugs/templates/cve-portlet-references.pt 2009-09-07 13:38:16 +0000 | |||
123 | @@ -8,7 +8,7 @@ | |||
124 | 8 | 8 | ||
125 | 9 | <div class="portletBody portletContent"> | 9 | <div class="portletBody portletContent"> |
126 | 10 | 10 | ||
128 | 11 | <ul> | 11 | <ul style="margin-left: 20px"> |
129 | 12 | <li class="webref" tal:repeat="ref context/references"> | 12 | <li class="webref" tal:repeat="ref context/references"> |
130 | 13 | <span tal:replace="ref/source">SOURCE</span>: | 13 | <span tal:replace="ref/source">SOURCE</span>: |
131 | 14 | <a tal:condition="ref/url" | 14 | <a tal:condition="ref/url" |
132 | 15 | 15 | ||
133 | === modified file 'lib/lp/bugs/templates/cve-unlinkbugs.pt' | |||
134 | --- lib/lp/bugs/templates/cve-unlinkbugs.pt 2009-07-17 17:59:07 +0000 | |||
135 | +++ lib/lp/bugs/templates/cve-unlinkbugs.pt 2009-09-07 19:43:17 +0000 | |||
136 | @@ -9,19 +9,17 @@ | |||
137 | 9 | > | 9 | > |
138 | 10 | 10 | ||
139 | 11 | <body> | 11 | <body> |
141 | 12 | <metal:heading fill-slot="heading"> | 12 | <div metal:fill-slot="extra_info" class="documentDescription"> |
142 | 13 | <div><a href="/bugs/cve">CVE reports</a>:</div> | 13 | <div><a href="/bugs/cve">CVE reports</a>:</div> |
143 | 14 | <div> | 14 | <div> |
144 | 15 | <a tal:attributes="href context/fmt:url">CVE | 15 | <a tal:attributes="href context/fmt:url">CVE |
145 | 16 | <tal:num replace="context/sequence">CVE-1234-5678</tal:num></a> | 16 | <tal:num replace="context/sequence">CVE-1234-5678</tal:num></a> |
146 | 17 | </div> | 17 | </div> |
154 | 18 | <h1>Remove links to bug reports</h1> | 18 | <div> |
155 | 19 | </metal:heading> | 19 | This will <em>remove</em> the link between |
156 | 20 | 20 | <span tal:replace="context/displayname">CVE-1999-1234</span> and | |
157 | 21 | <div metal:fill-slot="extra_info" class="documentDescription"> | 21 | the selected bug reports. |
158 | 22 | This will <em>remove</em> the link between | 22 | </div> |
152 | 23 | <span tal:replace="context/displayname">CVE-1999-1234</span> and | ||
153 | 24 | the selected bug reports. | ||
159 | 25 | </div> | 23 | </div> |
160 | 26 | </body> | 24 | </body> |
161 | 27 | </html> | 25 | </html> |
162 | 28 | 26 | ||
163 | === modified file 'lib/lp/bugs/templates/cveset-all.pt' | |||
164 | --- lib/lp/bugs/templates/cveset-all.pt 2009-07-17 17:59:07 +0000 | |||
165 | +++ lib/lp/bugs/templates/cveset-all.pt 2009-09-07 13:38:16 +0000 | |||
166 | @@ -6,7 +6,7 @@ | |||
167 | 6 | xml:lang="en" | 6 | xml:lang="en" |
168 | 7 | lang="en" | 7 | lang="en" |
169 | 8 | dir="ltr" | 8 | dir="ltr" |
171 | 9 | metal:use-macro="context/@@main_template/master" | 9 | metal:use-macro="view/macro:page/main_only" |
172 | 10 | i18n:domain="malone" | 10 | i18n:domain="malone" |
173 | 11 | > | 11 | > |
174 | 12 | <body> | 12 | <body> |
175 | @@ -15,13 +15,17 @@ | |||
176 | 15 | </metal:heading> | 15 | </metal:heading> |
177 | 16 | 16 | ||
178 | 17 | <metal:leftportlets fill-slot="portlets_one"> | 17 | <metal:leftportlets fill-slot="portlets_one"> |
180 | 18 | <div tal:replace="structure context/@@+portlet-details" /> | 18 | |
181 | 19 | </metal:leftportlets> | 19 | </metal:leftportlets> |
182 | 20 | 20 | ||
183 | 21 | <div metal:fill-slot="main" | 21 | <div metal:fill-slot="main" |
184 | 22 | tal:define="batchnav view/getAllBatched; | 22 | tal:define="batchnav view/getAllBatched; |
185 | 23 | batch batchnav/currentBatch"> | 23 | batch batchnav/currentBatch"> |
186 | 24 | 24 | ||
187 | 25 | <div style="margin-top: 1em; margin-bottom: 1em;"> | ||
188 | 26 | <a href="/bugs/cve">Search CVEs</a> | ||
189 | 27 | </div> | ||
190 | 28 | |||
191 | 25 | <tal:navigation replace="structure batchnav/@@+navigation-links-upper" /> | 29 | <tal:navigation replace="structure batchnav/@@+navigation-links-upper" /> |
192 | 26 | 30 | ||
193 | 27 | <div tal:repeat="cve batch" | 31 | <div tal:repeat="cve batch" |
194 | @@ -29,6 +33,8 @@ | |||
195 | 29 | 33 | ||
196 | 30 | <tal:navigation replace="structure batchnav/@@+navigation-links-lower" /> | 34 | <tal:navigation replace="structure batchnav/@@+navigation-links-lower" /> |
197 | 31 | 35 | ||
198 | 36 | <div tal:replace="structure context/@@+portlet-details" /> | ||
199 | 37 | |||
200 | 32 | </div> | 38 | </div> |
201 | 33 | </body> | 39 | </body> |
202 | 34 | </html> | 40 | </html> |
203 | 35 | 41 | ||
204 | === modified file 'lib/lp/bugs/templates/cveset-index.pt' | |||
205 | --- lib/lp/bugs/templates/cveset-index.pt 2009-07-17 17:59:07 +0000 | |||
206 | +++ lib/lp/bugs/templates/cveset-index.pt 2009-09-07 13:38:16 +0000 | |||
207 | @@ -6,20 +6,16 @@ | |||
208 | 6 | xml:lang="en" | 6 | xml:lang="en" |
209 | 7 | lang="en" | 7 | lang="en" |
210 | 8 | dir="ltr" | 8 | dir="ltr" |
212 | 9 | metal:use-macro="context/@@main_template/master" | 9 | metal:use-macro="view/macro:page/main_only" |
213 | 10 | i18n:domain="malone" | 10 | i18n:domain="malone" |
214 | 11 | > | 11 | > |
215 | 12 | <body> | 12 | <body> |
216 | 13 | 13 | ||
217 | 14 | <metal:leftportlets fill-slot="portlets_one"> | ||
218 | 15 | <div tal:replace="structure context/@@+portlet-details" /> | ||
219 | 16 | </metal:leftportlets> | ||
220 | 17 | |||
221 | 18 | <div metal:fill-slot="main"> | 14 | <div metal:fill-slot="main"> |
222 | 19 | 15 | ||
224 | 20 | <h1>Launchpad CVE tracker</h1> | 16 | <h1>Launchpad CVE tracker</h1> |
225 | 21 | 17 | ||
227 | 22 | <form method="post"> | 18 | <form method="post" style="margin-top: 1em; margin-bottom: 1em;"> |
228 | 23 | <div>Find CVEs by number or keywords:</div> | 19 | <div>Find CVEs by number or keywords:</div> |
229 | 24 | <div> | 20 | <div> |
230 | 25 | <input name="text" size="20" tal:attributes="value view/text" /> | 21 | <input name="text" size="20" tal:attributes="value view/text" /> |
231 | @@ -30,6 +26,10 @@ | |||
232 | 30 | </div> | 26 | </div> |
233 | 31 | </form> | 27 | </form> |
234 | 32 | 28 | ||
235 | 29 | <div style="margin-top: 1em; margin-bottom: 1em;"> | ||
236 | 30 | <a href="/bugs/cve/+all">Show all registered CVEs</a> | ||
237 | 31 | </div> | ||
238 | 32 | |||
239 | 33 | <p class="error message" tal:repeat="notice view/notices" | 33 | <p class="error message" tal:repeat="notice view/notices" |
240 | 34 | tal:content="notice"> | 34 | tal:content="notice"> |
241 | 35 | Message Goes Here | 35 | Message Goes Here |
242 | @@ -74,6 +74,8 @@ | |||
243 | 74 | tal:replace="structure cve/@@+listing-detailed" /> | 74 | tal:replace="structure cve/@@+listing-detailed" /> |
244 | 75 | </tal:not_searching> | 75 | </tal:not_searching> |
245 | 76 | 76 | ||
246 | 77 | <div tal:replace="structure context/@@+portlet-details" /> | ||
247 | 78 | |||
248 | 77 | </div> | 79 | </div> |
249 | 78 | </body> | 80 | </body> |
250 | 79 | </html> | 81 | </html> |
251 | 80 | 82 | ||
252 | === modified file 'lib/lp/bugs/templates/cveset-portlet-details.pt' | |||
253 | --- lib/lp/bugs/templates/cveset-portlet-details.pt 2009-07-17 17:59:07 +0000 | |||
254 | +++ lib/lp/bugs/templates/cveset-portlet-details.pt 2009-09-07 13:38:16 +0000 | |||
255 | @@ -3,8 +3,7 @@ | |||
256 | 3 | xmlns:metal="http://xml.zope.org/namespaces/metal" | 3 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
257 | 4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" | 4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
258 | 5 | class="portlet" id="portlet-details"> | 5 | class="portlet" id="portlet-details"> |
261 | 6 | <h2>About the CVE system</h2> | 6 | <div> |
260 | 7 | <div class="portletBody portletContent"> | ||
262 | 8 | Launchpad includes full support for | 7 | Launchpad includes full support for |
263 | 9 | <a href="http://cve.mitre.org/">the CVE framework</a>. | 8 | <a href="http://cve.mitre.org/">the CVE framework</a>. |
264 | 10 | We update the Launchpad CVE database daily to ensure it includes details of | 9 | We update the Launchpad CVE database daily to ensure it includes details of |
This branch converts some of the templates for working with CVE entries to the new LP 3.0 format.
To demo, visit:
https:/ /launchpad. dev/bugs/ cve /launchpad. dev/bugs/ cve/2005- 2737 /launchpad. dev/bugs/ cve/+all
https:/
https:/