diff --git a/app/assets/stylesheets/habits.css.scss b/app/assets/stylesheets/habits.css.scss index 0f56e61bd0..7fd197ca23 100644 --- a/app/assets/stylesheets/habits.css.scss +++ b/app/assets/stylesheets/habits.css.scss @@ -14,4 +14,10 @@ #habits li:hover, #daily li:hover { cursor: move; -} \ No newline at end of file +} + +.up, .down, .check { + text-decoration:none; +} + +.up, .down { font-weight: bold; } \ No newline at end of file diff --git a/app/views/habits/_habit.html.erb b/app/views/habits/_habit.html.erb index 062f6b9690..917e0732d8 100644 --- a/app/views/habits/_habit.html.erb +++ b/app/views/habits/_habit.html.erb @@ -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) %> <%= raw name %> (<%= 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 %> diff --git a/config/environments/production.rb b/config/environments/production.rb index d4d98e59b9..9e24c11ac9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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' }