~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/code/templates/branch-index.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-08-04 19:57:38 UTC
  • mfrom: (13599.3.6 global-privacy-ribbon)
  • Revision ID: launchpad@pqm.canonical.com-20110804195738-2j45crssly6eubq6
[r=sinzui][bug=298152] Moves the privacy ribbon template code into
 the base-layout, so that is now active and available on all private contexts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    });
52
52
  "/>
53
53
 
54
 
  <tal:if condition="request/features/bugs.private_notification.enabled">
55
 
  <script>
56
 
      LPS.use('base', 'node', 'lp.app.privacy', function(Y) {
57
 
          Y.on("domready", function () {
58
 
              if (Y.one(document.body).hasClass('private')) {
59
 
                  var config = {
60
 
                      notification_text: 'This is a private branch',
61
 
                      hidden: true
62
 
                  };
63
 
                  Y.lp.app.privacy.setup_privacy_notification(config);
64
 
                  Y.lp.app.privacy.display_privacy_notification(true);
65
 
              }
66
 
          });
67
 
      });
68
 
  </script>
69
 
  </tal:if>
70
 
 
71
54
</metal:block>
72
55
 
73
56
<body>