aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--aggregator/templates/aggregator/post_content.html19
-rw-r--r--static/main.css6
-rw-r--r--urls.py3
3 files changed, 6 insertions, 22 deletions
diff --git a/aggregator/templates/aggregator/post_content.html b/aggregator/templates/aggregator/post_content.html
index dc04741..46e642f 100644
--- a/aggregator/templates/aggregator/post_content.html
+++ b/aggregator/templates/aggregator/post_content.html
@@ -1,18 +1,11 @@
<article class="post">
<header>
- <hgroup>
- <h1>
- <a href="/post/{{ post.pk }}/">
- <img src="/static/images/logos/{{ post.icon }}" />
- </a>
- <a href="/post/{{ post.pk }}/">
- {{ post.title }}
- </a>
- </h1>
- <h2 class="postsubtitle">
- (<a href="{{ post.link }}">origin</a>)
- </h2>
- </hgroup>
+ <h1>
+ <a href="{{ post.link }}">
+ <img src="/static/images/logos/{{ post.icon }}" />
+ {{ post.title }}
+ </a>
+ </h1>
</header>
<div class="postcontent">
diff --git a/static/main.css b/static/main.css
index c972cb5..073bed1 100644
--- a/static/main.css
+++ b/static/main.css
@@ -53,12 +53,6 @@ pre {
float: left;
}
-.post .postsubtitle {
- margin-left: 50px;
- text-align: right;
- font-size: 75%;
-}
-
.post .postcontent {
margin-top: 17px;
clear: left;
diff --git a/urls.py b/urls.py
index 7cba6ae..d23c303 100644
--- a/urls.py
+++ b/urls.py
@@ -1,12 +1,9 @@
from django.conf.urls.defaults import patterns, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
-from django.views.generic import DetailView
-from aggregator.models import Post
from aggregator.feeds import LatestPostsFeed
urlpatterns = patterns('',
- url(r'^post/(?P<pk>\d+)/$', DetailView.as_view(model=Post)),
url(r'^((?P<cat>[a-z_-]+)/)?((?P<page>\d+)/)?$',
'aggregator.views.posts'),
url(r'^feed/posts/$', LatestPostsFeed()))