This commit is contained in:
r888888888
2014-03-05 17:59:46 -08:00
parent 37d75e4a88
commit abe0fa5feb

View File

@@ -1,28 +1,24 @@
<div class="box"> <% if presenter.has_uploads? %>
<h2><%= link_to "Uploads", posts_path(:tags => "user:#{user.name}") %></h2> <div class="box">
<% if presenter.has_uploads? %> <h2><%= link_to "Uploads", posts_path(:tags => "user:#{user.name}") %></h2>
<div> <div>
<% presenter.uploads.each do |post| %> <% presenter.uploads.each do |post| %>
<%= PostPresenter.preview(post, :tags => "user:#{user.name}") %> <%= PostPresenter.preview(post, :tags => "user:#{user.name}") %>
<% end %> <% end %>
</div> </div>
<% else %> </div>
<p>None</p> <% end %>
<% end %>
</div>
<div class="box"> <% if presenter.has_favorites? %>
<h2><%= link_to "Favorites", favorites_path(:user_id => user.id) %></h2> <div class="box">
<% if presenter.has_favorites? %> <h2><%= link_to "Favorites", favorites_path(:user_id => user.id) %></h2>
<div> <div>
<% presenter.favorites.each do |post| %> <% presenter.favorites.each do |post| %>
<%= PostPresenter.preview(post, :tags => "fav:#{user.name}") %> <%= PostPresenter.preview(post, :tags => "fav:#{user.name}") %>
<% end %> <% end %>
</div> </div>
<% else %> </div>
<p>None</p> <% end %>
<% end %>
</div>
<% presenter.subscriptions.each do |subscription| %> <% presenter.subscriptions.each do |subscription| %>
<div class="box"> <div class="box">