~launchpad-pqm/launchpad/devel

4939.2.3 by Curtis Hovey
Added namespaces to bug* templates and fixed markup.
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"
9315.2.1 by Abel Deuring
buglisting-default.pt converted to 3.0 layout
6
  metal:use-macro="view/macro:page/main_side"
4939.2.3 by Curtis Hovey
Added namespaces to bug* templates and fixed markup.
7
  i18n:domain="malone"
3119.1.2 by Matthew Paul Thomas
finish headings; fix pagetests
8
>
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
9
10
<metal:block fill-slot="head_epilogue">
11
  <meta condition="not: view/should_show_bug_information"
12
        name="robots" content="noindex,nofollow" />
13261.3.2 by j.c.sackett
Updated template to not execute struct subscriptions when on advanced bug search (which does not have the link).
13
13261.3.5 by j.c.sackett
Comment fixes from review.
14
    <tal:comment replace="nothing">
15
        The javascript below should only be executed (or indeed even exist)
16
        when the bug subscription links exist. They don't exist on the
17
        advanced search form, so we don't show the js for that case.
18
    </tal:comment>
13261.3.2 by j.c.sackett
Updated template to not execute struct subscriptions when on advanced bug search (which does not have the link).
19
    <script type="text/javascript"
20
      tal:condition="not: view/shouldShowAdvancedForm">
14128.6.7 by Deryck Hodge
Hide the new buglisting js behind a feature flag.
21
    LPS.use('lp.registry.structural_subscription', function(Y) {
12393.30.7 by Brad Crittenden
Support new structural subscriptions for IProjectGroup
22
        Y.on('domready', function() {
13261.3.1 by j.c.sackett
Drive by fix of a var assignment just begging for a collision down the road.
23
            Y.lp.registry.structural_subscription.setup(
24
                {content_box: "#structural-subscription-content-box"});
14128.6.7 by Deryck Hodge
Hide the new buglisting js behind a feature flag.
25
        });
26
    });
27
  </script>
14382.1.4 by Aaron Bentley
Fake merge of devel into person-bug-listings.
28
  <metal:activate-listing use-macro="context/@@+bugtask-macros-tableview/activate_listing_js" />
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
29
</metal:block>
30
31
<body>
4508.3.17 by Graham Binns
Moved notification boxes in templates
32
9315.2.1 by Abel Deuring
buglisting-default.pt converted to 3.0 layout
33
  <div metal:fill-slot="main">
14443.1.1 by William Grant
Add the full external/unknown handling from +bugs-index to +bugs.
34
    <div
35
      tal:condition="not: view/bug_tracking_usage/enumvalue:LAUNCHPAD"
36
      class="top-portlet">
37
      <p id="no-malone"
38
        tal:condition="view/bug_tracking_usage/enumvalue:UNKNOWN">
39
        <strong tal:condition="view/can_have_external_bugtracker">
40
          <tal:displayname replace="context/displayname" />
41
          must be configured in order for Launchpad to forward bugs to
42
          the project's developers.
43
        </strong>
44
        <strong tal:condition="not: view/can_have_external_bugtracker">
45
          <tal:displayname replace="context/displayname" />
46
          does not use Launchpad for bug tracking.
47
        </strong>
48
      </p>
49
50
      <p tal:condition="view/external_bugtracker"
51
        id="bugtracker">
52
        <strong>Bugs are tracked in
53
          <tal:bugtracker replace="structure view/bugtracker" />.
54
        </strong>
55
      </p>
56
14443.1.4 by William Grant
Add ID to getting started link for tests.
57
      <a id="getting-started-help"
58
         class="sprite maybe"
59
         href="https://help.launchpad.net/Bugs">
14443.1.1 by William Grant
Add the full external/unknown handling from +bugs-index to +bugs.
60
        Getting started with bug tracking in Launchpad</a>.
61
62
      <p tal:condition="context/required:launchpad.Edit"
63
         tal:define="configure_bugtracker context/menu:overview/configure_bugtracker | nothing"
64
         id="no-malone-edit"
65
         >
66
        <a tal:condition="configure_bugtracker"
