Skip to content
Browse files

Portrait design tweaks; added no_portrait.png

  • Loading branch information...
1 parent a77c4b3 commit c186e66c1a78adabfd489bfff58c23d434750563 @kossnocorp kossnocorp committed
View
17 app/stylesheets/master.sass
@@ -17,12 +17,6 @@ h1
color: #a00
@include text-shadow(#3e0f10, -1px, 1px, 1px)
-.image-wrapper
- height: 100px
-
- img
- height: 100%
-
h2
font-size: 30px
padding-bottom: 3px
@@ -50,4 +44,13 @@ table.commiters
.portraits
float: left
- margin-right: 10px
+ margin-right: 30px
+
+ .image-wrapper
+ width: 70px
+
+ img
+ width: 100%
+ padding: 5px
+ border: 1px solid #bbb
+ @include box-shadow(#999, 0, 0, 6px)
View
10 app/views/accounts/_account.html.erb
@@ -1,11 +1,13 @@
<td class="commiter">
<div class="commiter-wrapper">
- <% if account.portraits.length > 0 %>
- <ul class="portraits">
+ <ul class="portraits">
+ <% if account.portraits.length > 0 %>
<%= render :partial => 'portrait', :collection => account.portraits %>
- </ul>
- <% end %>
+ <% else %>
+ <li><div class="image-wrapper"><%= image_tag 'no_portrait.png' %></div></li>
+ <% end %>
+ </ul>
<h2><%= account.username %></h2>
View
BIN public/images/no_portrait.png
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 c186e66

Please sign in to comment.
Something went wrong with that request. Please try again.