ensl.org/app/views/users/_articles.html.erb

20 lines
404 B
Text
Raw Normal View History

<h2>
Articles
</h2>
<div class="userFields">
<% Category.of_user(@user).all.each do |category| %>
<h3>
<%= category %>
</h3>
<% @user.articles.category(category).ordered.limit(10).each do |article| %>
<div class="indented">
<div class="left">
<%= namelink article %>
</div>
<br class="clear" />
</div>
<% end %>
<% end %>
</div>