From bc41993dcdb8eec28fae32c76bbe7a27f32dee63 Mon Sep 17 00:00:00 2001 From: Jeremy Caudle Date: Sun, 6 Feb 2022 15:22:48 +0000 Subject: [PATCH] Getting there --- app/views/companies/index.html.erb | 14 -------------- app/views/home/index.html.erb | 2 ++ app/views/layouts/application.html.erb | 4 ++-- 3 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 app/views/companies/index.html.erb create mode 100644 app/views/home/index.html.erb diff --git a/app/views/companies/index.html.erb b/app/views/companies/index.html.erb deleted file mode 100644 index 8d09448..0000000 --- a/app/views/companies/index.html.erb +++ /dev/null @@ -1,14 +0,0 @@ -

<%= notice %>

- -

Companies

- -
- <% @companies.each do |company| %> - <%= render company %> -

- <%= link_to "Show this company", company %> -

- <% end %> -
- -<%= link_to "New company", new_company_path %> diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb new file mode 100644 index 0000000..90fde0d --- /dev/null +++ b/app/views/home/index.html.erb @@ -0,0 +1,2 @@ +

CAF Compliance Tracking

+

By Hidden Agenda Ltd

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 338a075..505543f 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,8 +10,8 @@ -

<%= notice %>

-

<%= alert %>

+ <% if notice %>

<%= notice %>

<% end %> + <% if alert %>

<%= alert %>

<% end %> <%= yield %>