aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2012-05-28 12:31:14 +0200
committerGravatar Tom Willemsen2012-05-28 12:31:14 +0200
commit53ab83c5c20d746e31e003a3d84e3a21c0e0200c (patch)
treee1f17a9de926caed243415f356004662d41b330d
parent6da8f546246c40b49b9e037c2415452e2c0b1632 (diff)
downloadryuslash.org-53ab83c5c20d746e31e003a3d84e3a21c0e0200c.tar.gz
ryuslash.org-53ab83c5c20d746e31e003a3d84e3a21c0e0200c.zip
Make posts link to origin
Removes the "origin" link and changes the link from the title to the origin of the post.
-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()))