diff --git a/taccsite_cms/settings.py b/taccsite_cms/settings.py index 396f8ea2b..9e6168045 100644 --- a/taccsite_cms/settings.py +++ b/taccsite_cms/settings.py @@ -279,6 +279,7 @@ def gettext(s): return s TACC_BLOG_SHOW_CATEGORIES = True TACC_BLOG_SHOW_TAGS = True +TACC_BLOG_SHOW_PUB_TEXT = True # To flag posts of certain category or tag, so template can take special action TACC_BLOG_CUSTOM_MEDIA_POST_CATEGORY = 'sample_value_e_g__mutlimedia__' TACC_BLOG_SHOW_ABSTRACT_TAG = 'sample_value_e_g__redirect__' @@ -698,6 +699,7 @@ def get_subdirs_as_module_names(path): 'GOOGLE_ANALYTICS_PRELOAD', 'TACC_BLOG_SHOW_CATEGORIES', 'TACC_BLOG_SHOW_TAGS', + 'TACC_BLOG_SHOW_PUB_TEXT', 'TACC_CORE_STYLES_VERSION', 'TACC_BLOG_CUSTOM_MEDIA_POST_CATEGORY', 'TACC_BLOG_SHOW_ABSTRACT_TAG', diff --git a/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html b/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html index 96eb4b4c4..417426174 100644 --- a/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html +++ b/taccsite_cms/templates/djangocms_blog/includes/blog_meta.html @@ -21,7 +21,9 @@ {# /TACC #} {# TACC (add and   so whitespace can be stripped): #} {# TACC ("Published" vs "To be published"): #} - {% if post.publish %}{% trans "Published" %}{% else %}{% trans "To be published" %}{% endif %}  + {% if settings.TACC_BLOG_SHOW_PUB_TEXT %} + {% if post.publish %}{% trans "Published" %}{% else %}{% trans "To be published" %}{% endif %}  + {% endif %} {# /TACC #} {# /TACC #} {# TACC (wrap with