[copr] master: Fix the api template (cbc35b8)

bkabrda at fedoraproject.org bkabrda at fedoraproject.org
Mon Jan 28 09:29:57 UTC 2013


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : master

>---------------------------------------------------------------

commit cbc35b849d30276ef9b976e639ec855a2db4a259
Author: Pierre-Yves Chibon <pingou at pingoured.fr>
Date:   Mon Jan 28 09:05:11 2013 +0100

    Fix the api template


>---------------------------------------------------------------

 coprs_frontend/coprs/templates/api.html |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/coprs_frontend/coprs/templates/api.html b/coprs_frontend/coprs/templates/api.html
index 2800fd3..0de97b2 100644
--- a/coprs_frontend/coprs/templates/api.html
+++ b/coprs_frontend/coprs/templates/api.html
@@ -17,14 +17,14 @@
     in order to ensure you are you every 30 days.
     </p>
 
-    {% if user %}
+    {% if g.user %}
     <p>Your information:</p>
     <pre style="font-size:120%">
-    API token       :   {{ user.api_token }}
-    Expiration date :   {{ user.api_token_expiration }}
+    API token       :   {{ g.user.api_token }}
+    Expiration date :   {{ g.user.api_token_expiration }}
     </pre>
 
-    <a href="{{ url_for('misc.api_new_token') }}">
+    <a href="{{ url_for('api_ns.api_new_token') }}">
         <input type="button" value="Generate a new token" />
     </a>
     {% else %}



More information about the copr-devel mailing list