color feedback in mod dashboard

This commit is contained in:
albert
2013-02-21 13:17:54 -05:00
parent 293c490e3b
commit b071cabc76
2 changed files with 9 additions and 1 deletions

View File

@@ -22,6 +22,14 @@ div#c-moderator-dashboards {
div#activity-search {
margin-bottom: 2em;
}
tr.feedback-category-positive {
background: #DDFFDD !important;
}
tr.feedback-category-negative {
background: #FFDDDD !important;
}
table {
width: 26em;

View File

@@ -9,7 +9,7 @@
</thead>
<tbody>
<% @dashboard.user_feedbacks.each do |record| %>
<tr class="user-record-score-<%= record.category %>">
<tr class="feedback-category-<%= record.category %>">
<td><%= link_to(record.user.name, user_path(record.user)) %></td>
<td><%= format_text(record.body) %></td>
<td><%= time_ago_in_words_tagged(record.created_at) %></td>