Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix spacing issue with alert for guest users

Roland Geider4e5931fab44e
diff --git a/wger/core/templates/template.html b/wger/core/templates/template.html
index f20e538da..e5ed8dafa 100644
--- a/wger/core/templates/template.html
+++ b/wger/core/templates/template.html
@@ -174,15 +174,17 @@
{# #}
{# {% if not user.is_authenticated or user.userprofile.is_temporary %} #}
{% if user.is_authenticated and user.userprofile.is_temporary %}
- <div class="alert alert-warning" role="alert" style="padding:0.6em; margin-top: 1em; text-align:center; font-size:95%;">
+ <div class="alert alert-warning text-center" role="alert">
{% trans "You are using a guest account, data entered will be deleted after a week." %}
{% if not has_demo_data %}
- <a href="{% url 'core:user:demo-entries' %}" rel="nofollow" class="btn btn-success btn-sm">
- {% trans "Create some demo entries" %}
- <span class="glyphicon glyphicon-chevron-right"></span>
- </a>
+ <br>
+ <a href="{% url 'core:user:demo-entries' %}" rel="nofollow" class="btn btn-link btn-sm">
+ {% trans "Create some demo entries" %}
+ <span class="glyphicon glyphicon-chevron-right"></span>
+ </a>
{% else %}
- <a href="{% url 'core:user:registration' %}" class="btn btn-success btn-sm">
+ <br>
+ <a href="{% url 'core:user:registration' %}" class="btn btn-link btn-sm">
{% trans "Register" %}
<span class="glyphicon glyphicon-chevron-right"></span>
</a>