mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 22:27:06 +00:00
Undecorate vote links
This commit is contained in:
parent
c42718a3e7
commit
c70b082b22
3 changed files with 13 additions and 6 deletions
|
|
@ -14,4 +14,10 @@
|
|||
|
||||
#habits li:hover, #daily li:hover {
|
||||
cursor: move;
|
||||
}
|
||||
}
|
||||
|
||||
.up, .down, .check {
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
.up, .down { font-weight: bold; }
|
||||
|
|
@ -13,15 +13,15 @@
|
|||
%>
|
||||
|
||||
<% if habit.habit_type==Habit::ALWAYS %>
|
||||
<%= link_to("△", { :action => "vote", :id => habit.id, :vote => 'up' }, :remote=>true) if habit.up %>
|
||||
<%= link_to("▽", { :action => "vote", :id => habit.id, :vote => 'down' }, :remote=>true) if habit.down %>
|
||||
<%= link_to("△", { :action => "vote", :id => habit.id, :vote => 'up' }, :class=>'up', :remote=>true) if habit.up %>
|
||||
<%= link_to("▽", { :action => "vote", :id => habit.id, :vote => 'down' }, :class=>'down', :remote=>true) if habit.down %>
|
||||
<%= raw name %> (<%= habit.score.to_i %>)
|
||||
<% elsif habit.habit_type==Habit::DAILY %>
|
||||
<% if habit.done %>
|
||||
<%= link_to("[X]", { :action => "vote", :id => habit.id, :vote => 'down' }, :remote=>true) %>
|
||||
<%= link_to("[X]", { :action => "vote", :id => habit.id, :vote => 'down' }, :class=>'check', :remote=>true) %>
|
||||
<strike><%= raw name %></strike> (<%= habit.score.to_i %>)
|
||||
<% else %>
|
||||
<%= link_to("[ ]", { :action => "vote", :id => habit.id, :vote => 'up' }, :remote=>true) %>
|
||||
<%= link_to("[ ]", { :action => "vote", :id => habit.id, :vote => 'up' }, :class=>'check', :remote=>true) %>
|
||||
<%= raw name %> (<%= habit.score.to_i %>)
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
HabitTracker::Application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb
|
||||
|
||||
# disable assets config.assets.initialize_on_precompile or run rake assets:precompile on prod
|
||||
# config.assets.enabled = false
|
||||
|
||||
# TODO disable assets config.assets.initialize_on_precompile or run rake assets:precompile on prod
|
||||
# Needed for devise
|
||||
config.action_mailer.default_url_options = { :host => 'habits.ocdevel.com' }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue