Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set correct position to portraits

  • Loading branch information...
commit a77c4b379997beb50a77b6fbedfcf088f0156522 1 parent 9e3c21d
@kossnocorp kossnocorp authored
View
6 app/stylesheets/master.sass
@@ -38,8 +38,6 @@ table.commiters
width: 100%
border-spacing: 20px
- tr.commiters
-
td.commiter
@include border-radius(10px)
vertical-align: top
@@ -49,3 +47,7 @@ table.commiters
.commiter-wrapper
padding: 15px 20px
+
+.portraits
+ float: left
+ margin-right: 10px
View
20 app/views/accounts/_account.html.erb
@@ -1,11 +1,20 @@
<td class="commiter">
<div class="commiter-wrapper">
+
+ <% if account.portraits.length > 0 %>
+ <ul class="portraits">
+ <%= render :partial => 'portrait', :collection => account.portraits %>
+ </ul>
+ <% end %>
+
<h2><%= account.username %></h2>
+
<% if account.names.length > 0 %>
<h3>
Other accouts: <%= account.names.map(&:value).join(', ') %>
</h3>
<% end %>
+
<table>
<% if account.nicks.length > 0 %>
<tr>
@@ -40,17 +49,6 @@
</tr>
<% end %>
- <% if account.portraits.length > 0 %>
- <tr>
- <td>Portraits:</td>
- <td>
- <ul>
- <%= render :partial => 'portrait', :collection => account.portraits %>
- </ul>
- </td>
- </tr>
- <% end %>
-
<!-- FIXME: unsure how to link to ISBN. :-( -->
<!--
<% if account.books.length > 0 %>
View
4 app/views/accounts/_portrait.html.erb
@@ -1,3 +1,3 @@
-<div class='image-wrapper'>
+<li class='image-wrapper'>
<%= image_tag portrait.url %>
-</div>
+</li>
Please sign in to comment.
Something went wrong with that request. Please try again.