~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="view/macro:page/main_side"
  i18n:domain="malone"
>

<metal:block fill-slot="head_epilogue">
  <meta condition="not: view/should_show_bug_information"
        name="robots" content="noindex,nofollow" />

    <tal:comment replace="nothing">
        The javascript below should only be executed (or indeed even exist)
        when the bug subscription links exist. They don't exist on the
        advanced search form, so we don't show the js for that case.
    </tal:comment>
    <script type="text/javascript"
      tal:condition="not: view/shouldShowAdvancedForm">
    LPS.use('lp.registry.structural_subscription', function(Y) {
        Y.on('domready', function() {
            Y.lp.registry.structural_subscription.setup(
                {content_box: "#structural-subscription-content-box"});
        });
    });
  </script>
  <metal:activate-listing use-macro="context/@@+bugtask-macros-tableview/activate_listing_js" />
</metal:block>

<body>

  <div metal:fill-slot="main">
    <div
      tal:condition="not: view/bug_tracking_usage/enumvalue:LAUNCHPAD"
      class="top-portlet">
      <p id="no-malone"
        tal:condition="view/bug_tracking_usage/enumvalue:UNKNOWN">
        <strong tal:condition="view/can_have_external_bugtracker">
          <tal:displayname replace="context/displayname" />
          must be configured in order for Launchpad to forward bugs to
          the project's developers.
        </strong>
        <strong tal:condition="not: view/can_have_external_bugtracker">
          <tal:displayname replace="context/displayname" />
          does not use Launchpad for bug tracking.
        </strong>
      </p>

      <p tal:condition="view/external_bugtracker"
        id="bugtracker">
        <strong>Bugs are tracked in
          <tal:bugtracker replace="structure view/bugtracker" />.
        </strong>
      </p>

      <a id="getting-started-help"
         class="sprite maybe"
         href="https://help.launchpad.net/Bugs">
        Getting started with bug tracking in Launchpad</a>.

      <p tal:condition="context/required:launchpad.Edit"
         tal:define="configure_bugtracker context/menu:overview/configure_bugtracker | nothing"
         id="no-malone-edit"
         >
        <a tal:condition="configure_bugtracker"
          tal:replace="structure configure_bugtracker/fmt:link"/>
        <a class="sprite edit"
          tal:condition="not: configure_bugtracker"
          tal:attributes="href string:${context/fmt:url/+edit}">
          Enable bug tracking.</a>
      </p>
    </div>
    <div tal:condition="not: view/bug_tracking_usage/enumvalue:UNKNOWN"
         class="top-portlet">
      <tal:is_project_group condition="view/_projectContext">
        <tal:block condition="view/required:launchpad.Edit">
          <p tal:condition="not: context/products" class="warning message">
            There are no projects registered for
            <span tal:replace="context/displayname">project displayname</span>.
            <br />
            You need to <a href="+newproduct">register another project that is
            part of <tal:project replace="context/displayname" /></a> or
            associate an existing project with it.
          </p>
        </tal:block>

        <tal:has_products condition="context/products">
          <tal:no_bug_info condition="not:view/should_show_bug_information">
            <p tal:define="name context/displayname">
              <strong>
                You cannot report a bug for <tal:name replace="name"/> as none
                of the projects within the group use Launchpad for bug
                tracking.  Please check the individual projects for details of
                where bugs are reported.
              </strong>
            </p>
            <p id="getting-started-help">
              <a class="sprite maybe"
                 href="https://help.launchpad.net/Bugs">Getting started
                with bug tracking in Launchpad</a>.
            </p>
          </tal:no_bug_info>
        </tal:has_products>
      </tal:is_project_group>

        <tal:do_not_show_advanced_form
          condition="not: view/shouldShowAdvancedForm">
          <div tal:define="batch_navigator view/search">
            <div metal:use-macro="context/@@+bugtarget-macros-search/simple-search-form"></div>
            <tal:buglisting content="structure batch_navigator/@@+table-view" />
          </div>
        </tal:do_not_show_advanced_form>

        <tal:show_advanced_form condition="view/shouldShowAdvancedForm">
          <metal:advanced_form
             use-macro="context/@@+bugtask-macros-tableview/advanced_search_form" />
        </tal:show_advanced_form>

      <div class="yui-u">
        <div id="structural-subscription-content-box"></div>
      </div>

    </div>
  </div>

  <tal:side metal:fill-slot="side">
    <div id="bug-portlets" tal:condition="view/should_show_bug_information">
      <div id="involvement" class="portlet">
        <ul class="involvement">
          <li style="border: 0">
            <a href="+filebug" class="menu-link-filebug sprite bugs">
              Report a bug
            </a>
          </li>
          <li tal:condition="view/addquestion_url">
            <a tal:attributes="href view/addquestion_url"
               class="menu-link-filebug sprite answers">
              Ask a question
            </a>
          </li>
        </ul>

      </div>
      <div class="portlet" tal:condition="view/show_config_portlet">
        <tal:bugtracker
           define="link context/menu:bugs/configure_bugtracker|nothing"
           condition="link">
          <ul tal:condition="link/enabled"
              style="padding-top: 1em">
            <li>
              <a tal:replace="structure link/fmt:link" />
            </li>
          </ul>
        </tal:bugtracker>
        <dl tal:define="bug_supervisor context/bug_supervisor"
            id="bug-supervisor">
          <dt>Bug supervisor:</dt>
          <dd>
            <tal:none condition="not:bug_supervisor">None set</tal:none>
            <a tal:condition="bug_supervisor"
               tal:replace="structure bug_supervisor/fmt:link">Bob Johnson</a>
            <tal:edit-bug-supervisor
                condition="context/menu:bugs/bugsupervisor|nothing">
              <a tal:define="link context/menu:bugs/bugsupervisor"
                 tal:condition="link/enabled"
                 tal:attributes="href link/url; title link/text">
                <img tal:attributes="alt link/text" src="/@@/edit" />
              </a>
            </tal:edit-bug-supervisor>
          </dd>
        </dl>
        <dl tal:define="securitycontact context/security_contact">
          <dt id="bug-security">Security contact:</dt>
          <dd>
            <tal:none condition="not:securitycontact">None set</tal:none>
            <a tal:condition="securitycontact"
               tal:replace="structure securitycontact/fmt:link">
              Billy Anderson
            </a>
            <tal:edit-securitycontact
                condition="context/menu:bugs/securitycontact|nothing">
              <a tal:define="link context/menu:bugs/securitycontact"
                 tal:condition="link/enabled"
                 tal:attributes="href link/url; title link/text">
                <img tal:attributes="alt link/text" src="/@@/edit" />
              </a>
            </tal:edit-securitycontact>
          </dd>
        </dl>
      </div>
      <tal:menu replace="structure view/@@+related-pages" />
      <tal:do_not_show_portlets_advanced_form
        condition="not: view/shouldShowAdvancedForm">
        <tal:block content="structure context/@@+portlet-bugfilters" />
        <tal:block
            content="structure context/@@+portlet-publishing-details | nothing"/>
        <tal:block content="structure context/@@+portlet-bugtags"/>
        <tal:releasecriticalbugs
            tal:condition="view/shouldShowReleaseCriticalPortlet"
            tal:content="structure context/@@+portlet-bugtasklist-seriesbugs" />
        <tal:milestonecriticalbugs
          tal:condition="view/shouldShowReleaseCriticalPortlet"
          tal:content="structure context/@@+portlet-bugtasklist-milestonebugs" />
       </tal:do_not_show_portlets_advanced_form>
    </div>
  </tal:side>
</body>

</html>