Skip to content

Commit

Permalink
[#48267341] Add Sphinx documentation for REFINERY_BANNER_ANONYMOUS_ON…
Browse files Browse the repository at this point in the history
…LY and change its default value to False.
  • Loading branch information
hackdna committed Apr 17, 2013
1 parent 600948e commit e68437f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/administrator/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ Optional Settings

``REFINERY_BANNER = ''``
Optional string to display a message near the top of every page (HTML tags allowed).

``REFINERY_BANNER_ANONYMOUS_ONLY = False``
Optional setting to display REFINERY_BANNER to anonymous users only.
2 changes: 1 addition & 1 deletion refinery/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
REFINERY_BANNER = ''

# Display REFINERY_BANNER to anonymous users only
REFINERY_BANNER_ANONYMOUS_ONLY = True
REFINERY_BANNER_ANONYMOUS_ONLY = False

# import local settings
from settings_local import *
2 changes: 1 addition & 1 deletion refinery/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

{% if REFINERY_BANNER %}
{% if REFINERY_BANNER_ANONYMOUS_ONLY and not user.is_authenticated or not REFINERY_BANNER_ANONYMOUS_ONLY %}
<div class="alert text-center">{{ REFINERY_BANNER|safe }}</div>
<div class="alert text-center">{{ REFINERY_BANNER|safe }}</div>
{% endif %}
{% endif %}

Expand Down

0 comments on commit e68437f

Please sign in to comment.