Initial commit

This commit is contained in:
Trever Fischer
2012-02-17 15:04:42 -05:00
commit 548de830f0
14 changed files with 150 additions and 0 deletions

41
templates/base.html Normal file
View 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>

View File

@@ -0,0 +1,6 @@
{% extends "base.html" %}
{%block title%}Your Profile{%endblock%}
{%block content %}
<p>Welcome, {{ user.username }}</p>
{%endblock%}

View 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 %}