Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Show navigation on feature page for users

Roland Geiderc8febb2affbf
diff --git a/wger/core/templates/template_features.html b/wger/core/templates/template_features.html
index dc1e8df0d..a18775692 100644
--- a/wger/core/templates/template_features.html
+++ b/wger/core/templates/template_features.html
@@ -53,7 +53,10 @@
</head>
<body>
+{% if user.is_authenticated %}
{% include 'navigation.html' %}
+{% endif %}
+
<div id="main">
<div class="container">
{% block template %}{% endblock %}
diff --git a/wger/software/templates/functions.html b/wger/software/templates/functions.html
index d69e5afce..6cd8d5099 100644
--- a/wger/software/templates/functions.html
+++ b/wger/software/templates/functions.html
@@ -20,11 +20,13 @@
<h2>{% trans "Your progress." %}</h2>
</div>
<div class="col-sm-3 col-xs-12">
- {% if not user.is_authenticated or user.userprofile.is_temporary %}
+ {% if not user.is_authenticated %}
<p>
<a href="{% url 'core:user:demo-entries' %}" class="btn btn-success btn-lg btn-block">{% trans "Try it now" %}</a>
</p>
+ {% endif %}
+ {% if not user.is_authenticated or user.userprofile.is_temporary %}
<p>
<a href="{% url 'core:user:registration' %}" class="btn btn-default btn-lg btn-block">{% trans "Register" %}</a>
</p>
@@ -49,7 +51,7 @@ growing collection of different spreadsheets, but it has become something other
people could also find useful.{% endblocktrans %}
</div>
</div>
-
+<hr>