From 1f34f85192d6341a5118ec1e33569da43f5eea80 Mon Sep 17 00:00:00 2001 From: Dean Lofts Date: Sat, 21 Sep 2024 23:57:37 +1000 Subject: [PATCH 1/2] remove extra note about achievements --- app/views/links/user_links.html.erb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/views/links/user_links.html.erb b/app/views/links/user_links.html.erb index c4f25db..84ebca1 100644 --- a/app/views/links/user_links.html.erb +++ b/app/views/links/user_links.html.erb @@ -85,10 +85,6 @@ <% end %> -<% else %> -
-

No achievements to display.

-
<% end %> <% if @user.public_analytics %> From 0c9d843b34c56bd2ddc1c98f2c0cf3012a14df2c Mon Sep 17 00:00:00 2001 From: Dean Lofts Date: Sun, 22 Sep 2024 00:05:22 +1000 Subject: [PATCH 2/2] fix layout --- app/views/links/user_links.html.erb | 75 +++++++++++++++-------------- 1 file changed, 38 insertions(+), 37 deletions(-) diff --git a/app/views/links/user_links.html.erb b/app/views/links/user_links.html.erb index 84ebca1..e972799 100644 --- a/app/views/links/user_links.html.erb +++ b/app/views/links/user_links.html.erb @@ -13,53 +13,54 @@ -
-

<%= @user.full_name %>

-

<%= @user.username %>

-
- <% @user.tags.each do |tag| %> - <%= tag %> - <% end %> -
+
+

<%= @user.full_name %>

+

<%= @user.username %>

+
+ <% @user.tags.each do |tag| %> + <%= tag %> + <% end %>
+
- <% if @pinned_links.any? %> -
-
- <% @pinned_links.order(:position).each do |link| %> - <%= link_to link_path(link), target: "_blank", class: 'bg-gray-800 p-3 m-1 rounded hover:underline' do %> - <% if link.icon.present? %> - - <% end %> +<% if @pinned_links.any? %> +
+
+ <% @pinned_links.order(:position).each do |link| %> + <%= link_to link_path(link), target: "_blank", class: 'bg-gray-800 p-3 m-1 rounded hover:underline' do %> + <% if link.icon.present? %> + <% end %> <% end %> -
+ <% end %>
+
<% end %> -
-

<%= auto_link_urls(@user.description || "") %>

-
+
+

<%= auto_link_urls(@user.description || "") %>

- +<% end %>