Author: gregoryjnewman
Date: Sat Sep 20 08:52:21 2008
New Revision: 905
Modified:
trunk/pinax/settings.py
trunk/pinax/templates/photos/details.html
trunk/pinax/urls.py
Log:
adding django-flag to photo details
Modified: trunk/pinax/settings.py
==============================================================================
--- trunk/pinax/settings.py (original)
+++ trunk/pinax/settings.py Sat Sep 20 08:52:21 2008
@@ -140,6 +140,7 @@
'arcade',
'games',
'locations',
+ 'flag',
# internal (for now)
'analytics',
Modified: trunk/pinax/templates/photos/details.html
==============================================================================
--- trunk/pinax/templates/photos/details.html (original)
+++ trunk/pinax/templates/photos/details.html Sat Sep 20 08:52:21 2008
@@ -9,6 +9,7 @@
{% load restructuredtext %}
{% load comments_tag %}
{% load photo_tags %}
+{% load flagtags %}
{% block head_title %}{% blocktrans %}Photo Details{% endblocktrans %}{%
endblock %}
@@ -32,7 +33,8 @@
<p>{{ photo.caption }}</p>
</div>
-
+ <h3>Flag this photo</h3>
+ {% flag photo request.user.id %}
<h3>Comments on This Photo:</h3>
{% comments photo %}
Modified: trunk/pinax/urls.py
==============================================================================
--- trunk/pinax/urls.py (original)
+++ trunk/pinax/urls.py Sat Sep 20 08:52:21 2008
@@ -55,6 +55,7 @@
(r'^games/', include('games.urls')),
(r'^swaps/', include('swaps.urls')),
(r'^locations/', include('locations.urls')),
+ (r'^flag/', include('flag.urls')),
(r'^feeds/tweets/(.*)/$', 'django.contrib.syndication.views.feed',
tweets_feed_dict),
(r'^feeds/posts/(.*)/$', 'django.contrib.syndication.views.feed',
blogs_feed_dict),
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---