Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (29 sloc) 1.28 KB
{% extends 'base.html' %}
{% block home_active %}active{% endblock %}
{% block contents %}
{% if user.is_authenticated %}
<div class="starter-template">
<p>You're now logged in and by visiting this page you've already triggered one message sending.</p>
{% else %}
<div class="starter-template">
<p class="lead">
This app has te purpose to show how to implement github-like notifications.<br>
Please login with <em>test/test</em> username and password.
<form class="form-inline" role="form" method="POST" action="/">
{% csrf_token %}
<div class="form-group">
<label class="sr-only" for="exampleInputEmail2">Username</label>
<input id="id_username" class="form-control" maxlength="254" name="username" type="text" placeholder="test">
<div class="form-group">
<label class="sr-only" for="exampleInputPassword2">Password</label>
<input id="id_password" class="form-control" maxlength="4096" name="password" type="password" placeholder="test">
<button type="submit" class="btn btn-default">Sign in</button>
{% endif %}
{% endblock %}