Undecorate vote links
This commit is contained in:
@@ -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' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user