Cleanup Tuesdays - Cleaned up the project URLs.
author |
Steve Losh <steve@stevelosh.com> |
date |
Tue, 24 Mar 2009 19:45:03 -0400 |
parents |
115fd0ac6843
|
children |
0a73822701d9
|
branches/tags |
(none) |
files |
templates/projects/list.html templates/projects/project.html |
Changes
--- a/templates/projects/list.html Tue Mar 24 19:42:38 2009 -0400
+++ b/templates/projects/list.html Tue Mar 24 19:45:03 2009 -0400
@@ -2,16 +2,16 @@
{% load typogrify %}
{% block content %}
- <div id="projects-list">
- {% for project in projects %}
- <div class="projects-list-entry">
- <h2 class="projects-list-entry-title">
- <a href="{% url project-view project.slug %}">
- {{ project.name|typogrify }}
- </a>
- </h2>
- <p class="projects-list-entry-snip">{{ project.snip|typogrify }}</p>
- </div>
- {% endfor %}
- </div>
+ <div id="projects-list">
+ {% for project in projects %}
+ <div class="projects-list-entry">
+ <h2 class="projects-list-entry-title">
+ <a href="{{ project.get_absolute_url }}">
+ {{ project.name|typogrify }}
+ </a>
+ </h2>
+ <p class="projects-list-entry-snip">{{ project.snip|typogrify }}</p>
+ </div>
+ {% endfor %}
+ </div>
{% endblock %}
\ No newline at end of file
--- a/templates/projects/project.html Tue Mar 24 19:42:38 2009 -0400
+++ b/templates/projects/project.html Tue Mar 24 19:45:03 2009 -0400
@@ -19,7 +19,7 @@
{% block content %}
<div id="projects-project">
<h1 id="projects-project-name">
- <a href="{% url project-view project.slug %}">
+ <a href="{{ project.get_absolute_url }}">
{{ project.name|typogrify }}
</a>
</h1>