tweaks to user profile layout

This commit is contained in:
albert
2013-02-23 17:14:01 -05:00
parent 4a61498f0e
commit eb08c12998
3 changed files with 111 additions and 62 deletions

View File

@@ -24,22 +24,16 @@
<% end %>
</div>
<div class="box">
<h2><%= link_to "Subscriptions", posts_path(:tags => "sub:#{user.name}") %></h2>
<% presenter.subscriptions.each do |subscription| %>
<div class="box">
<h3>
<%= link_to subscription.pretty_name, posts_path(:tags => "sub:#{user.name}:#{subscription.name}") %>
&ndash;
<%= presenter.tag_links_for_subscription(self, subscription) %>
</h3>
<% presenter.subscriptions.each do |subscription| %>
<div class="box">
<h2>
Subscription: <%= link_to subscription.pretty_name, posts_path(:tags => "sub:#{user.name}:#{subscription.name}") %>
</h2>
<div class="box">
<% presenter.posts_for_subscription(subscription).each do |post| %>
<%= PostPresenter.preview(post) %>
<% end %>
</div>
<div class="box">
<% presenter.posts_for_subscription(subscription).each do |post| %>
<%= PostPresenter.preview(post) %>
<% end %>
</div>
<% end %>
</div>
</div>
<% end %>