~acesuares/qspell/trunk

« back to all changes in this revision

Viewing changes to app/views/partials/_votes.rhtml

  • Committer: Ace Suares
  • Date: 2009-10-07 06:16:20 UTC
  • Revision ID: ace@suares.an-20091007061620-j39st30s42edy61t
 * voting with vote_fu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<% if current_user.voted_on?(@word) %>
 
2
 <%= 'Si' if current_user.voted_for?(@word) %>
 
3
 <%= 'No' if current_user.voted_against?(@word) %>
 
4
 <%= link_to_remote "Kambia",
 
5
      :update=>"votes"+@word.id.to_s,
 
6
      :url => { :action=>"_vote_reset",
 
7
                :id=>@word.id
 
8
                } %>
 
9
 <% else %>
 
10
  <%= link_to_remote "Si",
 
11
    :update=>"votes"+@word.id.to_s,
 
12
    :url => { :action=>"_vote_for",
 
13
    :id=>@word.id
 
14
    } %>
 
15
 
 
16
  <%= link_to_remote "No",
 
17
    :update=>"votes"+@word.id.to_s,
 
18
    :url => { :action=>"_vote_against",
 
19
    :id=>@word.id,
 
20
    } %>
 
21
<%  end %>
 
 
b'\\ No newline at end of file'