Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 633bc196dec0c144255ec863206a848e469ccbfb Author: Bohuslav Kabrda bkabrda@redhat.com Date: Mon Jan 21 10:33:16 2013 +0100
Only show add copr button to logged in users
coprs_frontend/coprs/templates/coprs/show.html | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/coprs_frontend/coprs/templates/coprs/show.html b/coprs_frontend/coprs/templates/coprs/show.html index 4bbefa0..9a72d5d 100644 --- a/coprs_frontend/coprs/templates/coprs/show.html +++ b/coprs_frontend/coprs/templates/coprs/show.html @@ -12,7 +12,9 @@ </div> {% endif %} <div class="coprs-list-{% if g.user %}thin{% else %}thick{% endif %}"> - <div class="add-copr">+ <a href={{ url_for('coprs_ns.copr_add') }}>add a new Copr</a></div> + {% if g.user %} + <div class="add-copr">+ <a href={{ url_for('coprs_ns.copr_add') }}>add a new Copr</a></div> + {% endif %} {% for copr in coprs %} <div class="copr"> <a href="{{ url_for('coprs_ns.copr_detail', username = copr.owner.name, coprname = copr.name) }}">{{ copr.owner.name }}/{{ copr.name }}</a>