mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
move logic to web page front
This commit is contained in:
parent
c9e287fe35
commit
841ad3e44d
3 changed files with 18 additions and 5 deletions
1
app.rb
1
app.rb
|
@ -30,7 +30,6 @@ error do
|
|||
end
|
||||
|
||||
get '/?' do
|
||||
dashboard_if_signed_in
|
||||
erb :index, layout: false
|
||||
end
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</a>
|
||||
<ul class="h-Nav constant-Nav">
|
||||
<li>
|
||||
<a href="/" title="back to the start">NeoCities</a>
|
||||
<a href="/" title="Back to the Start">NeoCities</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/browse" title="Browse NeoCities member websites">Browse</a>
|
||||
|
|
|
@ -73,9 +73,23 @@
|
|||
</ul>
|
||||
|
||||
<ul class="status-Nav">
|
||||
<li>
|
||||
<a href="/signin" class="sign-In" title="Sign into your account">Sign In</a>
|
||||
</li>
|
||||
|
||||
<% if !signed_in? %>
|
||||
<li>
|
||||
<a href="/signin" class="sign-In" title="Sign into your account">Sign In</a>
|
||||
</li>
|
||||
<% else %>
|
||||
<li>
|
||||
<a href="/dashboard" class="sign-In">Dashboard</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/settings" class="sign-In">Settings</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/signout" class="sign-In">Signout</a>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
|
|
Loading…
Add table
Reference in a new issue