Soc/app/views/users/show.html.erb

16 lines
433 B
Plaintext
Raw Permalink Normal View History

2024-03-07 09:14:06 +00:00
<aside>
<%= image_tag "avatar.png", alt: "T S Vallender", width: 200, height: 200, class: "avatar" %>
</aside>
<section class="content">
<% @title = @user.username %>
<h2><%= @user.username %></h2>
<h4><%= @user.full_name %></h4>
2023-08-18 16:45:38 +00:00
2024-03-07 09:14:06 +00:00
<% if @user == current_user %>
<%= link_to t(".edit_user_details"), edit_user_path(@user) %>
2023-10-12 15:24:33 +00:00
2024-03-07 09:14:06 +00:00
<h2>Draft blog posts</h2>
<%= render @user.blog_posts.draft %>
<% end %>
</section>