From cbbf21de5c26bc8435024ac3f0bd62e69c84341b Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 11 Feb 2021 23:05:27 +0100 Subject: [FEATURE] Link to edit --- app/javascript/scss/_resources.scss | 29 +++++++++++++++++++++++++++++ app/views/resources/_popup.html.erb | 6 ++++++ 2 files changed, 35 insertions(+) (limited to 'app') diff --git a/app/javascript/scss/_resources.scss b/app/javascript/scss/_resources.scss index eb7411b..e9b3d0b 100644 --- a/app/javascript/scss/_resources.scss +++ b/app/javascript/scss/_resources.scss @@ -7,3 +7,32 @@ // Place all the styles related to the Resources controller here. // They will automatically be included in application.css. // You can use Sass (SCSS) here: https://sass-lang.com/ + +article.resource { + nav { + margin-top: 1rem; + + ul { + display: flex; + border-top: 2px solid; + flex-flow: row-reverse nowrap; + justify-content: space-evenly; + list-style: none; + padding: 0; + + li { + padding: 0; + text-align: center; + flex: 1; + + &:first-child { + overflow: hidden; + text-overflow: ellipsis; + } + + a { + } + } + } + } +} diff --git a/app/views/resources/_popup.html.erb b/app/views/resources/_popup.html.erb index 0841264..0e8b1da 100644 --- a/app/views/resources/_popup.html.erb +++ b/app/views/resources/_popup.html.erb @@ -7,4 +7,10 @@ <%= m resource.description %> <% end %> + -- cgit v1.2.3 From 0b52d059860aa96c8f8c35e5c871bc4fb8a862a2 Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 11 Feb 2021 23:55:12 +0100 Subject: [FIX] Prevent debug from failing without a user --- app/views/application/_user_info.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index a1a42d2..07318bd 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -13,5 +13,5 @@ <% content_for :debug do %> -<%= @current_user.avatar_url %> + <%= @current_user.avatar_url if @current_user %> <% end %> -- cgit v1.2.3 From ddfafc95dfc891f6751c0522db2afc7bf1b5b31a Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 11 Feb 2021 23:59:57 +0100 Subject: [FIX] Prevent debug from failing without a user --- app/views/application/_user_info.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index 07318bd..2b243d8 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -13,5 +13,5 @@ <% content_for :debug do %> - <%= @current_user.avatar_url if @current_user %> + <%= @current_user&.avatar_url if @current_user %> <% end %> -- cgit v1.2.3 From 30212382cc00b13c1fd65e5432afe1480e9e4be6 Mon Sep 17 00:00:00 2001 From: hellekin Date: Fri, 12 Feb 2021 00:03:29 +0100 Subject: [FIX] Prevent debug from failing without a user --- app/views/application/_user_info.html.erb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app') diff --git a/app/views/application/_user_info.html.erb b/app/views/application/_user_info.html.erb index 2b243d8..048e6fb 100644 --- a/app/views/application/_user_info.html.erb +++ b/app/views/application/_user_info.html.erb @@ -11,7 +11,3 @@ <% end %> - -<% content_for :debug do %> - <%= @current_user&.avatar_url if @current_user %> -<% end %> -- cgit v1.2.3