Set up page titles
This commit is contained in:
parent
9d17c1d838
commit
88ccf7d958
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>SummonPlayer</title>
|
<title><%= @title.present? ? "#{@title} | #{t('site_title')}" : t("site_title") %></title>
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<%= csp_meta_tag %>
|
<%= csp_meta_tag %>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<% @title = "Log in" %>
|
||||||
<%= form_with url: sessions_path, method: :post do |f| %>
|
<%= form_with url: sessions_path, method: :post do |f| %>
|
||||||
<h2><%= t ".log_in" %></h2>
|
<h2><%= t ".log_in" %></h2>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<% @title = "Edit account details" %>
|
||||||
<%= render partial: "form",
|
<%= render partial: "form",
|
||||||
locals: {
|
locals: {
|
||||||
user: @user,
|
user: @user,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<% @title = "Edit account details" %>
|
||||||
<%= turbo_stream.replace "flash_wrapper" do %>
|
<%= turbo_stream.replace "flash_wrapper" do %>
|
||||||
<%= render "shared/flash" %>
|
<%= render "shared/flash" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<% @title = "Register" %>
|
||||||
<%= render partial: "form",
|
<%= render partial: "form",
|
||||||
locals: {
|
locals: {
|
||||||
user: @user,
|
user: @user,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<% @title = "Register" %>
|
||||||
<%= turbo_stream.replace "flash_wrapper" do %>
|
<%= turbo_stream.replace "flash_wrapper" do %>
|
||||||
<%= render "shared/flash" %>
|
<%= render "shared/flash" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
<% @title = @user.username %>
|
||||||
<h2><%= @user.username %></h2>
|
<h2><%= @user.username %></h2>
|
||||||
<h4><%= @user.full_name %></h4>
|
<h4><%= @user.full_name %></h4>
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
en:
|
en:
|
||||||
|
site_title: Summon Player
|
||||||
home: Home
|
home: Home
|
||||||
log_in: Log in
|
log_in: Log in
|
||||||
log_out: Log out
|
log_out: Log out
|
||||||
|
|
Loading…
Reference in New Issue