add ability to restore deleted sites

This commit is contained in:
Kyle Drake 2017-06-03 23:43:05 -07:00
parent c4e307fcf1
commit c9ba1cf0f4
6 changed files with 96 additions and 10 deletions

View file

@ -10,7 +10,7 @@
<meta itemprop="name" content="Neocities" />
<meta itemprop="description" content="Free web hosting and tools that allow anyone to create a website. Join our community today!" />
<meta name="description" content="Free web hosting and tools that allow anyone to create a website. Join our community today!" />
<meta name="keywords" content="free website, free web hosting, html, css, learn to code, free hosting, build a website, create a web page, static hosting, how to make a website" />
<meta name="keywords" content="free website, free web hosting, html, css, learn to code, free hosting, build a website, create a web page, static hosting, how to make a website" />
<link rel="canonical" href="//neocities.org" />

21
views/signin/restore.erb Normal file
View file

@ -0,0 +1,21 @@
<div class="header-Outro">
<div class="row content single-Col txt-Center">
<h1>Restore Site</h1>
<h3 class="subtitle"></h3>
</div>
</div>
<div class="content txt-Center single-Col misc-page">
<%== flash_display %>
<h3>Your site was deleted.</h3>
<p>Would you like to restore your site?<br><br><strong><%= @site.username %>.neocities.org</strong></p>
<form method="POST" action="/signin/restore" class="content">
<input name="csrf_token" type="hidden" value="<%= csrf_token %>">
<input class="btn-Action" type="submit" value="Restore Site">
</form>
<br>
<a href="/">No, please keep this site deleted.</a>
</div>