22fd419 Tranfer the hub edit mode to the widgets

Authored and Committed by abompard 6 years ago
49 files changed. 122 lines added. 142 lines removed.
hubs/templates/hubs.html
file modified
+2 -2
hubs/tests/test_widget_view.py
file added
+34
hubs/widgets/about/__init__.py
file modified
+3 -6
hubs/widgets/about/templates/root.htmlhubs/widgets/about/templates/about.html
file renamed
+0 -0
hubs/widgets/badges/__init__.py
file modified
+3 -6
hubs/widgets/badges/templates/root.htmlhubs/widgets/badges/templates/badges.html
file renamed
+0 -0
hubs/widgets/bugzilla/__init__.py
file modified
+3 -9
hubs/widgets/bugzilla/templates/root.htmlhubs/widgets/bugzilla/templates/bugzilla.html
file renamed
+0 -0
hubs/widgets/contact/__init__.py
file modified
+3 -6
hubs/widgets/contact/templates/root.htmlhubs/widgets/contact/templates/contact.html
file renamed
+0 -0
hubs/widgets/dummy/__init__.py
file modified
+3 -6
hubs/widgets/dummy/templates/root.htmlhubs/widgets/dummy/templates/dummy.html
file renamed
+0 -0
hubs/widgets/fedmsgstats/__init__.py
file modified
+3 -6
hubs/widgets/fedmsgstats/templates/root.htmlhubs/widgets/fedmsgstats/templates/fedmsgstats.html
file renamed
+0 -0
hubs/widgets/feed/__init__.py
file modified
+3 -6
hubs/widgets/feed/templates/root.htmlhubs/widgets/feed/templates/feed.html
file renamed
+0 -0
hubs/widgets/fhosted/__init__.py
file modified
+3 -6
hubs/widgets/fhosted/templates/root.htmlhubs/widgets/fhosted/templates/fhosted.html
file renamed
+0 -0
hubs/widgets/github_pr/__init__.py
file modified
+3 -6
hubs/widgets/github_pr/templates/root.htmlhubs/widgets/github_pr/templates/github_pr.html
file renamed
+0 -0
hubs/widgets/githubissues/__init__.py
file modified
+3 -6
hubs/widgets/githubissues/templates/root.htmlhubs/widgets/githubissues/templates/githubissues.html
file renamed
+0 -0
hubs/widgets/halp/templates/root.htmlhubs/widgets/halp/templates/halp.html
file renamed
+0 -0
hubs/widgets/halp/views.py
file modified
+2 -6
hubs/widgets/library/__init__.py
file modified
+3 -6
hubs/widgets/library/templates/root.htmlhubs/widgets/library/templates/library.html
file renamed
+0 -0
hubs/widgets/linechart/__init__.py
file modified
+3 -6
hubs/widgets/linechart/templates/root.htmlhubs/widgets/linechart/templates/linechart.html
file renamed
+0 -0
hubs/widgets/meetings/__init__.py
file modified
+3 -6
hubs/widgets/meetings/templates/root.htmlhubs/widgets/meetings/templates/meetings.html
file renamed
+0 -0
hubs/widgets/memberships/__init__.py
file modified
+3 -6
hubs/widgets/memberships/templates/root.htmlhubs/widgets/memberships/templates/memberships.html
file renamed
+0 -0
hubs/widgets/pagure_pr/__init__.py
file modified
+3 -6
hubs/widgets/pagure_pr/templates/root.htmlhubs/widgets/pagure_pr/templates/pagure_pr.html
file renamed
+0 -0
hubs/widgets/pagureissues/__init__.py
file modified
+3 -6
hubs/widgets/pagureissues/templates/root.htmlhubs/widgets/pagureissues/templates/pagureissues.html
file renamed
+0 -0
hubs/widgets/rules/__init__.py
file modified
+3 -6
hubs/widgets/rules/templates/root.htmlhubs/widgets/rules/templates/rules.html
file renamed
+0 -0
hubs/widgets/stats/__init__.py
file modified
+3 -6
hubs/widgets/stats/templates/root.htmlhubs/widgets/stats/templates/stats.html
file renamed
+0 -0
hubs/widgets/sticky/__init__.py
file modified
+3 -6
hubs/widgets/sticky/templates/root.htmlhubs/widgets/sticky/templates/sticky.html
file renamed
+0 -0
hubs/widgets/subscriptions/__init__.py
file modified
+3 -6
hubs/widgets/subscriptions/templates/root.htmlhubs/widgets/subscriptions/templates/subscriptions.html
file renamed
+1 -1
hubs/widgets/view.py
file modified
+15 -0
hubs/widgets/workflow/pendingacls.py
file modified
+3 -4
hubs/widgets/workflow/templates/pendingacls.html
file modified
+1 -1
hubs/widgets/workflow/templates/updates2stable.html
file modified
+1 -1
hubs/widgets/workflow/updates2stable.py
file modified
+3 -4
    Tranfer the hub edit mode to the widgets
    
    Some widgets display no chrome when there is no data. However, in edit
    mode, the chrome should be displayed anyway or the widget can't be
    configured, removed, or moved on the page.
    
    This change allows widgets to be informed of the display mode and
    display the panel chrome accordingly.
    
        
