Initial commit
This commit is contained in:
41
templates/base.html
Normal file
41
templates/base.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{%load static %}
|
||||
{% get_static_prefix as STATIC_PREFIX %}
|
||||
<html>
|
||||
<head>
|
||||
<title>{% block title %}Caminus{%endblock%} - Caminus</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ STATIC_PREFIX }}/css/reset.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ STATIC_PREFIX }}/css/text.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ STATIC_PREFIX }}/css/960.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ STATIC_PREFIX }}/css/main.css"/>
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper" class="container_12">
|
||||
<div id="title" class="grid_4">
|
||||
<a href="/">
|
||||
<img src="{{ STATIC_PREFIX }}images/logo.png"/>
|
||||
<h1>Caminus</h1>
|
||||
</a>
|
||||
<div class="slogan">{{ quote }}</div>
|
||||
</div>
|
||||
<div class="grid_4">
|
||||
<div id="epicenter">
|
||||
<h2>Epicenter</h2>
|
||||
{% if user.is_authenticated %}
|
||||
<p>Welcome, {{ user.username }}</p>
|
||||
<ul>
|
||||
<li><a href="{% url user_profile %}">Profile</a></li>
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Welcome! Do you have an invite?<p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div id="content" class="grid_12">
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
6
templates/minecraft/profile.html
Normal file
6
templates/minecraft/profile.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{%block title%}Your Profile{%endblock%}
|
||||
|
||||
{%block content %}
|
||||
<p>Welcome, {{ user.username }}</p>
|
||||
{%endblock%}
|
11
templates/registration/login.html
Normal file
11
templates/registration/login.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{%block title %}Login{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<form action="{% url django.contrib.auth.views.login %}" method="POST">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Login"/>
|
||||
</form>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user