• 
      

    [WIP] Templating and CSS changes preparing to include a new subview in the draft review banner.

    Review Request #8002 — Created Feb. 26, 2016 and discarded

    Information

    Review Board
    master

    Reviewers

    Templating and CSS changes preparing to include a new subview in the draft review banner.
    
     
    Description From Last Updated

    Mixed tabs and spaces.

    brennie brennie

    Mixed tabs and spaces.

    brennie brennie

    This file is indendted with tabs and spaces.

    brennie brennie

    Trailing whitespace

    brennie brennie

    Mixed tabs and spaces.

    brennie brennie

    This should be indented two spaces, not two tabs.

    brennie brennie

    Can you fix the alignment here? This line should be on the same level as the one above it. The …

    imadueme imadueme

    Can you fix the alignment here too? (Maybe the mixed tabs and spaces issue came back?)

    imadueme imadueme

    Same thing. (Maybe the mixed tabs and spaces issue came back?)

    imadueme imadueme

    Trailing whitespace (came back?)

    imadueme imadueme

    Indent template items 4 spaces and have closing ] be on same level as line 5. This is how all …

    imadueme imadueme

    Same thing as the template above. Also there should be a blank line between these two templates (b/n line 11 …

    imadueme imadueme

    Space before {. (Super nitpicky I know, but, this is the issue I always get on my stuff :P).

    imadueme imadueme

    Indent 4 spaces in.

    imadueme imadueme

    Space before {

    imadueme imadueme

    Fix indentation. Spaces before {. Use single-quotes instad of double-quotes for strings in js. Space after comma before 2nd 'this'. …

    imadueme imadueme

    Space before {

    imadueme imadueme

    Do or do not. There is no try. (Remove the comment)

    imadueme imadueme

    Remove space before the 2nd 'this'.

    imadueme imadueme

    This is indented too much.

    imadueme imadueme

    Space before {. (Find all the others and fix them).

    imadueme imadueme

    Are you checking for exactly null? If so use !==. Otherwise an undefined might fail this (which is probably not …

    imadueme imadueme

    Fix indentations and use single quotes.

    imadueme imadueme

    Fix indentations and use single quotes.

    imadueme imadueme

    Reviewboard style is that variables should be defined with 1 var. For example: var furthest, curr, scroll;

    imadueme imadueme

    Mix tabs and spaces again?

    imadueme imadueme

    Fix indentations. Space before {. Last } should be on it's own line.

    imadueme imadueme

    All of this should be indented 1 more space in since you added a new div. You indented the closing …

    imadueme imadueme
    reviewbot
    1. Tool: Pyflakes
      Ignored Files:
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/css/pages/reviews.less
      
      
      
      Tool: PEP8 Style Checker
      Ignored Files:
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/css/pages/reviews.less
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/BannerDiffListView.js
          reviewboard/static/rb/js/views/draftReviewBannerView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/BannerDiffListView.js
          reviewboard/static/rb/js/views/draftReviewBannerView.js
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/js/views/draftReviewBannerView.js
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/js/views/draftReviewBannerView.js
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    brennie
    1. 
        
    2. Show all issues

      Mixed tabs and spaces.

    3. Show all issues

      Mixed tabs and spaces.

    4. Show all issues

      This file is indendted with tabs and spaces.

    5. Show all issues

      Trailing whitespace

    6. Show all issues

      Mixed tabs and spaces.

    7. Show all issues

      This should be indented two spaces, not two tabs.

    8. 
        
    SM
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    imadueme
    1. 
        
    2. Show all issues

      Can you fix the alignment here? This line should be on the same level as the one above it. The body of this block should only be indented 2 spaces in.

    3. Show all issues

      Can you fix the alignment here too? (Maybe the mixed tabs and spaces issue came back?)

    4. Show all issues

      Same thing. (Maybe the mixed tabs and spaces issue came back?)

    5. Show all issues

      Trailing whitespace (came back?)

    6. reviewboard/static/rb/js/views/bannerDiffListView.js (Diff revision 9)
       
       
       
       
       
       
       
       
      Show all issues

      Indent template items 4 spaces and have closing ] be on same level as line 5. This is how all templates in the codebase look. It should look like:

      difflist_template: _.template([
          '<div class=\"banner\">',
          '    Banner is over: <span id=\"bancontent\"></span>',
          '    <ul id=\"fileList">',
          '    </ul>',
          '</div>'
      ].join('')),'
      
    7. reviewboard/static/rb/js/views/bannerDiffListView.js (Diff revision 9)
       
       
       
       
       
       
      Show all issues

      Same thing as the template above. Also there should be a blank line between these two templates (b/n line 11 and 12).

    8. Show all issues

      Space before {. (Super nitpicky I know, but, this is the issue I always get on my stuff :P).

    9. Show all issues

      Indent 4 spaces in.

    10. Show all issues

      Space before {

    11. reviewboard/static/rb/js/views/bannerDiffListView.js (Diff revision 9)
       
       
       
       
       
       
      Show all issues

      Fix indentation. Spaces before {. Use single-quotes instad of double-quotes for strings in js. Space after comma before 2nd 'this'. Should look like:

      setCollection: function(collection) {
          collection.each(function (file) {
              $('ul#fileList').append(this._item_template(file.attributes));
          }, this);
      },
      
    12. Show all issues

      Space before {

    13. Show all issues

      Do or do not. There is no try. (Remove the comment)

      1. Though, is the use of a context variable there insane and unecessary? I think I'm using it to get it into the scope of the document ready function, but...

    14. Show all issues

      Remove space before the 2nd 'this'.

    15. Show all issues

      This is indented too much.

    16. Show all issues

      Space before {. (Find all the others and fix them).

    17. Show all issues

      Are you checking for exactly null? If so use !==. Otherwise an undefined might fail this (which is probably not a big deal I guess). Better yet use underscore: !(_.isNull(event.data.topmost()))

    18. reviewboard/static/rb/js/views/bannerDiffListView.js (Diff revision 9)
       
       
       
       
       
       
       
       
       
       
       
       
      Show all issues

      Fix indentations and use single quotes.

    19. reviewboard/static/rb/js/views/bannerDiffListView.js (Diff revision 9)
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
       
      Show all issues

      Fix indentations and use single quotes.

    20. Show all issues

      Reviewboard style is that variables should be defined with 1 var. For example:

      var furthest,
          curr,
          scroll;
      
    21. Show all issues

      Mix tabs and spaces again?

    22. Show all issues

      Fix indentations. Space before {. Last } should be on it's own line.

    23. reviewboard/templates/reviews/reviewable_base.html (Diff revision 9)
       
       
       
       
       
       
      Show all issues

      All of this should be indented 1 more space in since you added a new div. You indented the closing tag for that div correctly as reference. (Since this stuff is nested under the 'banner' div)

    24. 
        
    SM
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/reviewBoxView.js
          reviewboard/static/rb/js/views/bannerDraftNotice.js
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/reviewBoxView.js
          reviewboard/static/rb/js/views/bannerDraftNotice.js
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    SM
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/reviewBoxView.js
          reviewboard/static/rb/js/views/bannerDraftNotice.js
          reviewboard/static/rb/js/pages/views/reviewablePageView.js
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/staticbundles.py
      
      Ignored Files:
          reviewboard/static/rb/js/views/draftReviewBannerView.js
          reviewboard/static/rb/js/views/bannerDiffListView.js
          reviewboard/static/rb/css/pages/reviews.less
          reviewboard/templates/reviews/reviewable_base.html
          reviewboard/static/rb/js/views/reviewBoxView.js
          reviewboard/static/rb/js/views/bannerDraftNotice.js
          reviewboard/static/rb/js/pages/views/reviewablePageView.js
          reviewboard/static/rb/js/pages/views/diffViewerPageView.js
      
      
    2. 
        
    SM
    Review request changed
    Status:
    Discarded