~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
    </div>
181
181
  </div>
182
182
 
183
 
  <div class="yui-g" tal:condition="view/pending_diff">
184
 
    <div class="pending-update" id="diff-pending-update">
185
 
      <h3>Updating diff...</h3>
186
 
      <p>
187
 
        An updated diff will be available in a few minutes.  Reload to see the
188
 
        changes.
189
 
      </p>
190
 
    </div>
191
 
  </div>
192
 
  <div id="review-diff" tal:condition="view/preview_diff">
193
 
    <h2>Preview Diff</h2>
194
 
    <div tal:replace="structure context/@@++diff"/>
 
183
  <div id="diff-area">
 
184
    <div class="yui-g" tal:condition="view/pending_diff">
 
185
      <div class="pending-update" id="diff-pending-update">
 
186
        <h3>Updating diff...</h3>
 
187
        <p>
 
188
          An updated diff will be available in a few minutes. Reload to see the
 
189
          changes.
 
190
        </p>
 
191
      </div>
 
192
    </div>
 
193
    <div id="review-diff" tal:condition="view/preview_diff">
 
194
      <h2>Preview Diff</h2>
 
195
      <div class="diff-content">
 
196
        <div tal:replace="structure context/@@++diff"/>
 
197
      </div>
 
198
    </div>
195
199
  </div>
196
200
 
197
201
<tal:script
201
205
  <!--
202
206
  LPS.use('io-base', 'lp.code.branchmergeproposal.reviewcomment',
203
207
          'lp.code.branchmergeproposal.status', 'lp.app.comment',
204
 
          'lp.app.widgets.expander', 'lp.code.branch.revisionexpander', function(Y) {
 
208
          'lp.code.branchmergeproposal.updater', 'lp.app.widgets.expander',
 
209
          'lp.code.branch.revisionexpander', function(Y) {
205
210
 
206
211
    Y.on('load', function() {
207
212
        var logged_in = LP.links['me'] !== undefined;
219
224
        Y.lp.code.branchmergeproposal.reviewcomment.connect_links();
220
225
        (new Y.lp.code.branchmergeproposal.reviewcomment.NumberToggle()
221
226
            ).render();
 
227
 
 
228
        if (Y.Lang.isValue(LP.cache.new_mp_diff_event)) {
 
229
            var updater = new Y.lp.code.branchmergeproposal.updater.UpdaterWidget(
 
230
                {srcNode: Y.one('#diff-area')});
 
231
            Y.on(LP.cache.new_mp_diff_event, updater.update, updater);
 
232
            updater.on(updater.NAME + '.updated', function() {
 
233
                (new Y.lp.code.branchmergeproposal.reviewcomment.NumberToggle()
 
234
                    ).render();
 
235
            });
 
236
        }
 
237
 
222
238
      }, window);
223
239
 
224
240
    Y.on('domready', function() {