~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/app/templates/base-layout-macros.pt

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-11-14 17:57:46 UTC
  • mfrom: (14266.1.4 banner-for-beta-features-2)
  • Revision ID: launchpad@pqm.canonical.com-20111114175746-uuzm69fvr7e3rwq5
[r=jcsackett][bug=888599] Infrastructure to show a banner about
 enabled beta features on a page;
 new property BugTaskSearchListingView.beta_features

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
  <metal:load-lavascript use-macro="context/@@+base-layout-macros/load-javascript" />
108
108
 
109
109
    <script type="text/javascript">
110
 
      LPS.use('base', 'node', 'oop', 'event', 'lp.bugs.bugtask_index',
111
 
                'lp.bugs.subscribers',
 
110
      LPS.use('base', 'node', 'oop', 'event', 'lp.app.beta_features',
 
111
              'lp.bugs.bugtask_index', 'lp.bugs.subscribers',
112
112
                'lp.code.branchmergeproposal.diff', 'lp.comments.hide',
113
113
                function(Y) {
114
114
          Y.on("domready", function () {
116
116
                  Y.lp.app.privacy.setup_privacy_notification();
117
117
                  Y.lp.app.privacy.display_privacy_notification();
118
118
              }
 
119
              Y.lp.app.beta_features.display_beta_notification();
119
120
          });
120
121
      });
121
122
    </script>