erang aesthetic changes + add link to home

This commit is contained in:
sanj 2010-08-29 22:59:28 +05:30
parent c562bbce8b
commit 364c33b775
2 changed files with 25 additions and 3 deletions

View File

@ -7,7 +7,7 @@ from django.http import HttpResponse
from django.core.mail import send_mail
def home(request):
all_issues = Issue.objects.all().order_by('-date')
all_issues = Issue.objects.all().order_by('date')
if request.GET.has_key('issue_id'):
issue_id = request.GET.get('issue_id')
else:

View File

@ -1,7 +1,7 @@
{% extends 'base.html' %}
{% block head %}
<title>{{ current_issue.title }}</title>
<title>India Theatre Forum - {{ current_issue.title }}</title>
<script type="text/javascript">
$(document).ready(function() {
$('#subscribeForm').submit(function(e) {
@ -79,6 +79,10 @@ $(document).ready(function() {
text-decoration: none;
}
.newsletterList li {
margin-bottom: 4px;
}
.response {
font-size: 11px;
text-align: center;
@ -89,19 +93,37 @@ $(document).ready(function() {
padding-top: 0px;
}
h3 {
padding: 0px;
margin-bottom: 4px;
}
.homeLink a {
text-decoration: none;
}
.date {
color: #808080;
font-style: italic;
font-size: 10px;
}
</style>
{% endblock %}
{% block body %}
<div id="leftMenu">
<div class="homeLink">
<h3><img src="/favicon.ico" title="India Theatre Forum" alt="" /><a href="/" title="India Theatre Forum Home">Home</a></h3>
</div>
<h3>Past Issues:</h3>
<ul class="newsletterList">
{% for p in past_issues %}
<li><a href="?issue_id={{p.id}}">{{ p.title }}</a></li>
<li>
<a href="?issue_id={{p.id}}">{{ p.title }}</a>
<br />
<span class="date">{{ p.date|date:"d M Y" }}</span>
</li>
{% endfor %}
</ul>
<div id="subscribe">