mirror of
https://github.com/neocities/neocities.git
synced 2025-08-05 17:18:02 +02:00
switch sites ability, some cleanup
This commit is contained in:
parent
d0970cdf9e
commit
21b0848030
4 changed files with 70 additions and 45 deletions
|
@ -39,16 +39,18 @@
|
|||
<%= current_site.username %> <b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu pull-left">
|
||||
<li class="dropdown-submenu pull-left">
|
||||
<a tabindex="-1" href="#">Change Site</a>
|
||||
<ul class="dropdown-menu">
|
||||
<% current_site.other_sites.each do |site| %>
|
||||
<li>
|
||||
<a href="#"><%= site.username %></a><br>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% if current_site.other_sites_dataset.count > 0 %>
|
||||
<li class="dropdown-submenu pull-left">
|
||||
<a tabindex="-1" href="#">Switch Site</a>
|
||||
<ul class="dropdown-menu">
|
||||
<% current_site.other_sites_dataset.select(:username).all.each do |site| %>
|
||||
<li>
|
||||
<a href="/signin/<%= site.username %>"><%= site.username %></a><br>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<li>
|
||||
<a href="/dashboard" class="sign-In">Edit Site</a>
|
||||
</li>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<form method="POST" action="/settings/change_email">
|
||||
<%== csrf_token_input_html %>
|
||||
|
||||
<p>Current Email: <strong><%= current_site.email %></strong></p>
|
||||
<p>Current Email: <strong><%= parent_site.email %></strong></p>
|
||||
<p>New Email:</p>
|
||||
<input class="input-Area" name="email" type="text">
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue