fixes #1276
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user