28 lines
661 B
Plaintext
28 lines
661 B
Plaintext
<h1><%= @profile.full_name %></h1>
|
|
|
|
<p>
|
|
<%= link_to "#{@profile.following_profiles.count} Followers",
|
|
profile_followers_path(@profile) %>
|
|
•
|
|
<%= link_to "#{@profile.followed_profiles.count} Following",
|
|
profile_following_index_path(@profile) %>
|
|
</p>
|
|
|
|
<p><%= @profile.description %></p>
|
|
|
|
<% @profile.posts.each do |post| %>
|
|
<div class="card mb-4">
|
|
<div class="card-body">
|
|
<p class="card-text">
|
|
<%= post.text %>
|
|
</p>
|
|
|
|
<p class="card-text">
|
|
<small class="text-muted">
|
|
<%= localize post.published_at, format: :short %>
|
|
</small>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<% end %>
|