From a84ec16592a3aae7293c764b3032d0932e226fc7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 22 2015 08:49:24 +0000 Subject: Add a revoke button near the token on the settings page Show in green valid token and in red expired one --- diff --git a/pagure/templates/settings.html b/pagure/templates/settings.html index ed1bbd9..e5f1b0d 100644 --- a/pagure/templates/settings.html +++ b/pagure/templates/settings.html @@ -78,12 +78,31 @@ {{ token.id }} - valid until: {{ token.expiration.date() }} + {% if token.expired %} + Expired since {{ token.expiration.date() }} + {% else %} + Valid until: {{ token.expiration.date() }} + {% endif %} ACLs + +
+ + {{ form.csrf_token }} +
+ {% endif %} {% endfor %}