|
<% @title = @user.username %>
|
|
<h2><%= @user.username %></h2>
|
|
<h4><%= @user.full_name %></h4>
|
|
|
|
<% if @user == current_user %>
|
|
<%= link_to t(".edit_user_details"), edit_user_path(@user) %>
|
|
|
|
<h2>Draft blog posts</h2>
|
|
<%= render @user.blog_posts.draft %>
|
|
<% end %>
|