From 23c42985ae9d05df8119eb88e0c20a93b3c4e0ab Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Sun, 3 Jun 2018 23:34:40 +0200 Subject: [PATCH] hide url action buttons when not inside the program app, and change urltype icons to include the 'fas' bit of the fontawesome class --- .../templates/includes/speakerproposalurl_table.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/program/templates/includes/speakerproposalurl_table.html b/src/program/templates/includes/speakerproposalurl_table.html index 77ad2134..db01bae9 100644 --- a/src/program/templates/includes/speakerproposalurl_table.html +++ b/src/program/templates/includes/speakerproposalurl_table.html @@ -3,20 +3,22 @@ Type URLs + {% if camp.call_for_participation_open and not camp.read_only and request.resolver_match.app_name == "program" %} Available Actions + {% endif %} {% for url in speakerproposal.urls.all %} - {{ url.urltype.name }} + {{ url.urltype.name }} {{ url }} + {% if camp.call_for_participation_open and not camp.read_only and request.resolver_match.app_name == "program" %} - {% if not camp.read_only %} - Update - Delete - {% endif %} + Update + Delete + {% endif %} {% endfor %}