asciinema.org/app/views/users/show.html.erb

32 lines
906 B
Plaintext
Raw Normal View History

2012-07-25 18:24:20 +00:00
<section class="supplimental">
<div class="wrapper">
<div class="main">
2012-12-08 19:47:53 +00:00
<h1>Asciicasts by <%= @user.nickname %></h1>
2012-03-11 16:02:52 +00:00
<%= render :partial => 'asciicasts/previews',
:locals => { :asciicasts => @asciicasts } %>
2012-07-25 18:24:20 +00:00
<%= paginate @asciicasts %>
2012-04-09 12:42:22 +00:00
2012-07-25 18:24:20 +00:00
<% if @asciicasts.size == 0 %>
<% if current_user && current_user.id == @user.id -%>
2012-07-28 19:27:17 +00:00
You haven't recorded anything yet.
<%= link_to 'Record now', docs_path(:record) %>
2012-07-25 18:24:20 +00:00
<% else -%>
<%= @user.nickname %> hasn't recorded anything yet.
<% end -%>
<% end -%>
</div>
<div class="extras">
<h1><%= @user.nickname %></h1>
2012-12-08 21:29:21 +00:00
<p><%= avatar_image_tag @user %></p>
2012-07-25 18:24:20 +00:00
<h3><%= @user.asciicasts_count %> asciicasts</h3>
<% if current_user %>
<p><%= link_to 'Settings', edit_user_path %></p>
<% end %>
</div>
</div>
</section>