<%= gravatar_for(@user, size: 128) %>

<%= link_to @user.username, profile_path(@user) %>

<% if @user.workouts.any? %>

<%= t('.workouts_completed_html', count: @user.workouts.count, first_session: l(@user.workouts.order(occurred_at: :asc).limit(1).first.occurred_at, format: :long)) %>

<% else %>

<%= t('.no_workouts_completed') %>

<% end %> <% if @profile.gym.present? %>

<%= link_to @profile.gym.name, @profile.gym %>

<% end %>

<%= @user.time_zone %>

<% @training_histories.each do |history| %> <% personal_record = history.personal_record %>

<%= link_to history.exercise.name, charts_path(exercise: history.exercise, username: @user), remote: true %>

<%= personal_record ? "#{personal_record} lbs" : t('.not_available') %>

<% end %>