From cc953660519f56aff1cb65a2f9fce339ecb3221f Mon Sep 17 00:00:00 2001 From: Yannick Date: Sat, 11 Apr 2020 11:30:29 +0200 Subject: [PATCH] Use fontawesome css import --- app/assets/stylesheets/application.css.scss | 1 + app/views/forms/index.html.erb | 8 +++++++- app/views/layouts/application.html.erb | 2 -- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 7a1a89a..0045e6f 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -15,6 +15,7 @@ */ @import "bulma/sass/utilities/initial-variables"; @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Lobster&family=Comfortaa:wght@400;500;600;700&display=swap'); +@import url('https://use.fontawesome.com/releases/v5.12.0/css/all.css'); $family-sans-serif: 'Roboto', sans-serif; diff --git a/app/views/forms/index.html.erb b/app/views/forms/index.html.erb index f3dcbe0..94dbd58 100644 --- a/app/views/forms/index.html.erb +++ b/app/views/forms/index.html.erb @@ -41,7 +41,13 @@
Last Submission
-

<%= form.last_submission_date.to_formatted_s(:short) %>

+

+ <% if form.last_submission_date -%> + <%= form.last_submission_date.to_formatted_s(:short) %> + <% else -%> + none + <% end -%> +

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 35dc7a7..ff250d1 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -54,8 +54,6 @@ <%= yield %> - -