Commit cf9c4f46 authored by mh's avatar mh
Browse files

make it more clear what kind of title and set it for all views

parent c5cc4fc5
<h3><%= @page_title = t(:administration) %></h3>
<ul class="menu">
<li><%= link_to (t :manage_users) , users_path %></li>
<li><%= link_to (t :manage_domains) , domains_path %></li>
......
<h3><%= @page_title = t(:app_passwords) %></h3>
<% if @app_pw %>
<b> <%= t(:your_app_pw_is) %> </b>
<p><%= @app_pw %></p>
<% end %>
<h3><%= t :app_passwords %></h3>
<p>
<%= t :app_passwords_help %>
</p>
......
<h3><%= t :delete_account %></h3>
<h3><%= @page_title = t(:delete_account) %></h3>
<p>
<%= t :delete_account_help %>
</p>
......
<h3><%= @page_title = t(:edit_domain) %></h3>
<%= form_tag("#{domains_path}/#{URI::escape(@domain['domain'])}", method: "post") do %>
<b><%= @domain['domain'] %></b><br /> <br/>
<%= label_tag(:forward, (t :alias_or_catchall_to)) %>
......
<h3><%= @page_title = t(:manage_domains) %></h3>
<%= link_to (t :new), domains_create_path %>
&nbsp;|&nbsp;
<%= link_to "Cancel", admin_path %>
......
<h3><%= @page_title = t(:new_domain) %></h3>
<%= form_tag(domains_create_path, method: "post") do %>
<%= label_tag(:domain, t(:domain)) %>
<%= text_field_tag(:domain, @domain['domain']) %>
......
<%= link_to "Cancel", admin_path %>
<h3><%= @page_title = t(:create_invite_tokens) %></h3>
<%= link_to "Cancel", root_path %>
<br />
<br />
......@@ -19,5 +20,6 @@
<%= date_select(:expire, 'by', default: 3.months.from_now) %>
<p>
<%= submit_tag(t :submit) %>
<%= link_to "Cancel", root_path %>
</p>
<% end %>
<!DOCTYPE html>
<html>
<head>
<title><% if Admin::Enabled -%>iAdmin<% else -%>immerda Users<% end -%><%= " - #{strip_tags(@title)}" if @title %></title>
<title><% if Admin::Enabled -%>iAdmin<% else -%>immerda Users<% end -%><%= " - #{strip_tags(@page_title)}" if @page_title %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
......
<h3><%= t :change_password %></h3>
<h3><%= @page_title = t(:change_password) %></h3>
<%= form_tag(password_path, method: "post") do %>
<table>
<tr><td>
......
<h3><%= t :recovery_email %></h3>
<h3><%= @page_title = t(:recovery_email) %></h3>
<p>
<%= t :recovery_email_help %>
......
<h3><%= t :login %></h3>
<h3><%= @page_title = t(:login) %></h3>
<%= form_tag(login_path, method: "post") do %>
<table>
<tr><td>
......
<h3><%= t :new_account %></h3>
<h3><%= @page_title = t(:new_account) %></h3>
<%= form_tag("#{signup_path}/#{URI::escape(@token)}", method: "post") do %>
<table>
......
<h3><%= t :new_account %></h3>
<h3><%= @page_title = t(:new_account) %></h3>
<p>
<b> <%= t(:hello) %> <%= @email %>@<%= @domain %> </b>
<br />
......
<h3><%= t :new_account %></h3>
<h3><%= @page_title = t(:new_account) %></h3>
<%= form_tag(signup_path, method: "post") do %>
<%= label_tag(:token, (t :invite_token)) %>
......
<h3><%= t :encrypt_mailbox %></h3>
<h3><%= @page_title = t(:encrypt_mailbox) %></h3>
<p>
<%= t :encrypt_mailbox_help %>
<%= t :encrypt_mailbox_help_existing %>
......
<h3><%= t :recovery_token %></h3>
<h3><%= @page_title = t(:recovery_token) %></h3>
<% if @recovery_token %>
<p>
......
<h3><%= t :edit_user %></h3>
<h3><%= @page_title = t(:edit_user) %></h3>
<table>
<% skip = ['id', 'mbxquota', 'forward']
......
<h3><%= @page_title = t(:manage_users) %></h3>
<%= link_to (t :new), '/users/create' %>
&nbsp;|&nbsp;
<%= link_to (t :new_forward), '/users/create?forward=1' %>
......
<h3><%= params[:forward].present? ? t(:new_forward) : t(:new_user) %></h3>
<h3><%= @page_title = (params[:forward].present? ? t(:new_forward) : t(:new_user)) %></h3>
<%= form_tag(users_create_path, method: "post") do %>
<table>
<tr><td><%= label_tag(:alias, (t :alias)) %></td>
......
<h3><%= t(:main_title) %></h3>
<h3><%= @page_title = t(:main_title) %></h3>
<ul class="menu">
<li><%= link_to (t :change_password), password_path %>
<br /><%= t(:change_password_short_help) %>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment