mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
Hide up/down if not present
This commit is contained in:
parent
c2c534777d
commit
6268c0fd6d
1 changed files with 2 additions and 2 deletions
|
|
@ -15,8 +15,8 @@
|
|||
|
||||
|
||||
<% if habit.habit_type==Habit::ALWAYS %>
|
||||
<%= link_to "√", { :action => "vote", :id => habit.id, :vote => 'up' }, :remote=>true %>
|
||||
<%= link_to "X", { :action => "vote", :id => habit.id, :vote => 'down' }, :remote=>true %>
|
||||
<%= link_to("√", { :action => "vote", :id => habit.id, :vote => 'up' }, :remote=>true) if habit.up %>
|
||||
<%= link_to("X", { :action => "vote", :id => habit.id, :vote => 'down' }, :remote=>true) if habit.down %>
|
||||
<%= raw name %> (<%= habit.score %>)
|
||||
<% elsif habit.habit_type==Habit::DAILY %>
|
||||
<% if habit.done %>
|
||||
|
|
|
|||
Loading…
Reference in a new issue