From 29f873c64082b2db87122e879e5662da2aa9f7dd Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sun, 19 Apr 2015 17:06:52 +0100 Subject: [PATCH] Add interface to view API key --- RIGS/templates/RIGS/profile_detail.html | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/RIGS/templates/RIGS/profile_detail.html b/RIGS/templates/RIGS/profile_detail.html index a9d9bbaf..56a81fba 100644 --- a/RIGS/templates/RIGS/profile_detail.html +++ b/RIGS/templates/RIGS/profile_detail.html @@ -16,7 +16,7 @@ {% endif %} -
+
First Name
{{object.first_name}}
@@ -39,10 +39,30 @@
Phone
{{object.phone}}
+ {% if object.pk == user.pk %} + + + +

Personal iCal Details

+ +
+
API Key
+
{{user.api_key}}
+ +
Calendar URL
+
https://{{ request.get_host }}{% url 'ics_calendar' api_pk=user.pk api_key=user.api_key %}
+
+ {% endif %}
-
+ +
+
{% endblock %} \ No newline at end of file