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/views/resources/_popup.html.erb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/views') 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/views') 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/views') 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/views') 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