fixed styling for mod dash

This commit is contained in:
albert
2011-10-15 02:27:19 -04:00
parent ddd036ef97
commit b81e23bb32
7 changed files with 3901 additions and 17 deletions

View File

@@ -1,13 +1,18 @@
div#moderator-dashboard {
div#comment-activity {
width: 45%;
div#c-moderator-dashboards {
width: 60em;
div#col1 {
width: 30em;
float: left;
}
div#post-activity {
width: 45%;
div#col2 {
width: 30em;
float: left;
margin-left: 2em;
}
div.activity {
margin-bottom: 1em;
}
div#ip-addr-search {
@@ -19,11 +24,15 @@ div#moderator-dashboard {
}
table {
margin-bottom: 2em;
width: 26em;
}
caption {
font-weight: bold;
font-size: 1.5em;
text-align: left;
}
th {
text-align: left;
}
}

View File

@@ -0,0 +1,5 @@
class ModActionsController < ApplicationController
def index
@mod_actions = ModAction.search(params[:search]).paginate(params[:page])
end
end

View File

@@ -0,0 +1,25 @@
<div id="c-mod-actions">
<div id="a-index">
<h1>Mod Actions</h1>
<table class="striped">
<thead>
<tr>
<th>Date</th>
<th>User</th>
<th>Message</th>
</tr>
</thead>
<tbody>
<% @mod_actions.each do |mod_action| %>
<tr>
<td><%= mod_action.created_at %></td>
<td><%= link_to mod_action.creator.name, user_path(mod_action.creator) %></td>
<td><%= format_text(mod_actiond.description) %></td>
</tr>
<% end %>
</tbody>
</table>
<%= sequential_paginator(@mod_actions) %>
</div>
</div>

View File

@@ -5,18 +5,18 @@
<%= render "search" %>
<div id="col1">
<%= render "activity_upload" %>
<%= render "activity_note" %>
<%= render "activity_tag" %>
<%= render "activity_wiki_page" %>
<%= render "activity_artist" %>
<%= render "activity_comment" %>
<div class="activity"><%= render "activity_upload" %></div>
<div class="activity"><%= render "activity_note" %></div>
<div class="activity"><%= render "activity_tag" %></div>
<div class="activity"><%= render "activity_wiki_page" %></div>
<div class="activity"><%= render "activity_artist" %></div>
<div class="activity"><%= render "activity_comment" %></div>
</div>
<div id="col2">
<%= render "activity_appeal" %>
<%= render "activity_user_feedback" %>
<%= render "activity_mod_action" %>
<div class="activity"><%= render "activity_appeal" %></div>
<div class="activity"><%= render "activity_user_feedback" %></div>
<div class="activity"><%= render "activity_mod_action" %></div>
</div>
</div>
</div>

View File

@@ -1,5 +1,6 @@
<div id="c-post-appeals">
<div id="a-index">
<h1>Appeals</h1>
<table width="100%">
<thead>
<tr>

View File

@@ -1,5 +1,6 @@
<div id="c-post-flags">
<div id="a-index">
<h1>Flags</h1>
<table width="100%">
<thead>
<tr>

3843
danbooru.struct.sql Normal file

File diff suppressed because it is too large Load Diff