mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-12 01:50:48 +01:00
Allow for HTML in the board subtitle
This commit is contained in:
parent
3aa1305dab
commit
b8921508fe
@ -620,6 +620,10 @@
|
|||||||
// REMEMBER TO CHMOD attentionbar.txt PROPERLY
|
// REMEMBER TO CHMOD attentionbar.txt PROPERLY
|
||||||
// Oh, and add jQuery in additional_javascript.
|
// Oh, and add jQuery in additional_javascript.
|
||||||
$config['attention_bar'] = false;
|
$config['attention_bar'] = false;
|
||||||
|
|
||||||
|
// Allow html in board subtitle. This is useful for placing icons and links.
|
||||||
|
$config['allow_subtitle_html'] = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ====================
|
* ====================
|
||||||
* Display settings
|
* Display settings
|
||||||
|
@ -25,8 +25,12 @@
|
|||||||
<h1>{{ board.url }} - {{ board.title|e }}</h1>
|
<h1>{{ board.url }} - {{ board.title|e }}</h1>
|
||||||
<div class="subtitle">
|
<div class="subtitle">
|
||||||
{% if board.subtitle %}
|
{% if board.subtitle %}
|
||||||
|
{% if config.allow_subtitle_html %}
|
||||||
|
{{ board.subtitle }}
|
||||||
|
{% else %}
|
||||||
{{ board.subtitle|e }}
|
{{ board.subtitle|e }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
|
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -8,7 +8,13 @@
|
|||||||
-
|
-
|
||||||
{{ board.title|e }}
|
{{ board.title|e }}
|
||||||
{% if board.subtitle %}
|
{% if board.subtitle %}
|
||||||
<small>— {{ board.subtitle|e }}</small>
|
<small>—
|
||||||
|
{% if config.allow_subtitle_html %}
|
||||||
|
{{ board.subtitle }}
|
||||||
|
{% else %}
|
||||||
|
{{ board.subtitle|e }}
|
||||||
|
{% endif %}
|
||||||
|
</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if mod|hasPermission(config.mod.manageboards) %}
|
{% if mod|hasPermission(config.mod.manageboards) %}
|
||||||
<a href="?/edit/{{ board.uri }}"><small>[{% trans 'edit' %}]</small></a>
|
<a href="?/edit/{{ board.uri }}"><small>[{% trans 'edit' %}]</small></a>
|
||||||
|
@ -18,8 +18,12 @@
|
|||||||
<h1>{{ board.url }} - {{ board.title|e }}</h1>
|
<h1>{{ board.url }} - {{ board.title|e }}</h1>
|
||||||
<div class="subtitle">
|
<div class="subtitle">
|
||||||
{% if board.subtitle %}
|
{% if board.subtitle %}
|
||||||
|
{% if config.allow_subtitle_html %}
|
||||||
|
{{ board.subtitle }}
|
||||||
|
{% else %}
|
||||||
{{ board.subtitle|e }}
|
{{ board.subtitle|e }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
|
{% if mod %}<p><a href="?/">{% trans %}Return to dashboard{% endtrans %}</a></p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user