Permalink
Browse files

Fix commiter markup

  • Loading branch information...
1 parent c186e66 commit 6599a0288962586bb9f3d8a4d2cd3fb248d618e8 @kossnocorp kossnocorp committed Jan 2, 2011
Showing with 62 additions and 55 deletions.
  1. +7 −2 app/stylesheets/master.sass
  2. +55 −53 app/views/accounts/_account.html.erb
  3. BIN public/images/no_portrait.png
@@ -45,12 +45,17 @@ table.commiters
.portraits
float: left
margin-right: 30px
+ width: 1px
.image-wrapper
width: 70px
img
width: 100%
padding: 5px
- border: 1px solid #bbb
- @include box-shadow(#999, 0, 0, 6px)
+ border: 1px solid #ddd
+ @include box-shadow(#C2C2C2, 0, 0, 5px)
+
+.commiter-data
+ padding-left: 95px
+ //float: left
@@ -9,63 +9,65 @@
<% end %>
</ul>
- <h2><%= account.username %></h2>
+ <div class="commiter-data">
+ <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>
- <td>Nicknames:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.nicks %>
- </ul>
- </td>
- </tr>
+ <% if account.names.length > 0 %>
+ <h3>
+ Other accouts: <%= account.names.map(&:value).join(', ') %>
+ </h3>
<% end %>
- <% if account.sites.length > 0 %>
- <tr>
- <td>Sites:</td>
- <td>
- <ul>
- <%= render :partial => 'site', :collection => account.sites %>
- </ul>
- </td>
- </tr>
- <% end %>
+ <table>
+ <% if account.nicks.length > 0 %>
+ <tr>
+ <td>Nicknames:</td>
+ <td>
+ <ul>
+ <%= render :partial => 'name', :collection => account.nicks %>
+ </ul>
+ </td>
+ </tr>
+ <% end %>
- <% if account.services.length > 0 %>
- <tr>
- <td>Services:</td>
- <td>
- <ul>
- <%= render :partial => 'service', :collection => account.services %>
- </ul>
- </td>
- </tr>
- <% end %>
+ <% if account.sites.length > 0 %>
+ <tr>
+ <td>Sites:</td>
+ <td>
+ <ul>
+ <%= render :partial => 'site', :collection => account.sites %>
+ </ul>
+ </td>
+ </tr>
+ <% end %>
- <!-- FIXME: unsure how to link to ISBN. :-( -->
- <!--
- <% if account.books.length > 0 %>
- <tr>
- <td>Books:</td>
- <td>
- <ul>
- <% account.books.each do |book| %>
- <li><%= book.key %></li>
- <% end %>
- </ul>
- </td>
- </tr>
- <% end %>
- -->
- </table>
+ <% if account.services.length > 0 %>
+ <tr>
+ <td>Services:</td>
+ <td>
+ <ul>
+ <%= render :partial => 'service', :collection => account.services %>
+ </ul>
+ </td>
+ </tr>
+ <% end %>
+
+ <!-- FIXME: unsure how to link to ISBN. :-( -->
+ <!--
+ <% if account.books.length > 0 %>
+ <tr>
+ <td>Books:</td>
+ <td>
+ <ul>
+ <% account.books.each do |book| %>
+ <li><%= book.key %></li>
+ <% end %>
+ </ul>
+ </td>
+ </tr>
+ <% end %>
+ -->
+ </table>
+ </div>
</div>
</td>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6599a02

Please sign in to comment.