Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactored logic in account partial

  • Loading branch information...
commit a7732e771922aedb704b7b0bb2be8e8587a8150c 1 parent bf373a4
@joemsak joemsak authored
Showing with 10 additions and 14 deletions.
  1. +10 −14 app/views/accounts/_account.html.erb
View
24 app/views/accounts/_account.html.erb
@@ -21,30 +21,26 @@
<p><strong>aka:</strong> <%= account.nicks.collect {|n| n.value }.to_sentence %></p>
<% end %>
</header>
-
- <div class="col">
- <% if full -%>
- <% unless account.books.empty? %>
+ <% if full -%>
+ <% unless account.books.empty? %>
+ <div class="col">
<h3 id="title-books">Books</h3>
<ul>
<%= render :partial => 'book', :collection => account.books %>
</ul>
- <% end %>
+ </div>
<% end -%>
- </div>
-
- <div class="col last">
- <% if full -%>
- <% unless account.sites.empty? %>
+ <% unless account.sites.empty? %>
+ <div class="col last">
<h3 id="title-sites">Sites</h3>
<ul>
<%= render :partial => 'site', :collection => account.sites %>
</ul>
- <% end %>
- <% end -%>
- </div>
+ </div>
+ <% end %>
+ <% end -%>
</article>
-<% if full -%>
+<% if full and account.services.any? -%>
<footer class="my_services">
<ul>
<%= render :partial => 'service', :collection => account.services %>
Please sign in to comment.
Something went wrong with that request. Please try again.