TACC / Core-CMS

The Core CMS codebase used by TACC Portals.
https://cep.tacc.utexas.edu
2 stars 1 forks source link

task/tup551 Hide published text unless editing #763

Closed R-Tomas-Gonzalez closed 8 months ago

R-Tomas-Gonzalez commented 8 months ago

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.py file
  2. Test that it disappears when false, and appears when true

UI

editing (TACC_BLOG_SHOW_PUB_TEXT = True)
Screenshot 2023-12-13 at 3 49 51 PM
not editing (TACC_BLOG_SHOW_PUB_TEXT = False)
Screenshot 2023-12-13 at 3 50 16 PM
wesleyboar commented 8 months ago

[!NOTE] To future paper trail followers (me?), the styles in testing screenshots are off, but that's irrelevant (just a lack of building and collecting styles), because this is a functional change and test.

wesleyboar commented 8 months ago

I revert the merge of this PR. After chatting and thing since https://github.com/TACC/tup-ui/pull/395, this has proven to be an unnecessary setting. There is an easier solution: delete the "Published" text (that I had added long ago, as custom text).