From d2fe17949455927e9d3e03051107706fae428def Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 7 Feb 2012 19:14:29 -0500 Subject: [PATCH] Clearing out app/views/habits/index.html.erb to use backbone content --- app/views/habits/index.html.erb | 81 ++++----------------------------- 1 file changed, 8 insertions(+), 73 deletions(-) diff --git a/app/views/habits/index.html.erb b/app/views/habits/index.html.erb index efe98bbd4e..b46a760edd 100644 --- a/app/views/habits/index.html.erb +++ b/app/views/habits/index.html.erb @@ -1,74 +1,9 @@ -<%= link_to 'New Habit', new_habit_path %> +
- - - - - - - - - - -
-
-
-

Habits

-
-
    - <% @habits.each do |habit| %> - <%= render :partial => "habit", :locals => { :habit => habit } %> - <% end %> -
-
-
-
-
-
-
-

Daily

-
-
    - <% @daily.each do |habit| %> - <%= render :partial => "habit", :locals => { :habit => habit } %> - <% end %> -
-
-
-
-
-
-
-

One-offs

-
-
    - <% @one_time.each do |habit| %> - <%= render :partial => "habit", :locals => { :habit => habit } %> - <% end %> -
-
-
-
- <%= link_to 'View Completed', :action=>'completed' %> -
-
-
-

Rewards - <%= render 'shared/money'%> -

-
- <% @rewards.each do |reward| %> -
  • - <%= link_to(image_tag('dollar.png'), { :controller=>"rewards", :action => "buy", :id => reward.id }, :remote=>true) %> - <%= reward.name %> - ($<%= reward.value %>) -
    - <%= link_to 'Edit', edit_reward_path(reward) %> -
    -
  • - <% end %> -
    -
    -
    - <%= link_to 'New Reward', new_reward_path %> -
    +