Created
January 14, 2010 03:28
-
-
Save relrod/276820 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
vim:ft=htmldjango ts=3 sw=3 et | |
{% endcomment %} | |
<!DOCTYPE html> | |
<html> | |
<head> | |
{% block scripts %} | |
{% endblock %} | |
<title>EighthBit: {% block title %}home{% endblock %}</title> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" /> | |
<link rel="stylesheet" href="/media/blueprint/screen.css" type="text/css" media="screen, projection" /> | |
<link rel="stylesheet" href="/media/blueprint/print.css" type="text/css" media="print" /> | |
<!--[if lt IE 8]> | |
<link rel="stylesheet" href="/media/blueprint/ie.css" type="text/css" media="screen, projection" /> | |
<![endif]--> | |
<style type="text/css"> | |
label { vertical-align: top; } | |
#header .linkbar, #header .linkbar a { | |
font-family: sans; | |
color: #192258; | |
font-size: 1.3em; | |
text-align: center; | |
} | |
#header .linkbar a:hover { | |
color: #4c7b47; | |
} | |
.center { | |
text-align: center; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="span-24" id="header"> | |
<div class="center"> | |
<img src="/media/logos/logo-nobg.png" alt="eighthbit" /> | |
</div> | |
<div class="linkbar"> | |
<a href="/webchat" class="link">Web Chat</a> // | |
<a href="/qdb" class="link">Quote Database</a> // | |
<a href="/wiki" class="link">The BitWik(i)</a> | |
</div> | |
<hr /> | |
<div class="center"> | |
{% block sublinks %}{% endblock %} | |
</div> | |
</div> | |
<div class="span-24"> | |
<h2>{% block h1title %}{% endblock %}</h2> | |
{% block content %} | |
... | |
{% endblock %} | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends "base.html" %} | |
{% block scripts %} <script src="/media/js/qdb/voting.js"></script> {% endblock %} | |
{% block title %}Quotes Listing (page {{ quotes.number }}){% endblock %} | |
{% block sublinks %}{% include "qdb/links.html" %}{% endblock %} | |
{% block content %} | |
<br /> | |
<p style="text-align: right"> | |
{% if quotes.has_previous %} | |
<a href="/qdb/list/{{quotes.previous_page_number}}">«</a> | |
{% endif %} | |
page {{ quotes.number }} of {{ quotes.paginator.num_pages }} | |
{% if quotes.has_next %} | |
<a href="/qdb/list/{{quotes.next_page_number}}">»</a> | |
{% endif %} | |
{% for quote in quotes.object_list %} | |
<div class="success"> | |
<blockquote> | |
<p style="text-align: right"> | |
<a href="/qdb/quote/{{ quote.id }}">Quote {{ quote.id }}</a> Score: <span id="{{ quote.id }}">{{ quote.score }}</span> | |
<a href="#" onclick="upvote({{ quote.id }}); return false;">+</a> <a href="#" onclick="downvote({{ quote.id }}); return false;">-</a> | |
+ - | |
</p> | |
<pre>{{ quote.contents }}</pre><br /> | |
{% if quote.comment %} | |
Comment: {{ quote.comment }} | |
{% endif %} | |
</blockquote> | |
</div> | |
{% endfor %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment