changes on server

This commit is contained in:
PadmaTextUser 2011-02-21 10:14:16 +00:00
parent 726ec82179
commit b709699df0
4 changed files with 25 additions and 6 deletions

View File

@ -51,6 +51,7 @@ h1 {
padding-top: 0;
margin-bottom: 0;
padding-bottom: 0;
margin-left: 8px;
}
h4 {
margin-top: 0;
@ -59,8 +60,12 @@ h4 {
margin-bottom: 0;
}
h3 {
margin-bottom: 0;
margin-bottom: 4px;
padding-bottom: 0;
font-family: "DejaVu Sans", Arial, Verdana, sans-serif;
}
p {
margin-top: 0;
}
#essay, #essayAbstract, #authorBio {
@ -70,6 +75,10 @@ h3 {
#authorBio p {
margin: 0;
}
#authorBio {
margin-top: 48px;
margin-bottom: 96px;
}
#loading {
position: fixed;
right: 0px;

View File

@ -127,7 +127,7 @@ $(function() {
{{ text.title }}
</h1>
<h4>
by <a href="#bio">{{ text.author }}</a>
by <a href="#bio">{{ text.author }}</a>, {{text.date|date:"F Y"}}
</h4>
<div id="essayAbstract">
<p>

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Padma essays</title>
<title>Padma Essays</title>
<link rel="stylesheet" type="text/css" href="/static/css/text.css" />
<style>
p {
@ -12,15 +12,24 @@
}
.text {
margin-bottom: 8px;
margin-left: 8px;
}
a, a:active {
text-decoration: none;
color: #000;
}
a:hover {
text-decoration: underline;
color: #000;
}
</style>
</head>
<body>
<h1>Padma essays</h1>
<h1>Padma Essays</h1>
{% for t in texts %}
<div class="text">
<a href="{{t.get_absolute_url}}" title="{{t.title}}">{{ t.title }}</a><br />
by {{ t.author }}
<a href="{{t.get_absolute_url}}" title="{{t.title}}"><b>{{ t.title }}</b></a><br />
by {{ t.author }}, {{t.date|date:"F Y"}}
{{ t.abstract|safe }}
</div>
{% endfor %}

View File

@ -7,6 +7,7 @@ from django.db import models
class PadmaTextAdmin(admin.ModelAdmin):
formfield_overrides = {models.TextField: {'widget':forms.Textarea(attrs={'class':'ckeditor'})}, }
prepopulated_fields = {'slug': ('title',)}
list_display = ['title', 'author', 'date']
class Media:
js = ('ckeditor/ckeditor.js',) # The , at the end of this list IS important.