Add template bits for notification badges
This commit is contained in:
parent
5b88462a0e
commit
1523e3f229
File diff suppressed because one or more lines are too long
|
@ -28,6 +28,9 @@
|
|||
<link rel="stylesheet"
|
||||
href="{% static 'css/fork-awesome.min.css' %}">
|
||||
<link rel="stylesheet"
|
||||
href="{% static 'css/bulma-badge.min.css' %}">
|
||||
<link rel="stylesheet"
|
||||
href="{% static 'css/bulma-badge.min.css' %}">
|
||||
href="{% static 'css/photobox.css' %}">
|
||||
<script type="text/javascript" src="{% static 'js/jquery.min.js' %}"></script>
|
||||
<script type="text/javascript" src="{% static 'js/intercooler.js' %}"></script>
|
||||
|
@ -97,7 +100,16 @@
|
|||
ic-on-success="afterPage('{{ own_acct.username }}', 'Notifications');"
|
||||
ic-indicator="#page-load-indicator">
|
||||
<span class="fa fa-bell-o"></span>
|
||||
{% if notifications and not preferences.theme.is_brutalist %}
|
||||
<span class="badge"
|
||||
data-badge="{{ notifications }}">
|
||||
Notifications
|
||||
</span>
|
||||
{% elif notifications %}
|
||||
<span > Notifications ({{ notifications }})</span>
|
||||
{% else %}
|
||||
<span > Notifications</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
<a class="navbar-item" href="{% url "local" %}"
|
||||
ic-get-from="{% url "local" %}"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"dependencies": {
|
||||
"bulma": "^0.7.1",
|
||||
"bulma-extensions": "^2.2.2",
|
||||
"bulmaswatch": "^0.6.2",
|
||||
"fork-awesome": "^1.1.0",
|
||||
"intercooler": "^1.2.1",
|
||||
|
|
|
@ -2,6 +2,10 @@
|
|||
# yarn lockfile v1
|
||||
|
||||
|
||||
bulma-extensions@^2.2.2:
|
||||
version "2.2.2"
|
||||
resolved "https://registry.yarnpkg.com/bulma-extensions/-/bulma-extensions-2.2.2.tgz#d46f11d1242a3fdc60a983afaea0b5e6c137362d"
|
||||
|
||||
bulma@^0.7.1:
|
||||
version "0.7.1"
|
||||
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.1.tgz#73c2e3b2930c90cc272029cbd19918b493fca486"
|
||||
|
|
Loading…
Reference in New Issue