Layout update to admin panel

Layout update to admin panel, converting over bootstrap classes to brass tacks.

Fixes margin, padding and broken floats.

Put list of usernames into a fixed height scrollable window so as to make the page shorter.
This commit is contained in:
Scott O'Hara 2013-08-20 22:13:10 -04:00
parent 6389b267f2
commit df6e6da909
2 changed files with 48 additions and 38 deletions

View file

@ -27,3 +27,10 @@ select, textarea, input[type="text"], input[type="password"], input[type="dateti
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input { select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
line-height:inherit; height:auto!important} line-height:inherit; height:auto!important}
.scroll-Admin{
background:rgba(255,255,255,.4);
border:1px solid #ccc;
max-height:400px;
overflow:auto;
}

View file

@ -1,37 +1,40 @@
.row .content-Base
.span12 .row.content
h1 SECRET NSA BACKDOOR REPORTING ZONE .col
h1 SECRET NSA BACKDOOR REPORTING ZONE
.row .row
.span6 .col.col-50
h2 Ban User h2 Ban User
form action="/admin/banhammer" method="POST" form action="/admin/banhammer" method="POST"
input name="csrf_token" type="hidden" value="#{csrf_token}" input name="csrf_token" type="hidden" value="#{csrf_token}"
p Site Name: p Site Name:
input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off" input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"
br br
input.btn.btn-danger type="submit" value="Ban" input.btn.btn-danger type="submit" value="Ban"
.span6 .col.col-50
h2 Banned Terrorists h2 Banned Terrorists
- @banned_sites.each do |banned_site| .scoll-Admin
= banned_site.username - @banned_sites.each do |banned_site|
br = banned_site.username
br
.row .row
.span6 .col.col-50
h2 Mark NSFW h2 Mark NSFW
form action="/admin/mark_nsfw" method="POST" form action="/admin/mark_nsfw" method="POST"
input name="csrf_token" type="hidden" value="#{csrf_token}" input name="csrf_token" type="hidden" value="#{csrf_token}"
p Site name: p Site name:
input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off" input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"
br br
input.btn.btn-danger type="submit" value="Mark NSFW" input.btn.btn-danger type="submit" value="Mark NSFW"
.span6 .col.col-50
h2 NSFW Sites h2 NSFW Sites
- @nsfw_sites.each do |nsfw_site| .scroll-Admin
= nsfw_site.username - @nsfw_sites.each do |nsfw_site|
br = nsfw_site.username
br