Changeset 7898
- Timestamp:
- 08/29/08 15:23:42 (3 months ago)
- Files:
-
- project/gallery.openlayers.org/openlayers/faq/feeds.py (added)
- project/gallery.openlayers.org/openlayers/faq/templates/feeds (added)
- project/gallery.openlayers.org/openlayers/faq/templates/feeds/votes_description.html (added)
- project/gallery.openlayers.org/openlayers/faq/templates/question.html (modified) (1 diff)
- project/gallery.openlayers.org/openlayers/faq/urls.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
project/gallery.openlayers.org/openlayers/faq/templates/question.html
r7896 r7898 15 15 {{ question.rating.score }} out of {{ question.rating.votes }} people found the above answer helpful. 16 16 Did you find it helpful? 17 <a href="#" onclick='document.forms[0].score.value=1; document.forms[0].submit(); return false'>Yes</a> or18 <a href="#" onclick='document.forms[0].score.value=0;document.forms[0].submit(); return false;'>No</a>17 <a href="#" onclick='document.forms[0].score.value=1; document.forms[0].submit();this.parentNode.innerHTML="Thank you for your feedback!";return false'>Yes</a> or 18 <a href="#" onclick='document.forms[0].score.value=0;document.forms[0].submit();this.parentNode.innerHTML="Thank you for your feedback!";return false;'>No</a> 19 19 </p> 20 20 <hr /> project/gallery.openlayers.org/openlayers/faq/urls.py
r7895 r7898 1 1 from django.conf.urls.defaults import * 2 from openlayers.faq.feeds import LatestEntries, LatestVotes 2 3 3 urlpatterns = patterns('openlayers.faq.views', 4 feeds = { 5 'questions': LatestEntries, 6 'votes': LatestVotes, 7 } 8 9 urlpatterns = patterns('', 10 (r'^feed/(?P<url>[a-z]*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}), 11 ) + patterns('openlayers.faq.views', 4 12 # Example: 5 13 (r'^$', 'list'),
