Skip to content

Commit

Permalink
Improve project visibility link
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 12, 2024
1 parent 76f7c03 commit d370398
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rdmo/projects/templates/projects/project_detail_sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ <h2>{% trans 'Options' %}</h2>
{% if settings.PROJECT_VISIBILITY and can_change_visibility %}
<ul class="list-unstyled">
<li>
<a href="{% url 'project_update_visibility' project.pk %}">{% trans 'Update project visibility' %}</a>
<a href="{% url 'project_update_visibility' project.pk %}">
{% if not project.visibility %}
{% trans 'Make project visible to users' %}
{% else %}
{% trans 'Update project visibility' %}
{% endif %}
</a>
</li>
</ul>
{% endif %}
Expand Down

0 comments on commit d370398

Please sign in to comment.