diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index cbea773b..712c9483 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -16,7 +16,11 @@ content_jsonld = { <% - tabs = %w(universes characters locations items) + tabs = %w( + universes + characters locations items + creatures races religions magics languages groups scenes + ) tab_content_list = {} tabs.each do |tab| @@ -25,21 +29,38 @@ content_jsonld = { %>
-
- +
<%= image_tag @user.image_url(500).html_safe, class: 'activator' %>
-
<%= @user.name %>
-

+

<%= @user.name %>
+
+ +
+ Profile Pictureclose +

Profile pictures are powered by <%= link_to 'Gravatar', 'https://gravatar.com/', target: "_blank" %>, using the email you provided in your <%= link_to 'account settings', edit_user_registration_path %>.

+

For the prettiest profile, please use an avatar at least 250 pixels wide.

+
+
+ +
+ +
+
+
+
I'm creating universes on Notebook! I'm currently sharing the following public content: -

+
<% tabs.each do |tab| %> -
-

<%= tab_content_list[tab].length %>

+
+

<%= tab_content_list[tab].length %>

<%= tab.singularize.pluralize(tab_content_list[tab].length) %>
<% end %> @@ -59,45 +80,46 @@ content_jsonld = { <% end %>
-
- Profile Pictureclose -

Profile pictures are powered by <%= link_to 'Gravatar', 'https://gravatar.com/', target: "_blank" %>, using the email you provided in your <%= link_to 'account settings', edit_user_registration_path %>.

-

For the prettiest profile, please use an avatar at least 250 pixels wide.

-
-
+
+
+
+
    + <% tabs.each do |tab| %> + <% tab_class = tab.singularize.titleize.constantize %> +
  • + <%= link_to "\##{tab}", class: "#{tab_class.color}-text" do %> + + <%= tab_class.icon %> + + + <%= tab_content_list[tab].length %> + + <% end %> +
  • + <% end %> +
+
-
-
-
    - <% tabs.each do |tab| %> -
  • <%= link_to pluralize(tab_content_list[tab].length, tab.singularize), "\##{tab}" %>
  • - <% end %> -
-
- - <% tabs.each do |tab| %> - <% if tab_content_list[tab].any? %> -
- <%= render partial: 'content/list/list', locals: { content_list: tab_content_list[tab], title: '', clean: true } %> -
- <% elsif tab_content_list[tab].empty? %> - <% tab_class = tab.singularize.titleize.constantize %> -
-
- <%= tab_class.icon %> + <% tabs.each do |tab| %> + <% if tab_content_list[tab].any? %> +
+ <%= render partial: 'content/list/list', locals: { content_list: tab_content_list[tab], title: '', clean: true } %>
-

- It looks like <%= @user.name %> isn't sharing any public <%= tab %> yet. -

-
+ <% elsif tab_content_list[tab].empty? %> + <% tab_class = tab.singularize.titleize.constantize %> +
+
+ <%= tab_class.icon %> +
+

+ It looks like <%= @user.name %> isn't sharing any public <%= tab %> yet. +

+
+ <% end %> <% end %> - <% end %> +