hasadna / open-shot

A simple, open question and answer site. Shot being an hebrew acronym for Q&A.
http://localshot.org.il
BSD 3-Clause "New" or "Revised" License
9 stars 30 forks source link

In public profile: questions I'm following, do not display buttons #412

Closed danielhers closed 11 years ago

danielhers commented 11 years ago

Need to pass parameters to _question.html so that the question preview is as clean as possible in this view.

daonb commented 11 years ago

There's no way to pass a parameter. probably simpler to create a new file _question_by_owner.html and include the original _question.html

danielhers commented 11 years ago

Why not? Just do {% with can_vote=False %} {% include "qa/_question.html" %} {% endwith %}

And read can_vote inside _question.html (in addition to the template tags question|can_vote:user, question|can_upvote:user and question|can_downvote:user.

On 13 October 2013 16:44, benny daon notifications@github.com wrote:

There's no way to pass a parameter. probably simpler to create a new file _question_by_owner.html and include the original _question.html

— Reply to this email directly or view it on GitHubhttps://github.com/hasadna/open-shot/issues/412#issuecomment-26218042 .

daonb commented 11 years ago

+1. You live and learn.

On 13 October 2013 15:50, Daniel Hershcovich notifications@github.comwrote:

Why not? Just do {% with can_vote=False %} {% include "qa/_question.html" %} {% endwith %}

And read can_vote inside _question.html (in addition to the template tags question|can_vote:user, question|can_upvote:user and question|can_downvote:user.

On 13 October 2013 16:44, benny daon notifications@github.com wrote:

There's no way to pass a parameter. probably simpler to create a new file _question_by_owner.html and include the original _question.html

— Reply to this email directly or view it on GitHub< https://github.com/hasadna/open-shot/issues/412#issuecomment-26218042> .

— Reply to this email directly or view it on GitHubhttps://github.com/hasadna/open-shot/issues/412#issuecomment-26218159 .

http://yeda.us/daonb

daonb commented 11 years ago

only the paramter should be

On 13 October 2013 16:06, benny daon bennydaon@gmail.com wrote:

+1. You live and learn.

On 13 October 2013 15:50, Daniel Hershcovich notifications@github.comwrote:

Why not? Just do {% with can_vote=False %} {% include "qa/_question.html" %} {% endwith %}

And read can_vote inside _question.html (in addition to the template tags question|can_vote:user, question|can_upvote:user and question|can_downvote:user.

On 13 October 2013 16:44, benny daon notifications@github.com wrote:

There's no way to pass a parameter. probably simpler to create a new file _question_by_owner.html and include the original _question.html

— Reply to this email directly or view it on GitHub< https://github.com/hasadna/open-shot/issues/412#issuecomment-26218042> .

— Reply to this email directly or view it on GitHubhttps://github.com/hasadna/open-shot/issues/412#issuecomment-26218159 .

http://yeda.us/daonb

http://yeda.us/daonb