67
          tal:replace="structure configure_bugtracker/fmt:link"/>
68
        <a class="sprite edit"
69
          tal:condition="not: configure_bugtracker"
70
          tal:attributes="href string:${context/fmt:url/+edit}">
71
          Enable bug tracking.</a>
72
      </p>
73
    </div>
11664.3.2 by Edwin Grubbs
IService adapters and disable Report Bug button and bug listing in buglisting-default.pt for objects that do not use LP.
74
    <div tal:condition="not: view/bug_tracking_usage/enumvalue:UNKNOWN"
11664.3.1 by Edwin Grubbs
Disable Report-Bug button.
75
         class="top-portlet">
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
76
      <tal:is_project_group condition="view/_projectContext">
4508.3.17 by Graham Binns
Moved notification boxes in templates
77
        <tal:block condition="view/required:launchpad.Edit">
78
          <p tal:condition="not: context/products" class="warning message">
79
            There are no projects registered for
80
            <span tal:replace="context/displayname">project displayname</span>.
81
            <br />
82
            You need to <a href="+newproduct">register another project that is
4508.3.31 by Graham Binns
Fixed a typo in the buglisting template
83
            part of <tal:project replace="context/displayname" /></a> or
4508.3.21 by Graham Binns
Minor changes per Kiko's instructions
84
            associate an existing project with it.
4508.3.17 by Graham Binns
Moved notification boxes in templates
85
          </p>
86
        </tal:block>
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
87
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
88
        <tal:has_products condition="context/products">
11655.1.9 by Brad Crittenden
Add help link for configuring bugs
89
          <tal:no_bug_info condition="not:view/should_show_bug_information">
90
            <p tal:define="name context/displayname">
91
              <strong>
92
                You cannot report a bug for <tal:name replace="name"/> as none
93
                of the projects within the group use Launchpad for bug
94
                tracking.  Please check the individual projects for details of
95
                where bugs are reported.
96
              </strong>
97
            </p>
98
            <p id="getting-started-help">
99
              <a class="sprite maybe"
100
                 href="https://help.launchpad.net/Bugs">Getting started
101
                with bug tracking in Launchpad</a>.
102
            </p>
103
          </tal:no_bug_info>
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
104
        </tal:has_products>
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
105
      </tal:is_project_group>
106
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
107
        <tal:do_not_show_advanced_form
108
          condition="not: view/shouldShowAdvancedForm">
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
109
          <div tal:define="batch_navigator view/search">
110
            <div metal:use-macro="context/@@+bugtarget-macros-search/simple-search-form"></div>
111
            <tal:buglisting content="structure batch_navigator/@@+table-view" />
112
          </div>
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
113
        </tal:do_not_show_advanced_form>
114
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
115
        <tal:show_advanced_form condition="view/shouldShowAdvancedForm">
116
          <metal:advanced_form
117
             use-macro="context/@@+bugtask-macros-tableview/advanced_search_form" />
118
        </tal:show_advanced_form>
119
12393.30.7 by Brad Crittenden
Support new structural subscriptions for IProjectGroup
120
      <div class="yui-u">
121
        <div id="structural-subscription-content-box"></div>
122
      </div>
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
123
124
    </div>
11664.3.2 by Edwin Grubbs
IService adapters and disable Report Bug button and bug listing in buglisting-default.pt for objects that do not use LP.
125
  </div>
11655.1.12 by Brad Crittenden
Merged substantial changes to buglisting-default.pt
126
9315.2.1 by Abel Deuring
buglisting-default.pt converted to 3.0 layout
127
  <tal:side metal:fill-slot="side">
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
128
    <div id="bug-portlets" tal:condition="view/should_show_bug_information">
14421.1.1 by Aaron Bentley
Port involvement from bugtarget-bugs.
129
      <div id="involvement" class="portlet">
130
        <ul class="involvement">
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
131
          <li style="border: 0">
132
            <a href="+filebug" class="menu-link-filebug sprite bugs">
133
              Report a bug
134
            </a>
135
          </li>
14422.1.6 by Aaron Bentley
Update from review.
136
          <li tal:condition="view/addquestion_url">
14421.1.1 by Aaron Bentley
Port involvement from bugtarget-bugs.
137
            <a tal:attributes="href view/addquestion_url"
138
               class="menu-link-filebug sprite answers">
139
              Ask a question
140
            </a>
141
          </li>
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
142
        </ul>
14421.1.2 by Aaron Bentley
Polish bug tracker config portlet.
143
144
      </div>
145
      <div class="portlet" tal:condition="view/show_config_portlet">
14421.1.1 by Aaron Bentley
Port involvement from bugtarget-bugs.
146
        <tal:bugtracker
147
           define="link context/menu:bugs/configure_bugtracker|nothing"
148
           condition="link">
149
          <ul tal:condition="link/enabled"
150
              style="padding-top: 1em">
151
            <li>
152
              <a tal:replace="structure link/fmt:link" />
153
            </li>
154
          </ul>
155
        </tal:bugtracker>
156
        <dl tal:define="bug_supervisor context/bug_supervisor"
157
            id="bug-supervisor">
158
          <dt>Bug supervisor:</dt>
159
          <dd>
160
            <tal:none condition="not:bug_supervisor">None set</tal:none>
161
            <a tal:condition="bug_supervisor"
162
               tal:replace="structure bug_supervisor/fmt:link">Bob Johnson</a>
163
            <tal:edit-bug-supervisor
164
                condition="context/menu:bugs/bugsupervisor|nothing">
165
              <a tal:define="link context/menu:bugs/bugsupervisor"
166
                 tal:condition="link/enabled"
167
                 tal:attributes="href link/url; title link/text">
168
                <img tal:attributes="alt link/text" src="/@@/edit" />
169
              </a>
170
            </tal:edit-bug-supervisor>
171
          </dd>
172
        </dl>
173
        <dl tal:define="securitycontact context/security_contact">
174
          <dt id="bug-security">Security contact:</dt>
175
          <dd>
176
            <tal:none condition="not:securitycontact">None set</tal:none>
177
            <a tal:condition="securitycontact"
178
               tal:replace="structure securitycontact/fmt:link">
179
              Billy Anderson
180
            </a>
181
            <tal:edit-securitycontact
182
                condition="context/menu:bugs/securitycontact|nothing">
183
              <a tal:define="link context/menu:bugs/securitycontact"
184
                 tal:condition="link/enabled"
185
                 tal:attributes="href link/url; title link/text">
186
                <img tal:attributes="alt link/text" src="/@@/edit" />
187
              </a>
188
            </tal:edit-securitycontact>
189
          </dd>
190
        </dl>
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
191
      </div>
192
      <tal:menu replace="structure view/@@+related-pages" />
193
      <tal:do_not_show_portlets_advanced_form
194
        condition="not: view/shouldShowAdvancedForm">
195
        <tal:block content="structure context/@@+portlet-bugfilters" />
196
        <tal:block
197
            content="structure context/@@+portlet-publishing-details | nothing"/>
198
        <tal:block content="structure context/@@+portlet-bugtags"/>
199
        <tal:releasecriticalbugs
200
            tal:condition="view/shouldShowReleaseCriticalPortlet"
201
            tal:content="structure context/@@+portlet-bugtasklist-seriesbugs" />
202
        <tal:milestonecriticalbugs
9315.2.1 by Abel Deuring
buglisting-default.pt converted to 3.0 layout
203
          tal:condition="view/shouldShowReleaseCriticalPortlet"
11655.1.1 by Brad Crittenden
Do not show bug information on a project group page with no projects that use Launchpad.
204
          tal:content="structure context/@@+portlet-bugtasklist-milestonebugs" />
205
       </tal:do_not_show_portlets_advanced_form>
206
    </div>
9315.2.1 by Abel Deuring
buglisting-default.pt converted to 3.0 layout
207
  </tal:side>
2749 by Canonical.com Patch Queue Manager
r=salgado. first go at pre-defined bug listings. this merge also includes mpt's bug-listings-love, r=bjornt for that one.
208
</body>
209
210
</html>