file modified
+2 -2
hubs/widgets/about/templates/root.html hubs/widgets/about/templates/about.html
file renamed
file was renamed with no change to the file
hubs/widgets/badges/templates/root.html hubs/widgets/badges/templates/badges.html
file renamed
file was renamed with no change to the file
hubs/widgets/bugzilla/templates/root.html hubs/widgets/bugzilla/templates/bugzilla.html
file renamed
file was renamed with no change to the file
hubs/widgets/contact/templates/root.html hubs/widgets/contact/templates/contact.html
file renamed
file was renamed with no change to the file
hubs/widgets/dummy/templates/root.html hubs/widgets/dummy/templates/dummy.html
file renamed
file was renamed with no change to the file
hubs/widgets/fedmsgstats/templates/root.html hubs/widgets/fedmsgstats/templates/fedmsgstats.html
file renamed
file was renamed with no change to the file
hubs/widgets/feed/templates/root.html hubs/widgets/feed/templates/feed.html
file renamed
file was renamed with no change to the file
hubs/widgets/fhosted/templates/root.html hubs/widgets/fhosted/templates/fhosted.html
file renamed
file was renamed with no change to the file
hubs/widgets/github_pr/templates/root.html hubs/widgets/github_pr/templates/github_pr.html
file renamed
file was renamed with no change to the file
hubs/widgets/githubissues/templates/root.html hubs/widgets/githubissues/templates/githubissues.html
file renamed
file was renamed with no change to the file
hubs/widgets/halp/templates/root.html hubs/widgets/halp/templates/halp.html
file renamed
file was renamed with no change to the file
file modified
+2 -6
hubs/widgets/library/templates/root.html hubs/widgets/library/templates/library.html
file renamed
file was renamed with no change to the file
hubs/widgets/linechart/templates/root.html hubs/widgets/linechart/templates/linechart.html
file renamed
file was renamed with no change to the file
hubs/widgets/meetings/templates/root.html hubs/widgets/meetings/templates/meetings.html
file renamed
file was renamed with no change to the file
hubs/widgets/memberships/templates/root.html hubs/widgets/memberships/templates/memberships.html
file renamed
file was renamed with no change to the file
hubs/widgets/pagure_pr/templates/root.html hubs/widgets/pagure_pr/templates/pagure_pr.html
file renamed
file was renamed with no change to the file
hubs/widgets/pagureissues/templates/root.html hubs/widgets/pagureissues/templates/pagureissues.html
file renamed
file was renamed with no change to the file
hubs/widgets/rules/templates/root.html hubs/widgets/rules/templates/rules.html
file renamed
file was renamed with no change to the file
hubs/widgets/stats/templates/root.html hubs/widgets/stats/templates/stats.html
file renamed
file was renamed with no change to the file
hubs/widgets/sticky/templates/root.html hubs/widgets/sticky/templates/sticky.html
file renamed
file was renamed with no change to the file
hubs/widgets/subscriptions/templates/root.html hubs/widgets/subscriptions/templates/subscriptions.html
file renamed
+1 -1
file modified
+15 -0