~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/templates/bug-portlet-subscribers.pt

Merge db-devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  id="portlet-subscribers"
7
7
  metal:define-macro="custom"
8
8
>
9
 
  <div class="section" tal:define="context_menu context/menu:context"
10
 
       metal:define-slot="heading">
11
 
    <div
12
 
      tal:attributes="class view/current_user_subscription_class"
13
 
      tal:content="structure context_menu/subscription/render" />
14
 
    <div id="sub-unsub-spinner">Subscribing...</div>
 
9
  <h2>Other bug subscribers</h2>
 
10
  <div tal:define="context_menu context/menu:context">
15
11
    <div tal:content="structure context_menu/addsubscriber/render" />
16
 
    <div tal:condition="request/features/malone.advanced-structural-subscriptions.enabled"
17
 
        tal:content="structure context_menu/editsubscriptions/render" />
18
 
    <tal:show-mute condition="
19
 
        request/features/malone.advanced-subscriptions.enabled">
20
 
      <div tal:attributes="class view/current_user_mute_class"
21
 
           id="mute-link-container">
22
 
        <span tal:replace="structure context_menu/mute_subscription/render"/>
23
 
        <a target="help" class="sprite maybe mute-help"
24
 
            href="/+help/subscription-mute.html"
25
 
          >&nbsp;<span class="invisible-link">Mute help</span></a>
26
 
        <div style="float: left" id="mute-unmute-spinner">Unmuting...</div>
27
 
      </div>
28
 
    </tal:show-mute>
29
12
  </div>
30
13
  <a id="subscribers-ids-link"
31
14
     tal:define="bug context/bug|context"
37
20
       style="text-align: center; display: none">
38
21
    <img src="/@@/spinner" />
39
22
  </div>
40
 
  <script type="text/javascript">
41
 
    LPS.use('io-base', 'node', 'lp.bugs.bugtask_index.portlets', function(Y) {
42
 
        // Must be done inline here to ensure the load event fires.
43
 
        // This is a work around for a YUI3 issue with event handling.
44
 
        var subscription_link = Y.one('.menu-link-subscription');
45
 
        var subscription_link_handler;
46
 
        if (subscription_link) {
47
 
            subscription_link_handler = subscription_link.on(
48
 
                'click', function(e) { e.preventDefault(); });
49
 
        }
50
 
 
51
 
        Y.on('domready', function() {
52
 
            if (Y.lp.bugs.bugtask_index.portlets) {
53
 
                Y.lp.bugs.bugtask_index.portlets.load_subscribers_portlet(
54
 
                    subscription_link, subscription_link_handler);
55
 
            }
56
 
        });
57
 
    });
58
 
  </script>
59
23
</div>