Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

Commit

Permalink
Ajustes na sintaxe do templatetag url, que mudou no django 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavofonseca committed Feb 27, 2013
1 parent c0816ff commit 70fa2c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions opac/catalog/templates/catalog/journal.html
Expand Up @@ -9,7 +9,7 @@ <h6>{% trans 'Updated at' %}<br/> May 15, 2012</h6>
<li><i class="icon-play"></i> <a href="#" target="_blank">{% trans 'editorial board' %}</a></li>
<li><i class="icon-play"></i> <a href="#" target="_blank">{% trans 'instructions to authors' %}</a></li>
<li><i class="icon-play"></i> <a href="#" target="_blank">{% trans 'subscriptions' %}</a></li>
<li><i class="icon-play"></i> <a href="{% url catalog.journal_stats journal.acronym %}">{% trans 'statistics' %}</a></li>
<li><i class="icon-play"></i> <a href="{% url 'catalog.journal_stats' journal.acronym %}">{% trans 'statistics' %}</a></li>
</ul>
{% if journal.url_online_submission %}
<a href="{{ journal.url_online_submission }}"><img src="/static/images/en/submission.png" /></a>
Expand Down Expand Up @@ -109,7 +109,7 @@ <h4><img src="/static/images/facebook.png" width="20px"/> Facebook</h4>
<script type="text/javascript">
function qry_tweets() {
$.ajax({
url: "{% url catalog.ajx_list_journal_tweets journal.acronym %}",
url: "{% url 'catalog.ajx_list_journal_tweets' journal.acronym %}",
success: function (data) {
for (tweet in data){
$("#tweets").append("<li><strong>" + data[tweet]['created_at'] + "</strong><br/>" + data[tweet]['text'] + "</li>");
Expand Down
2 changes: 1 addition & 1 deletion opac/catalog/urls.py
Expand Up @@ -20,7 +20,7 @@
url(r'^journal/(?P<journal_id>\w+)/stats/$', views.journal_stats, name='catalog.journal_stats'),

#Article Templates
url(r'^article/(?P<article_id>\w+)/$', direct_to_template, {'template': 'catalog/article.html'}, name='catalog.article'),
url(r'^article/(?P<article_id>\w+)/$', TemplateView.as_view(template_name='catalog/article.html'), name='catalog.article'),

# Ajax
url(r'^ajx/ajx1/(?P<journal_id>\w+)/$', views.ajx_list_journal_tweets,
Expand Down

0 comments on commit 70fa2c8

Please sign in to comment.