Permalink
Browse files

Added a sidebar and some styling

  • Loading branch information...
mfwit committed Jul 13, 2011
1 parent 5c7d932 commit ce69062473a6d2738fc2723df102a65402aedfc5
Showing with 37 additions and 4 deletions.
  1. +14 −4 app/views/users/show.html.erb
  2. +23 −0 public/stylesheets/custom.css
@@ -1,4 +1,14 @@
-<h1>
- <%= gravatar_for @user %>
- <%= @user.name %>
-</h1>
+<table class="profile" summary="Profile Information">
+ <tr>
+ <td class="main">
+ <h1>
+ <%= gravatar_for @user %>
+ <%= @user.name %>
+ </h1>
+ </td>
+ <td class="sidebar round">
+ <strong>Name</strong> <%= @user.name %><br />
+ <strong>URL</strong> <%= link_to user_path(@user), @user %>
+ </td>
+ </tr>
+</table>
@@ -105,4 +105,27 @@ footer {
footer nav{
float: none;
+}
+
+/* User show page */
+
+table.profile {
+ width: 100%;
+ margin-bottom: 0;
+}
+
+td.main {
+ width: 70%;
+ padding: 1em;
+}
+td.sidebar {
+ width: 30%;
+ padding: 1em;
+ vertical-align: top;
+ background: #ffc;
+}
+
+.profile img.gravatar {
+ border: 1px solid #999;
+ margin-bottom: -15px;
}

0 comments on commit ce69062

Please sign in to comment.