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

View File

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

View File

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

View File

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