Skip to content
Browse files

markup ready to be styled

  • Loading branch information...
1 parent 89a36f7 commit bdb884405e6c5d624bf991bb5a47247557b14ea9 Chad Crissman committed Jan 5, 2011
Showing with 66 additions and 68 deletions.
  1. +47 −63 app/views/accounts/_account.html.erb
  2. +19 −5 app/views/accounts/index.html.erb
View
110 app/views/accounts/_account.html.erb
@@ -1,79 +1,63 @@
-<li>
- <table>
- <tr>
- <td>Account:</td>
- <td><%= account.username %></td>
- </tr>
+<li class="profile">
+ <section>
+ <div class="portrait">
+ <% unless account.portraits.empty? %>
+ <% account.portraits.each do |portrait| %>
+ <%= image_tag portrait.url %>
+ <% end %>
+ <% end %>
+ </div>
<% unless account.names.empty? %>
- <tr>
- <td>Names:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.names %>
- </ul>
- </td>
- </tr>
+ <h1>Name</h1>
+ <ul class="names">
+ <% account.names.each do |name| %>
+ <li><%= name.value %></li>
+ <% end %>
+ </ul>
<% end %>
<% unless account.nicks.empty? %>
- <tr>
- <td>Nicknames:</td>
- <td>
- <ul>
- <%= render :partial => 'name', :collection => account.nicks %>
- </ul>
- </td>
- </tr>
+ <h1>Nicknames</h1>
+ <ul class="nicknames">
+ <% account.nicks.each do |nick| %>
+ <li><%= nick.value %></li>
+ <% end %>
+ </ul>
<% end %>
+ <h1>Account</h1>
+ <p class="account"><%= account.username %></p>
+
<% unless account.sites.empty? %>
- <tr>
- <td>Sites:</td>
- <td>
- <ul>
- <%= render :partial => 'site', :collection => account.sites %>
- </ul>
- </td>
- </tr>
+ <h1>Sites</h1>
+ <ul class="sites">
+ <% account.sites.each do |site| %>
+ <li><%= link_to site.title, site.url %></li>
+ <% end %>
+ </ul>
<% end %>
<% unless account.services.empty? %>
- <tr>
- <td>Services:</td>
- <td>
- <ul>
- <%= render :partial => 'service', :collection => account.services %>
- </ul>
- </td>
- </tr>
- <% end %>
-
- <% unless account.portraits.empty? %>
- <tr>
- <td>Portraits:</td>
- <td>
- <ul>
- <%= render :partial => 'portrait', :collection => account.portraits %>
- </ul>
- </td>
- </tr>
+ <h1>Services</h1>
+ <ul class="services">
+ <% account.services.each do |service| %>
+ <li><%= link_to_service service.name, service %></li>
+ <% end %>
+ </ul>
<% end %>
<!-- FIXME: unsure how to link to ISBN. :-( -->
- <!--
- <% unless account.books.empty? %>
- <tr>
- <td>Books:</td>
- <td>
- <ul>
- <% account.books.each do |book| %>
- <li><%= book.key %></li>
- <% end %>
- </ul>
- </td>
- </tr>
- <% end %>
+ <!--
+ <% unless account.books.empty? %>
+ <h1>Books</h1>
+ <ul class="books">
+ <% account.books.each do |book| %>
+ <li><%= book.key %></li>
+ <% end %>
+ </ul>
+ <% end %>
-->
- </table>
+
+ </section>
</li>
View
24 app/views/accounts/index.html.erb
@@ -1,5 +1,19 @@
-<h1>Ruby Committers</h1>
-<%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org' %>
-<ul>
-<%= render :partial => 'account', :collection => @accounts %>
-</ul>
+<header role="banner">
+ <h1>Ruby Committers</h1>
+</header>
+
+<%= link_to 'fork me on github', 'http://github.com/tenderlove/rubycommitters.org', :class => 'fork-me' %>
+
+<article class="team-list">
+ <!-- <header>
+ <h1>Meet the Ruby Core Team</h1>
+ </header> -->
+
+ <ul>
+ <%= render :partial => 'account', :collection => @accounts %>
+ </ul>
+</article>
+
+<footer role="contentinfo">
+ <p>Site design by <a href="http://www.ccrissman.com">Chad Crissman</a></p>
+</footer>

0 comments on commit bdb8844

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