<commit_before><% menu :profile %>

<%content_for :sidebar do %>
  <div class="profile-box">
	<div id="title">
	 <h3 class="item_title"><span><%=@user.name%></span> <%= t('is_member_of') %>:</h3>
	</div>
	<div id="profile_content">
		<%= @user_spaces.empty? ? @user.name + " " + t("space.does_not_belong") : ""%>
		<%for space in @user_spaces do%>
			<div class="space_item"><%= space.authorize?([:read , :content], :to => current_user) ? link_logo(space, :size => 'h64', :title=> space.name): logo(space, :size => 'h64', :title => space.name)%></div>
		<%end%>
	</div>
  </div>
<%end%>
<div class="vcard" id="card">
  <span class="adr">
    <%= render :partial=>'public_hcard'%>

	<% if @profile.authorize? :read, :to => current_user %>
	  <%= render :partial=>'private_hcard'%>
	<% end %>
  </span>
</div>
<%if current_user.superuser? || @user==current_user%>
	  <div class="button_wrapper">
	    <%= link_to "<span>" + t('edit_profile') + "</span>",edit_user_profile_path(@user),:class => "basic_button blue_button"%>
	  </div>    
<%end%> 
<div class="profile-box">
  <div id="title">
  	<div id="help2" title="<%= t('information.information3')%>"></div>
	<h3 class="item_title"> <%=t('recent.activity')%> </h3>
  </div>
  <div id="profile_content">
  	  <%= @latest_posts.empty? ? "The User doesn't have any recent activity" : "" %>
	  <% for post in @latest_posts -%>
		<%=render :partial => "posts/profile_post", :locals => { :post =>  post, :selected_post => false} %> 
	  <%end%>
  </div>	
</div><commit_msg>A translation was missing: "User has no recent activity"<commit_after><% menu :profile %>

<%content_for :sidebar do %>
  <div class="profile-box">
	<div id="title">
	 <h3 class="item_title"><span><%=@user.name%></span> <%= t('is_member_of') %>:</h3>
	</div>
	<div id="profile_content">
		<%= @user_spaces.empty? ? @user.name + " " + t("space.does_not_belong") : ""%>
		<%for space in @user_spaces do%>
			<div class="space_item"><%= space.authorize?([:read , :content], :to => current_user) ? link_logo(space, :size => 'h64', :title=> space.name): logo(space, :size => 'h64', :title => space.name)%></div>
		<%end%>
	</div>
  </div>
<%end%>
<div class="vcard" id="card">
  <span class="adr">
    <%= render :partial=>'public_hcard'%>

	<% if @profile.authorize? :read, :to => current_user %>
	  <%= render :partial=>'private_hcard'%>
	<% end %>
  </span>
</div>
<%if current_user.superuser? || @user==current_user%>
	  <div class="button_wrapper">
	    <%= link_to "<span>" + t('edit_profile') + "</span>",edit_user_profile_path(@user),:class => "basic_button blue_button"%>
	  </div>    
<%end%> 
<div class="profile-box">
  <div id="title">
  	<div id="help2" title="<%= t('information.information3')%>"></div>
	<h3 class="item_title"> <%=t('recent.activity')%> </h3>
  </div>
  <div id="profile_content">
  	  <%= @latest_posts.empty? ? t('user.noactivity') : "" %>
	  <% for post in @latest_posts -%>
		<%=render :partial => "posts/profile_post", :locals => { :post =>  post, :selected_post => false} %> 
	  <%end%>
  </div>	
</div>
{'fraction_non_alphanumeric': 0.2498362802881467, 'fraction_numerical': 0.006548788474132285, 'mean_word_length': 4.764150943396227, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2992002', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1159, 'n_words': 227}