Allow for HTML in the board subtitle

This commit is contained in:
ctrlcctrlv 2013-08-08 18:58:44 +00:00
parent 3aa1305dab
commit b8921508fe
4 changed files with 21 additions and 3 deletions

View File

@ -620,6 +620,10 @@
// REMEMBER TO CHMOD attentionbar.txt PROPERLY
// Oh, and add jQuery in additional_javascript.
$config['attention_bar'] = false;
// Allow html in board subtitle. This is useful for placing icons and links.
$config['allow_subtitle_html'] = false;
/*
* ====================
* Display settings

View File

@ -25,7 +25,11 @@
<h1>{{ board.url }} - {{ board.title|e }}</h1>
<div class="subtitle">
{% if board.subtitle %}
{{ board.subtitle|e }}
{% if config.allow_subtitle_html %}
{{ board.subtitle }}
{% else %}
{{ board.subtitle|e }}
{% endif %}
{% endif %}
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
</div>

View File

@ -8,7 +8,13 @@
-
{{ board.title|e }}
{% if board.subtitle %}
<small>&mdash; {{ board.subtitle|e }}</small>
<small>&mdash;
{% if config.allow_subtitle_html %}
{{ board.subtitle }}
{% else %}
{{ board.subtitle|e }}
{% endif %}
</small>
{% endif %}
{% if mod|hasPermission(config.mod.manageboards) %}
<a href="?/edit/{{ board.uri }}"><small>[{% trans 'edit' %}]</small></a>

View File

@ -18,7 +18,11 @@
<h1>{{ board.url }} - {{ board.title|e }}</h1>
<div class="subtitle">
{% if board.subtitle %}
{{ board.subtitle|e }}
{% if config.allow_subtitle_html %}
{{ board.subtitle }}
{% else %}
{{ board.subtitle|e }}
{% endif %}
{% endif %}
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
</div>