Permalink
Browse files

initial rubycommitters css changes

  • Loading branch information...
1 parent f2730aa commit fb9745d5ebe0dbb9eb105727a008425cfe9e6277 Bernd Eckardt committed Jan 18, 2011
@@ -1,22 +1,24 @@
module AccountsHelper
def link_to_service name, service
+ service_url = ""
case service.name
when 'twitter'
- link_to name, 'http://twitter.com/' + service.key
+ service_url = 'http://twitter.com/'
when 'friendfeed'
- link_to name, 'http://friendfeed.com/' + service.key
+ service_url = 'http://friendfeed.com/'
when 'mixi'
- link_to name, 'http://mixi.jp/show_friend.pl?id=' + service.key
+ service_url = 'http://mixi.jp/show_friend.pl?id='
when 'github'
- link_to name, 'http://github.com/' + service.key
+ service_url = 'http://github.com/'
when 'facebook'
if service.key =~ /^\s*\d+$/
- link_to name, 'http://www.facebook.com/profile.php?id=' + service.key
+ service_url = 'http://www.facebook.com/profile.php?id='
else
- link_to name, 'http://www.facebook.com/' + service.key
+ service_url = 'http://www.facebook.com/'
end
when 'iddy'
- link_to name, 'http://iddy.jp/profile/' + service.key
+ service_url = 'http://iddy.jp/profile/'
end
+ link_to " ", service_url + service.key, :class => service.name, :title => service.name unless service_url.empty?
end
end
@@ -1,76 +1,74 @@
-<li>
- <table>
- <tr>
- <td>Account:</td>
- <td><%= account.username %></td>
- </tr>
-
- <% unless account.names.empty? %>
- <tr>
- <td>Names:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.names %>
- </ul>
- </td>
- </tr>
+<li class="account">
+ <div class="account-name">
+ <div class="official">
+ official ruby committer
+ </div>
+ <%= account.username %>
+ </div>
+ <div class="details">
+ <div class="portraits">
+ <% unless account.portraits.empty? %>
+ <%= render :partial => 'portrait', :collection => account.portraits %>
+ <% else %>
+ <div class='image-wrapper'>
+ <div class="frame">
+ <%= image_tag "anonymous.png" %>
+ </div>
+ </div>
<% end %>
-
+ </div>
<% unless account.nicks.empty? %>
- <tr>
- <td>Nicknames:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.nicks %>
- </ul>
- </td>
- </tr>
+ <div class="nick-names">
+ <!-- <div class="label">
+ Nicknames:
+ </div> -->
+ <ul>
+ <%= render :partial => 'name', :collection => account.nicks %>
+ </ul>
+ </div>
<% end %>
- <% unless account.sites.empty? %>
- <tr>
- <td>Sites:</td>
- <td>
- <ul>
- <%= render :partial => 'site', :collection => account.sites %>
- </ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.services.empty? %>
- <tr>
- <td>Services:</td>
- <td>
- <ul>
- <%= render :partial => 'service', :collection => account.services %>
- </ul>
- </td>
- </tr>
+ <% unless account.names.empty? %>
+ <div class="user-names">
+ <!-- <div class="label">
+ Names:
+ </div> -->
+ <ul>
+ <%= render :partial => 'name', :collection => account.names %>
+ </ul>
+ </div>
<% end %>
- <% unless account.portraits.empty? %>
- <tr>
- <td>Portraits:</td>
- <td>
+ <div class="more">
+ <% unless account.sites.empty? %>
+ <div class="sites">
+ <div class="label">
+ Sites:
+ </div>
<ul>
- <%= render :partial => 'portrait', :collection => account.portraits %>
+ <%= render :partial => 'site', :collection => account.sites %>
</ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.books.empty? %>
- <tr>
- <td>Books:</td>
- <td>
+ </div>
+ <% end %>
+ <% unless account.books.empty? %>
+ <div class="books">
+ <div class="label">
+ Books:
+ </div>
<ul>
<% account.books.each do |book| %>
<li><a href="http://www.amazon.<%= book.isbn.match(/^4/) ? "co.jp":"com" %>/dp/<%= book.isbn %>"><%= book.key %></a></li>
<% end %>
</ul>
- </td>
- </tr>
- <% end %>
- </table>
+ </div>
+ <% end %>
+ </div>
+ </div>
+ <div class="services">
+ <% unless account.services.empty? %>
+ <ul>
+ <%= render :partial => 'service', :collection => account.services %>
+ </ul>
+ <% end %>
+ </div>
</li>
@@ -1,3 +1,5 @@
<div class='image-wrapper'>
- <%= image_tag portrait.url %>
+ <div class="frame">
+ <%= image_tag portrait.url %>
+ </div>
</div>
@@ -1,5 +1,10 @@
-<h1>Ruby Committers</h1>
-<%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org' %>
-<ul>
+<div id="heading">
+ <h1>Ruby Committers</h1>
+ <%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org' %>
+</div>
+<ul class="accounts">
<%= render :partial => 'account', :collection => @accounts %>
</ul>
+<div id="footer">
+
+</div>
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit fb9745d

Please sign in to comment.