52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Tokitranslate</title>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<%= csrf_meta_tags %>
|
|
<%= csp_meta_tag %>
|
|
|
|
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
|
|
<%= javascript_importmap_tags %>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="d-flex mb-3">
|
|
<div class="p-2">
|
|
<%= link_to "Dictionary", dictionary_index_path %>
|
|
<% if user_signed_in? %>
|
|
<pre style="display: inline;">|</pre>
|
|
<%= link_to "Languages", admin_languages_path %>
|
|
<pre style="display: inline;">|</pre>
|
|
<%= form_tag '/set_active_language', class: "d-inline" do %>
|
|
<%= active_language_select_tag %>
|
|
<%= submit_tag "Switch Language" %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
<div class="ms-auto p-2">
|
|
<% if user_signed_in? %>
|
|
<p style="display: inline;">Welcome <%= current_user.username %></p>
|
|
<pre style="display: inline;">|</pre>
|
|
<%= link_to "Sign Out", destroy_user_session_path, data: { turbo_method: :delete } %>
|
|
<% else %>
|
|
<%= link_to "Sign In", new_user_session_path %>
|
|
<pre style="display: inline;">|</pre>
|
|
<%= link_to "Register", new_user_registration_path %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="row justify-content-center">
|
|
<div class="col-8">
|
|
<p class="notice"><%= notice %></p>
|
|
<p class="alert"><%= alert %></p>
|
|
<%= yield %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|