-
Notifications
You must be signed in to change notification settings - Fork 33
Add: Allow simple version management commands from the page tree indicator drop down menus #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #295 +/- ##
=======================================
Coverage 85.17% 85.17%
=======================================
Files 23 24 +1
Lines 843 931 +88
Branches 118 141 +23
=======================================
+ Hits 718 793 +75
- Misses 100 108 +8
- Partials 25 30 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Add: Patch edit pagecontent only for draft versions
Add: Revert button for unpublished versions
This pull request introduces 1 alert when merging 500f79f into e6a33ea - view on LGTM.com new alerts:
|
Like the look of this. Will have to try it out 👍 |
@marksweb Only works together with django-cms/django-cms#7426 ( |
Add: Delete draft menu entry for pagecontents tree
This pull request introduces 1 alert when merging bfcb5d9 into 84c063d - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. It looks like GitHub code scanning with CodeQL is already set up for this repo, so no further action is needed 🚀. For more information, please check out our post on the GitHub blog. |
version.check_modify(request.user) | ||
except ConditionFailed as e: | ||
self.message_user(request, force_str(e), messages.ERROR) | ||
return HttpResponseForbidden(force_str(e)) |
Check warning
Code scanning / CodeQL
Information exposure through an exception
This pull request introduces 2 alerts when merging 1311e81 into 84c063d - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. It looks like GitHub code scanning with CodeQL is already set up for this repo, so no further action is needed 🚀. For more information, please check out our post on the GitHub blog. |
This pull request introduces 1 alert when merging 4a029e2 into 84c063d - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. It looks like GitHub code scanning with CodeQL is already set up for this repo, so no further action is needed 🚀. For more information, please check out our post on the GitHub blog. |
This pull request introduces 1 alert when merging ed3e907 into 84c063d - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. It looks like GitHub code scanning with CodeQL is already set up for this repo, so no further action is needed 🚀. For more information, please check out our post on the GitHub blog. |
This pull request introduces 1 alert when merging 58222a9 into fedd956 - view on LGTM.com new alerts:
Heads-up: LGTM.com's PR analysis will be disabled on the 5th of December, and LGTM.com will be shut down ⏻ completely on the 16th of December 2022. It looks like GitHub code scanning with CodeQL is already set up for this repo, so no further action is needed 🚀. For more information, please check out our post on the GitHub blog. |
Description
This pr adds the capability to monkey patch the page trees indicator menu allowing to publish, unpublish, and revert from the page tree.
This PR is draft and open points remain to be done
Related resources
Review guide
monkeypatch/indicators.py
: Indicator logic, patching into classy template tags. Since template tags are called multiple times, versioning results are cachedmonkeypatch/templatetags.py
: Backward compatibility: Patches function-based tags (v4.0....) or class-based tags (v4.1....)cms_toolbar.py
: Show edit button only if edit is possible (otherwise clicking produces an error), show revert button if viewing archive or unpublished versionChecklist
master
Slack to find a “pr review buddy” who is going to review my pull request.