Self hosted FLOSS fitness/workout, nutrition and weight tracker
Only registered users can add custom ingredients
Roland Geider589ab4f8ad72
diff --git a/wger/nutrition/templates/ingredient/overview.html b/wger/nutrition/templates/ingredient/overview.htmlindex e747e3690..2029e7648 100644--- a/wger/nutrition/templates/ingredient/overview.html+++ b/wger/nutrition/templates/ingredient/overview.html@@ -54,9 +54,9 @@ $(document).ready(function() {{% endblock %}{% block sidebar %}-{% if user.is_authenticated and not user.userprofile.is_temporary %}<h4>{% trans "Add ingredient" %}</h4><p>+ {% if user.is_authenticated and not user.userprofile.is_temporary %}<a href="{% url 'nutrition:ingredient:add' %}" {% auto_link_css flavour %}><img src="{% static 'images/icons/new.svg' %}"width="32"@@ -65,8 +65,15 @@ $(document).ready(function() {title="{% trans 'Add ingredient' %}">{% trans "Add ingredient" %}</a>+ {% else %}+ <img src="{% static 'images/icons/new.svg' %}"+ width="32"+ height="32"+ alt="{% trans 'Add ingredient' %}"+ title="{% trans 'Add ingredient' %}">+ {% trans "Only registered users can do this" %}+ {% endif %}</p>-{% endif %}<h4>{% trans "Search" %}</h4><form action="{% url 'ingredient-search' %}"diff --git a/wger/software/templates/changelog.html b/wger/software/templates/changelog.htmlindex 817bfc47d..b4a8126ac 100644--- a/wger/software/templates/changelog.html+++ b/wger/software/templates/changelog.html@@ -95,6 +95,7 @@</li><li>Other improvements and bugfixes+ <a href="https://github.com/rolandgeider/wger/issues/256">#256</a><a href="https://github.com/rolandgeider/wger/issues/242">#242</a><a href="https://github.com/rolandgeider/wger/issues/238">#238</a><a href="https://github.com/rolandgeider/wger/issues/236">#236</a>