mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 03:40:00 +00:00
Revert "Make blue info bubble dismissible, configurable (#508)"
This reverts commit 62ec8a5236
.
This commit is contained in:
parent
62ec8a5236
commit
86b7eb7ccd
|
@ -260,16 +260,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
}
|
||||
});
|
||||
|
||||
// Info bubble stuff
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
var bubble = document.getElementById('infobubble');
|
||||
if (Number(localStorage.getItem('infobubble_dismiss_ts')) < Number(bubble.dataset.ts)) {
|
||||
bubble.removeAttribute('hidden');
|
||||
}
|
||||
$('#infobubble').on('close.bs.alert', function () {
|
||||
localStorage.setItem('infobubble_dismiss_ts', bubble.dataset.ts);
|
||||
})
|
||||
});
|
||||
|
||||
// Decode HTML entities (> etc), used for decoding comment markdown from escaped text
|
||||
function htmlDecode(input){
|
||||
|
|
|
@ -12,7 +12,10 @@
|
|||
{% block body %}
|
||||
|
||||
{% if not search.term %}
|
||||
{% include "infobubble.html" %}
|
||||
<div class="alert alert-info">
|
||||
<p>We welcome you to provide feedback on IRC at <a href="irc://irc.rizon.net/nyaa-dev">#nyaa-dev@irc.rizon.net</a></p>
|
||||
<p>Our GitHub: <a href="https://github.com/nyaadevs" target="_blank">https://github.com/nyaadevs</a> - creating <a href="https://github.com/nyaadevs/nyaa/issues">issues</a> for features and faults is recommended!</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% include "search_results.html" %}
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
{% 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 %}
|
|
@ -1,3 +0,0 @@
|
|||
{% set info_text = "<b>Put your announcements here!</b>" %}
|
||||
{# Update this to a larger timestamp if you change your announcement #}
|
||||
{% set info_ts = 1531215917 %}
|
Loading…
Reference in a new issue