artpop / roro-vote

A generic voting app that hooks into faces.rubyonrails.com.au so members can vote with their IRC Nicks. #crc

This URL has Read+Write access

roro-vote / app / helpers / topics_helper.rb
979bd50b » artpop 2008-10-18 Resurrected vote.rubyonrail... 1 module TopicsHelper
2
3 def vote_description(vote)
4 "#{vote.irc_nick} voted for option <i>#{vote.choice.name}</i> on the topic #{link_to vote.topic.name, topic_url(vote.topic)}"
5 end
6
7 def vote_face(vote)
8 unless vote.face.nil?
9 image_tag vote.face, :alt => "#{vote.irc_nick}'s ugly face"
10 else
11 image_tag "no-face.png", :alt => "#{vote.irc_nick} is too slack to upload his face"
12 end
13 end
14
15 end