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 %> -
    +