From 86b7eb7ccdd2e5e8c1fe0af049289cd22b73bd67 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Fri, 3 Aug 2018 04:34:19 +0200 Subject: [PATCH] Revert "Make blue info bubble dismissible, configurable (#508)" This reverts commit 62ec8a523601a43be6ffae48889e6ef0ee4eccdf. --- nyaa/static/js/main.js | 10 ---------- nyaa/templates/home.html | 5 ++++- nyaa/templates/infobubble.html | 14 -------------- nyaa/templates/infobubble_content.html | 3 --- 4 files changed, 4 insertions(+), 28 deletions(-) delete mode 100644 nyaa/templates/infobubble.html delete mode 100644 nyaa/templates/infobubble_content.html diff --git a/nyaa/static/js/main.js b/nyaa/static/js/main.js index 8eb3624..4cb58df 100644 --- a/nyaa/static/js/main.js +++ b/nyaa/static/js/main.js @@ -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){ diff --git a/nyaa/templates/home.html b/nyaa/templates/home.html index a80641e..ae44076 100644 --- a/nyaa/templates/home.html +++ b/nyaa/templates/home.html @@ -12,7 +12,10 @@ {% block body %} {% if not search.term %} -{% include "infobubble.html" %} +
+

We welcome you to provide feedback on IRC at #nyaa-dev@irc.rizon.net

+

Our GitHub: https://github.com/nyaadevs - creating issues for features and faults is recommended!

+
{% endif %} {% include "search_results.html" %} diff --git a/nyaa/templates/infobubble.html b/nyaa/templates/infobubble.html deleted file mode 100644 index 4926837..0000000 --- a/nyaa/templates/infobubble.html +++ /dev/null @@ -1,14 +0,0 @@ -{% import "infobubble_content.html" as info %} -{% if info.info_text %} - - -{% endif %} diff --git a/nyaa/templates/infobubble_content.html b/nyaa/templates/infobubble_content.html deleted file mode 100644 index e6289f0..0000000 --- a/nyaa/templates/infobubble_content.html +++ /dev/null @@ -1,3 +0,0 @@ -{% set info_text = "Put your announcements here!" %} -{# Update this to a larger timestamp if you change your announcement #} -{% set info_ts = 1531215917 %}