login: cancel button go to previous page
This commit is contained in:
parent
8e8e8243fd
commit
f3df3bb9eb
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
{% else %}
|
||||
<li><a href="{% url 'login' %}"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
|
||||
<li><a href="{% url 'login' %}?prev={{ request.get_full_path }}"><span class="glyphicon glyphicon-log-in"></span> Login</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div><!--/.nav-collapse -->
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<h1>
|
||||
Login
|
||||
<div class="pull-right">
|
||||
<a href="{% url 'list-project' %}"><button class="btn btn-warning">Cancel</button></a>
|
||||
<a href="{% if request.GET.prev %}{{ request.GET.prev }}{% else %}{% url 'list-project' %}{% endif %}"><button class="btn btn-warning">Cancel</button></a>
|
||||
</div>
|
||||
</h1>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue