Move login template to index.html
This commit is contained in:
parent
603c29c8b4
commit
f4218775ae
2 changed files with 2 additions and 2 deletions
38
templates/index.html
Normal file
38
templates/index.html
Normal file
|
@ -0,0 +1,38 @@
|
|||
{# vim: set ft=djangohtml #}
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block head_css %}
|
||||
<style type="text/css">
|
||||
.container {
|
||||
margin-top: 120px;
|
||||
}
|
||||
</style>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block container %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span8 offset2">
|
||||
<div class="hero-unit">
|
||||
{% if request.user.is_authenticated %}
|
||||
<p>Welcome back, {{ request.user.username }}</p>
|
||||
{% else %}
|
||||
<a class="btn btn-large btn-primary" href="{% url login %}">Login with
|
||||
GitHub</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if error %}
|
||||
<div class="row">
|
||||
<div class="span8 offset2">
|
||||
<div class="alert alert-error">
|
||||
<i class="icon-exclamation-point"></i> {{ error }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock container %}
|
Loading…
Add table
Add a link
Reference in a new issue