fixed unanswered questions link and added links to design page alerts
This commit is contained in:
parent
25e28535d0
commit
939f20709f
|
@ -239,7 +239,7 @@ function admin_new_questions()
|
|||
return null;
|
||||
}
|
||||
|
||||
return '<a class="text-info" href="' . page_link_to('/admin/questions') . '">'
|
||||
return '<a href="' . page_link_to('/admin/questions') . '">'
|
||||
. __('There are unanswered questions!')
|
||||
. '</a>';
|
||||
}
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
<span class="bi bi-{{ icon }} {% if color %} text-{{ color }} {% endif %}"></span>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro alert(message, type) %}
|
||||
<div class="alert alert-{{ type|default('info') }}">{{ message }}</div>
|
||||
{% macro alert(message, type, raw) %}
|
||||
<div class="alert alert-{{ type|default('info') }}">
|
||||
{%- if raw|default(false) -%}
|
||||
{{ message|raw }}
|
||||
{%- else -%}
|
||||
{{ message }}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro user(user) %}
|
||||
|
|
|
@ -174,7 +174,7 @@
|
|||
{% for color in colors %}
|
||||
<div class="col">
|
||||
<h4>{{ color|capitalize }}</h4>
|
||||
{{ m.alert(lipsum, color) }}
|
||||
{{ m.alert(linksum, color, true) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue