diff --git a/app.rb b/app.rb
index 5311909c..4735405b 100644
--- a/app.rb
+++ b/app.rb
@@ -681,7 +681,7 @@ get '/admin' do
require_admin
@banned_sites = Site.select(:username).filter(is_banned: true).order(:username).all
@nsfw_sites = Site.select(:username).filter(is_nsfw: true).order(:username).all
- slim :'admin'
+ erb :'admin'
end
post '/admin/banip' do
diff --git a/views/admin.erb b/views/admin.erb
new file mode 100644
index 00000000..dea9e759
--- /dev/null
+++ b/views/admin.erb
@@ -0,0 +1,54 @@
+
+
+
+
+ <% if flash.keys.length > 0 %>
+
+ <% flash.keys.each do |key| %>
+ <%== flash[key] %>
+ <% end %>
+
+ <% end %>
+
+
+
+
+
\ No newline at end of file
diff --git a/views/admin.slim b/views/admin.slim
deleted file mode 100644
index 7781adc6..00000000
--- a/views/admin.slim
+++ /dev/null
@@ -1,50 +0,0 @@
-.content-Base
- .row.content
- .col
- h1.beta SECRET NSA BACKDOOR REPORTING ZONE
-
- .row.content
- .col.col-50
-
- h3 Ban User
-
- form action="/admin/banhammer" method="POST"
- input name="csrf_token" type="hidden" value="#{csrf_token}"
- p Site Name:
- input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"
- br
- input.btn.btn-danger type="submit" value="Ban"
-
- h3 Ban By IP
- p All sites with this IP address will be removed.
- form action="/admin/banip" method="POST"
- input name="csrf_token" type="hidden" value="#{csrf_token}"
- p Site Name:
- input type="text" name="username" placeholder="starbucksoffer" autocapitalize="off" autocorrect="off"
- br
- input.btn.btn-danger type="submit" value="Ban"
-
- .col.col-50
- h2 Banned Terrorists
- .scroll-Admin
- - @banned_sites.each do |banned_site|
- = banned_site.username
- br
-
-
- .row.content
- .col.col-50
- h3 Mark NSFW
-
- form action="/admin/mark_nsfw" method="POST"
- input name="csrf_token" type="hidden" value="#{csrf_token}"
- p Site name:
- input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"
- br
- input.btn.btn-danger type="submit" value="Mark NSFW"
- .col.col-50
- h2 NSFW Sites
- .scroll-Admin
- - @nsfw_sites.each do |nsfw_site|
- = nsfw_site.username
- br
\ No newline at end of file