forked from bofh/fetsite
AutoCommit Fre Jul 31 11:03:07 CEST 2015
This commit is contained in:
8
app/views/survey/choices/_choice.html.erb
Normal file
8
app/views/survey/choices/_choice.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<%=
|
||||
value=(current_user.id.nil?)? false : choice.answers.where(user_id: current_user.id).count>0
|
||||
cstyle=(value) ? "true" :"false"
|
||||
link_to ((value)? fa_icon("arrow-right"): "")+choice.text, answer_survey_question_path(choice.question, params: {survey_question: {selected: [choice.id]}})
|
||||
|
||||
#url_for({controller: obj.class.name.tableize,action: :flag, flag: flag, value: !value, theme: nil, locale: nil, id: obj.id}), remote: true, class:("flag-"+cstyle +" flag-"+flag + "-"+cstyle ), id: obj.flaglinkid(flag)
|
||||
%>
|
||||
|
||||
Reference in New Issue
Block a user