From 9664d48f8fd3acfdac30ac654af2be3ba0f61baa Mon Sep 17 00:00:00 2001 From: "Butler, Alexis (UG - Computer Science)" <ab02259@surrey.ac.uk> Date: Sun, 9 May 2021 20:40:45 +0100 Subject: [PATCH] Goal page titles --- app/views/goals/_showgoals.html.erb | 3 --- app/views/goals/completed.html.erb | 5 ++++- app/views/goals/index.html.erb | 5 ++++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/views/goals/_showgoals.html.erb b/app/views/goals/_showgoals.html.erb index cc83829..fc0a0f9 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 76ad67e..ac1748e 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 76ad67e..3866a52 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 %> -- GitLab