Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added edit links for articles and tags.

  • Loading branch information...
commit 334b7e3cf476920a460da4febe10dca0c139723b 1 parent 941666e
Johan Bichel Lindegaard authored
View
7 templates/articles/article_detail.html
@@ -10,6 +10,13 @@
<article id="{{ object.slug }}">
<header id="article-header">
+
+ {% if user.is_staff %}
+ <ul class="object-admin-navigation">
+ <li><a href="{% url admin:articles_article_change object.id %}">edit</a></li>
+ </ul>
+ {% endif %}
+
<hgroup>
<h1>{{ object.title }}</h1>
View
7 templates/articles/by_tag.html
@@ -9,6 +9,13 @@
{% block content %}
<header id="page-header">
+
+ {% if user.is_staff %}
+ <ul class="object-admin-navigation">
+ <li><a href="{% url admin:articles_atag_change tag.id %}">edit</a></li>
+ </ul>
+ {% endif %}
+
<p class="title-prefix">Articles in:</p>
<h1>{{ tag }}</h1>
{% if tag.description %}
View
2  templates/flatpages/default.html
@@ -5,5 +5,7 @@
{% block body_class %}page{% endblock %}
{% block content %}
+
{{ flatpage.content }}
+
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.