comparison templates/code.djhtml @ 107:2bca07be6e51

Add login popup box So you can log in and immediately be redirected to the same page. Sort of like what reddit has. If Javascript is disabled, the user is simply taken to the standard login page.
author dellsystem <ilostwaldo@gmail.com>
date Tue, 11 Sep 2012 20:23:51 -0400
parents 17bc502c65a4
children b8e0bdc37e32
comparison
equal deleted inserted replaced
106:17bc502c65a4 107:2bca07be6e51
47 </div><div class="span3"> 47 </div><div class="span3">
48 <h2 class="center-align">Modules</h2> 48 <h2 class="center-align">Modules</h2>
49 {% if user.is_authenticated %} 49 {% if user.is_authenticated %}
50 <a class="pill" href="">Upload a modules</a> 50 <a class="pill" href="">Upload a modules</a>
51 {% else %} 51 {% else %}
52 <a class="pill" href="{% url auth_login %}"> 52 <a class="pill login-link" href="{% url login %}">
53 Login to upload modules 53 Login to upload modules
54 </a> 54 </a>
55 {% endif %} 55 {% endif %}
56 {% if modules %} 56 {% if modules %}
57 <ul> 57 <ul>
65 </div><div class="span3"> 65 </div><div class="span3">
66 <h2 class="center-align">Forge</h2> 66 <h2 class="center-align">Forge</h2>
67 {% if user.is_authenticated %} 67 {% if user.is_authenticated %}
68 <a class="pill" href="">Add a module to the forge</a> 68 <a class="pill" href="">Add a module to the forge</a>
69 {% else %} 69 {% else %}
70 <a class="pill" href="{% url auth_login %}"> 70 <a class="pill login-link" href="{% url login %}">
71 Login to add a module to the forge 71 Login to add a module to the forge
72 </a> 72 </a>
73 {% endif %} 73 {% endif %}
74 {% if forge %} 74 {% if forge %}
75 <ul> 75 <ul>