Adds localstorage hide option for directory prompt
This commit is contained in:
parent
2e0386aed8
commit
b94def80b0
|
@ -13,8 +13,8 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
{% if not request.user.discoverable %}
|
{% if not request.user.discoverable %}
|
||||||
<div class="box has-text-centered content">
|
<div class="box has-text-centered content" data-hide="hide-join-directory"><div class="columns">
|
||||||
{% url 'settings-profile' as path %}
|
<div class="column">
|
||||||
<p>
|
<p>
|
||||||
{% trans "Make your profile discoverable to other BookWyrm users." %}
|
{% trans "Make your profile discoverable to other BookWyrm users." %}
|
||||||
</p>
|
</p>
|
||||||
|
@ -22,10 +22,18 @@
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button class="button is-primary" type="submit">Join Directory</button>
|
<button class="button is-primary" type="submit">Join Directory</button>
|
||||||
<p class="help">
|
<p class="help">
|
||||||
{% blocktrans %}You can opt-out at any time in your <a href="{{ path }}">profile settings</a>{% endblocktrans %}
|
{% url 'settings-profile' as path %}
|
||||||
|
{% blocktrans %}You can opt-out at any time in your <a href="{{ path }}">profile settings.</a>{% endblocktrans %}
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="column is-narrow">
|
||||||
|
{% trans "Dismiss message" as button_text %}
|
||||||
|
<button type="button" class="delete set-display" data-id="hide-join-directory" data-value="true">
|
||||||
|
<span>Dismiss message</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="notification content">
|
<div class="notification content">
|
||||||
|
@ -143,3 +151,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block scripts %}
|
||||||
|
<script src="/static/js/localstorage.js"></script>
|
||||||
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue