lazy_user singe job only
[django_unres.git] / django_simple / todo / templates / base.html
index 43dc57d..d974976 100644 (file)
@@ -1,4 +1,5 @@
 {% load staticfiles %}
+{% load i18n lazysignup_tags %}
 <!DOCTYPE html>
 <html>
 <head>
@@ -18,7 +19,7 @@
 <div class="col-sm-6 col-sm-offset-3">
        
        <div class="page-header">
-         <h1><a href="/">UNRES server</a> <small> (beta version)</small></h1>
+         <h1><a href="/">UNRES server</a> <small> (beta version with debug)</small></h1>
 
               Lab. of Simul. of Polym. & Lab. of Mol. Model, Faculty of Chemistry, University of Gdansk
               <br>
                <div class="user-name">
                        {% if not user.is_anonymous %}
                                <strong>Logged as:&nbsp;</strong> {{user}} &nbsp;
+                         {% if user|is_lazy_user %}
+                               <a href="/logout" title="Log out and delete data"><span class="fa fa-sign-out"></span></a>
+                         {% else %}
                                <a href="/logout" title="Log out"><span class="fa fa-sign-out"></span></a>
+                       {% endif %}     
                        {% endif %}
                </div>
+               {% if user|is_lazy_user %}
+                <a href="/convert" title="Convert to save your data">Convert to regular user</a>
+               {% endif %}
        </div>
 
        {% block content %}