• 
      

    Fix display of "popup" pages in the admin site.

    Review Request #8717 — Created Feb. 6, 2017 and submitted

    Information

    Review Board
    release-3.0.x
    7278049...

    Reviewers

    The admin site has a feature where it can show a pop-up window for some
    actions, mostly selecting or creating related objects. We had some logic in the
    admin_actions tag that was supposed to hide the sidebar in these windows, but
    that logic was broken (since it was ORing two mutually-exclusive tests). I
    fixed it to never even call admin_actions for pop-up windows, but that
    exposed some issues with the CSS.

    This change fixes all of that. The pop-up windows still show the header, which
    I'm undecided on.

    Opened a pop-up from the admin site and saw that it no longer showed the
    sidebar.


    Description From Last Updated

    I feel like the header is unnecessary. You probably shouldn't be using the popup window for anything other than adding/selecting …

    brenniebrennie

    You can combine these.

    chipx86chipx86
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/admin/templatetags/rbadmintags.py
      
      Ignored Files:
          reviewboard/templates/admin/widgets/w-actions.html
          reviewboard/static/rb/css/pages/admin.less
          reviewboard/templates/admin/base_site.html
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/admin/templatetags/rbadmintags.py
      
      Ignored Files:
          reviewboard/templates/admin/widgets/w-actions.html
          reviewboard/static/rb/css/pages/admin.less
          reviewboard/templates/admin/base_site.html
      
      
    2. 
        
    chipx86
    1. 
        
    2. reviewboard/templates/admin/base_site.html (Diff revision 1)
       
       
       
      Show all issues

      You can combine these.

    3. 
        
    david
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/admin/templatetags/rbadmintags.py
      
      Ignored Files:
          reviewboard/templates/admin/widgets/w-actions.html
          reviewboard/static/rb/css/pages/admin.less
          reviewboard/templates/admin/base_site.html
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/admin/templatetags/rbadmintags.py
      
      Ignored Files:
          reviewboard/templates/admin/widgets/w-actions.html
          reviewboard/static/rb/css/pages/admin.less
          reviewboard/templates/admin/base_site.html
      
      
    2. 
        
    brennie
    1. 
        
    2. Show all issues

      I feel like the header is unnecessary. You probably shouldn't be using the popup window for anything other than adding/selecting a model.

      If we keep the header, maybe we should slim it down to only show Review Board and the version string (in another change)? Just an idea.

      1. Yeah, I agree, but it's looking like that might be really hard to do with the current templates.

    3. 
        
    david
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/admin/templatetags/rbadmintags.py
      
      Ignored Files:
          reviewboard/templates/admin/widgets/w-actions.html
          reviewboard/static/rb/css/pages/admin.less
          reviewboard/templates/admin/base_site.html
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/admin/templatetags/rbadmintags.py
      
      Ignored Files:
          reviewboard/templates/admin/widgets/w-actions.html
          reviewboard/static/rb/css/pages/admin.less
          reviewboard/templates/admin/base_site.html
      
      
    2. 
        
    brennie
    1. Ship It!
    2. 
        
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (cf3cd50)