diff --git a/app/views/goals/_showgoals.html.erb b/app/views/goals/_showgoals.html.erb index cc83829497679b91d62b8b490ee88fbf9adab3b6..fc0a0f90bf99c237067d81accb76469154645c71 100644 --- a/app/views/goals/_showgoals.html.erb +++ b/app/views/goals/_showgoals.html.erb @@ -1,6 +1,3 @@ -<div class="container text-center custom-page-heading"> - <h1>Goals</h1> -</div> <div class="container text-center custom-page-heading"> <%= link_to t('.back'), root_path, :class => "btn float-left habit-back-btn" %> <%=button_to ('Your goals'),goals_path , method: :get,class:"btn float-left btn-info btn-md"%> diff --git a/app/views/goals/completed.html.erb b/app/views/goals/completed.html.erb index 76ad67ee385c06f57e99f39c4a328f0f0755323d..ac1748e775f7d9ec87bf97c614a1af752df34f57 100644 --- a/app/views/goals/completed.html.erb +++ b/app/views/goals/completed.html.erb @@ -1 +1,4 @@ - <%= render 'showgoals', goals: @goals %> +<div class="container text-center custom-page-heading"> + <h1>Completed Goals</h1> +</div> +<%= render 'showgoals', goals: @goals %> diff --git a/app/views/goals/index.html.erb b/app/views/goals/index.html.erb index 76ad67ee385c06f57e99f39c4a328f0f0755323d..3866a5226a72eba551b8af1222b871541890023f 100644 --- a/app/views/goals/index.html.erb +++ b/app/views/goals/index.html.erb @@ -1 +1,4 @@ - <%= render 'showgoals', goals: @goals %> +<div class="container text-center custom-page-heading"> + <h1>Goals</h1> +</div> +<%= render 'showgoals', goals: @goals %>