TokiTranslate/app/views/layouts/application.html.erb

44 lines
1.2 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 %>
<noscript>
<style type="text/css">
#active_language_submit_tag {
display: inline !important;
}
</style>
</noscript>
</head>
<body>
<div class="container">
<div class="d-flex mb-3">
<div class="p-2">
<%= link_to "Dictionary", dictionary_index_path %>
<%= form_tag '/set_active_language', class: 'd-inline', id: 'active_language_form' do %>
<%= active_language_select_tag %>
<%= submit_tag "Switch Language", id: "active_language_submit_tag" %>
<% 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>