mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
80 lines
2.9 KiB
Text
80 lines
2.9 KiB
Text
<div class="header-Outro">
|
|
<div class="row content single-Col">
|
|
<h1>Administration</h1>
|
|
<h2 class="subtitle">Freedom Ain't Free</h2>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content misc-page single-Col txt-Center" style="padding-top: 20px;">
|
|
|
|
<div class="row">
|
|
<div class="col col-100">
|
|
<a href="/admin/reports">Site Reports</a><br>
|
|
<a href="/admin/usage">Site Bandwidth Usage</a>
|
|
</div>
|
|
</div>
|
|
|
|
<% if flash.keys.length > 0 %>
|
|
<div class="alert alert-error alert-block">
|
|
<% flash.keys.each do |key| %>
|
|
<%== flash[key] %>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<div class="row">
|
|
<div class="col col-50">
|
|
<h2>Ban Site</h2>
|
|
<form action="/admin/banhammer" method="POST">
|
|
<%== csrf_token_input_html %>
|
|
<p>Site Username(s):</p>
|
|
<textarea name="usernames" cols="10" rows="5" autocapitalize="off" autocorrect="off"></textarea>
|
|
<div class="select-Container" style="display: block; width: 100px; float: none; margin: 0 auto;">
|
|
<select name="classifier" class="input-Select">
|
|
<option value=""></option>
|
|
<option value="spam">Spam</option>
|
|
<option value="phishing">Phishing</option>
|
|
</select>
|
|
</div>
|
|
<p>Ban sites with same IP <input type="checkbox" name="ban_using_ips" value="1"></p>
|
|
<p><input class="btn-Action" type="submit" value="Ban"></p>
|
|
</form>
|
|
</div>
|
|
<div class="col col-50">
|
|
<h2>Mark as NSFW</h2>
|
|
<form action="/admin/mark_nsfw" method="POST">
|
|
<%== csrf_token_input_html %>
|
|
<p>Site Name:</p>
|
|
<p>
|
|
<input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off">
|
|
</p>
|
|
<p><input class="btn-Action" type="submit" value="Mark NSFW"></p>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col col-50">
|
|
<h2>Upgrade to Supporter</h2>
|
|
<form id="upgradeToSupporter" action="/supporter/update" method="POST">
|
|
<input type="hidden" name="plan_type" value="special">
|
|
<%== csrf_token_input_html %>
|
|
<p>This site will be upgraded to the supporter plan.</p>
|
|
<p>Site Name:</p>
|
|
<p><input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"></p>
|
|
<p><input class="btn-Action" type="submit" value="Upgrade to Supporter"></p>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col col-50">
|
|
<h2>Feature Site</h2>
|
|
<form id="featureSite" action="/admin/feature" method="POST">
|
|
<%== csrf_token_input_html %>
|
|
<p>This site will be featured on the front page and in a special browse section.</p>
|
|
<p>Site Name:</p>
|
|
<p><input type="text" name="username" placeholder="edwardsnowden" autocapitalize="off" autocorrect="off"></p>
|
|
<p><input class="btn-Action" type="submit" value="Feature Site"></p>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|