mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Hide up/down if not present
This commit is contained in:
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user