better usage of the asset pipeline for page specific css and a more concise user#show

This commit is contained in:
Robin Liao
2011-09-03 01:51:02 -07:00
parent 8f4720b1d8
commit a84b5f5e68
3 changed files with 22 additions and 23 deletions

View File

@@ -1,4 +1,8 @@
/*= require "smoothness/jquery-ui-1.8.5.custom.css" */ /*
*= require_self
*= require "smoothness/jquery-ui-1.8.5.custom.css"
*= require_tree .
*/
$link_color: #006FFA; $link_color: #006FFA;
$link_hover_color: #9093FF; $link_hover_color: #9093FF;

View File

@@ -0,0 +1,3 @@
small { font-size: 80% }
dt { float: left; margin: 0 20px 0 0; width: 200px; }
dd { margin: 0 }

View File

@@ -1,17 +1,9 @@
<div id="c-users"> <div id="c-users">
<div id="a-show"> <div id="a-show">
<h1>Show User: <%= CurrentUser.pretty_name %></h1> <h1><%= CurrentUser.pretty_name %> <small>[<%= @presenter.level %>]</small></h1>
<div><small>Member since <strong><%= @presenter.join_date %></strong> with the help of <strong><%= @presenter.inviter(self) %></strong></small></div>
<dl> <dl>
<dt>Join Date</dt>
<dd><%= @presenter.join_date %></dd>
<dt>Inviter</dt>
<dd><%= @presenter.inviter(self) %></dd>
<dt>Level</dt>
<dd><%= @presenter.level %></dd>
<dt>Upload Limit</dt> <dt>Upload Limit</dt>
<dd><%= @presenter.upload_limit %></dd> <dd><%= @presenter.upload_limit %></dd>