Style tweak and stats

This commit is contained in:
Will Bradley 2013-08-28 08:40:36 -07:00
parent accec4edb1
commit 2231d124a6
3 changed files with 9 additions and 2 deletions

View File

@ -46,3 +46,9 @@ box-shadow: inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);
cursor: pointer; cursor: pointer;
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false); filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
} }
.member-status-symbol {
vertical-align: middle;
}
.lined-table td {
border-bottom: 1px dashed black;
}

View File

@ -101,7 +101,7 @@ class User < ActiveRecord::Base
def member_status_symbol def member_status_symbol
results = member_status_calculation results = member_status_calculation
return "<img src='/#{results[:icon]}#{results[:flair]}-coin.png' title='#{results[:message]}' />" return "<img src='/#{results[:icon]}#{results[:flair]}-coin.png' title='#{results[:message]}' class='member-status-symbol' />"
end end
def delinquency def delinquency

View File

@ -7,7 +7,7 @@
<b>Most Active Card Last 7 Days:</b> <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> times) <b>Most Active Card Last 7 Days:</b> <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> times)
</p> </p>
<table> <table class="lined-table">
<col /> <col />
<col /> <col />
<col class="col_highlight" /> <col class="col_highlight" />
@ -32,6 +32,7 @@
<% if card.user.nil? %> <% if card.user.nil? %>
n/a n/a
<% else %> <% else %>
<%= raw(card.user.member_status_symbol) %>
<%= link_to card.user.name , card %> <%= link_to card.user.name , card %>
<% end %> <% end %>
</td> </td>