Skip to content
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

task/tup-551 hide published text unless editing #395

Closed
wants to merge 1 commit into from

Conversation

R-Tomas-Gonzalez
Copy link
Contributor

Overview

Removes published verbiage when not editing.

Related

Changes

Simple. When not editing, the published verbiage is hidden. When editing the published verbiage appears.

Testing

  1. On Core-CMS, adjust the TACC_BLOG_SHOW_PUB_TEXT value in the settings_custom.py file
  2. Test that it disappears when false, and appears when true

UI

not editing (TACC_BLOG_SHOW_PUB_TEXT = False)
Screenshot 2023-12-13 at 4 11 40 PM
editing (TACC_BLOG_SHOW_PUB_TEXT = True)
Screenshot 2023-12-13 at 4 12 05 PM

Notes

Copy link
Member

@wesleyboar wesleyboar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but not merging until new Core-CMS build since TACC/Core-CMS#763. I'll notify when a new Core-CMS build is available.

Copy link
Member

@wesleyboar wesleyboar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please change this branch to use Core-CMS v4.3.0, which has the new setting.

I made a similar change on my open PR.

Important

If #394 gets merged first, then my request is moot.

Copy link
Member

@wesleyboar wesleyboar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, I was too trigger happy with the CMS PR. This code won't achieve expectations, as-is.

  1. Designer expects "Published:" to not show (ever), because its superfluous (users know on News page what a date means).
  2. Editor expects "To be published" to show, so they can distinguish published from not yet published.

Whether user is editing or not depends on whether they clicked [Edit] button (i.e. whether URL has ?edit).

@R-Tomas-Gonzalez
Copy link
Contributor Author

Closing this PR.

Check TACC/Core-CMS#771 for updates.

The PR above does what is necessary to meet the demands of this ticket.

Screenshot 2023-12-14 at 12 53 55 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants