Contacts overview: four columns instead of just one.

This commit is contained in:
Roland Jesse 2012-04-09 21:35:39 +02:00
parent d1f5d93ffb
commit 9e14022228
2 changed files with 24 additions and 1 deletions

View file

@ -1,6 +1,28 @@
<% title t("titles.contacts.index") %>
<% @contacts.each do |c| %>
<% ctr = 1 %>
<div class="row">
<% @contacts.each do |c| %>
<% if ctr.modulo(4) == 0 %>
<div class="threecol last contact_summary">
<% else %>
<div class="threecol contact_summary">
<% end %>
<span class="name_summary"><%= c.firstname.blank? ? "&nbsp;".html_safe : c.firstname %></span><br />
<strong><%= c.lastname.blank? ? "&nbsp;".html_safe : c.lastname %></strong>
<br />
<%= c.birth_date_string.blank? ? "&nbsp;".html_safe : c.birth_date_string %>
</div> <%# threecol %>
<% if ctr.modulo(4) == 0 %>
</div>
<div class="row">
<% end %>
<% ctr += 1 %>
<% end %>
</div> <%# row %>
<% @contacts.each do |c| %>
<div class="row contact_summary">
<div class="onecol avatar_summary">
<img src="/images/dummy_buddy_m.png" />

View file

@ -288,6 +288,7 @@ font-weight: 400;
border-radius: 5;
box-shadow: 3px 3px 2px #888;
margin-top: 2em;
margin-bottom: 1ex;
padding-top: 5px;
padding-bottom: 5px;
}