mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-03-12 22:06:55 +02:00

Infobubble text is now in a separate file, along with a timestamp, so that changes to it don't result in merge conflicts too often. We also add some JS to make the bubble dismissible, keeping track of the last timestamp that was dismissed in localstorage.
14 lines
462 B
HTML
14 lines
462 B
HTML
{% import "infobubble_content.html" as info %}
|
|
{% if info.info_text %}
|
|
<div class="alert alert-info alert-dismissible" id="infobubble" data-ts='{{ info.info_ts }}' hidden>
|
|
{{ info.info_text|safe }}
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<noscript>
|
|
<div class="alert alert-info" id="infobubble-noscript">
|
|
{{ info.info_text|safe }}
|
|
</div>
|
|
</noscript>
|
|
{% endif %}
|