HG changeset patch User Grigoriy Petukhov lizendir gmail com Date 1238

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# HG changeset patch
# User Grigoriy Petukhov <lizendir@gmail.com>
# Date 1238168358 -21600
# Node ID dc99b628dc8aedb3cce81a2c579fcdfdc38f1dbf
# Parent 90e826355261acc310c37fc4d199c2c7b0c1f820
add useful links to lite theme: new post and edit post
diff -r 90e826355261 -r dc99b628dc8a static/lite/img/options.gif
Binary file static/lite/img/options.gif has changed
diff -r 90e826355261 -r dc99b628dc8a themes/lite/blog/post_entry.html
--- a/themes/lite/blog/post_entry.html Fri Mar 27 21:22:13 2009 +0600
+++ b/themes/lite/blog/post_entry.html Fri Mar 27 21:39:18 2009 +0600
@@ -10,6 +10,7 @@
<div id="post-{{ object.id }}" class="post">
{{ post_detail|cond_display:"<h2>,<h1>" }}
<a href="{{ object.get_absolute_url }}">{{ object.name|typogrify|safe }}</a>
+ {% if user.is_staff %}<a href="{% url admin "." %}/blog/post/{{ object.id }}/"><img style="padding: 0; margin:0" src="{{ THEME_STATIC_URL }}img/options.gif" alt="{% trans "Edit post" %}" /></a>{% endif %}
{{ post_detail|cond_display:"</h2>,</h1>" }}
<div class="metadata">
{{ object.date|datelinks }} {{ object.date|time }}
diff -r 90e826355261 -r dc99b628dc8a themes/lite/head.html
--- a/themes/lite/head.html Fri Mar 27 21:22:13 2009 +0600
+++ b/themes/lite/head.html Fri Mar 27 21:39:18 2009 +0600
@@ -28,7 +28,8 @@
{% else %}
<a href="{% url logout %}">{% trans "Logout" %} ({{ user.username }})</a><br/>
{% if user.is_staff %}<a href="{% url admin "." %}">{% trans "Admin" %}</a>{% endif %}
- <a href="{% url profile_edit %}">{% trans "Profile" %}</a>
+ {% if user.is_staff %}&mdash; <a href="{% url admin "./blog/post/add/" %}">{% trans "Make post" %}</a>{% endif %}
+ &mdash; <a href="{% url profile_edit %}">{% trans "Profile" %}</a>
{% endif %}
</div>