Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created November 1, 2011 11:55
Show Gist options
  • Save marcelcaraciolo/1330384 to your computer and use it in GitHub Desktop.
Save marcelcaraciolo/1330384 to your computer and use it in GitHub Desktop.
question_recommendation
{% load thumbnails %}
({
name:'{{ recommendation.name }}',
profile_url: '{{ recommendation.get_absolute_url }}',
follow_url: '{% url join_studygroup recommendation.slug %}',
thumbnail: '{% get_thumbnail_url recommendation 'minimum' %}',
type: '{{ type }}',
itens_count: '{{ itens_count }}',
why: {
users:[
{% for item in itens %}
{
name: '{{ item.profile.alt_text }}',
profile_url: '{{ item.profile.get_absolute_url }}'
}{% if not forloop.last %}, {% endif %}
{% endfor %}
],
in_common: {{ itens_count }}
},
rec_id: '{{ recommendation_id }}',
html: '{% filter escapejs %}{% include 'recommendations/_group_recommendation.html' %}{% endfilter %}',
selector: '#group_recommendation_{{ recommendation_id }}'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment