<%# it's unlikely that a user will belong to enough organizations to cause a performance issue here %>
<%# More info regarding the `.present?/.each` pattern: https://www.speedshop.co/2019/01/10/three-activerecord-mistakes.html %>
<% @user.organizations.each do |organization| %>
<%= organization.name %>
<% end %>
<% end %>
<%= render partial: "users/github_repositories_area", locals: { repositories: repositories } %>
<% end %>
<% cache "user-profile-sidebar-profile-details-#{@user.id}-#{@user.profile_updated_at}", expires_in: 10.days do %>
<% @profile.ui_attributes_for(area: :left_sidebar).each do |title, value| %>
<%= crayons_icon_tag(:post, class: "mr-3 color-base-50", title: t("views.users.side.post.icon")) %>
<%= t "views.users.side.post.text", count: @user.articles.published.size %>
<%= crayons_icon_tag(:comment, class: "mr-3 color-base-50", title: t("views.users.side.comment.icon")) %>
<%= t "views.users.side.comment.text", count: @user.comments.where(deleted: false).size %>
<%= crayons_icon_tag(:tag, class: "mr-3 color-base-50", title: t("views.users.side.tag.icon")) %>
<%= t("views.users.side.tag.text", count: @user.decorate.cached_followed_tags.size) %>
<% end %>