1
0

Set page title same as heading

This commit is contained in:
cryptogopher 2021-01-18 21:38:53 +01:00
parent 2a8f60be36
commit 503f393f68
14 changed files with 15 additions and 16 deletions

View File

@ -1 +1 @@
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>

View File

@ -9,7 +9,7 @@
<div id="new-food">
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<div id='foods'>
<%= render partial: 'foods/index' %>
</div>

View File

@ -9,7 +9,7 @@
<div id="new-food">
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<div id='nutrients'>
<%= render partial: 'foods/nutrients' %>
</div>

View File

@ -1,4 +1,3 @@
<h3><%= t ".heading_body_trackers" %></h3>
<ul>
<li><%= link_to t(".link_summary"), project_body_trackers_path(@project) %></li>
<li>

View File

@ -2,3 +2,4 @@ $('div[id^=flash_]').remove();
$('div[id=errorExplanation]').remove();
$('#content').prepend('<%= j render_flash_messages %>');
<%= yield %>
//$(document).prop('title', '<%= html_title %>');

View File

@ -5,7 +5,7 @@
<div id="new-meal">
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<div id='meals'>
<%= render partial: 'meals/index' %>
</div>

View File

@ -5,7 +5,7 @@
<div id="new-measurement">
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<div id='measurements'>
<%= render partial: 'measurements/index' %>
</div>

View File

@ -5,11 +5,9 @@
<div id="new-measurement">
</div>
<h2>
<%= link_to t("measurements.index.heading"), project_measurements_path(@project) %>
>
<%= @routine.name %>
</h2>
<%= title t(:body_trackers_title),
[t("measurements.index.heading"), project_measurements_path(@project)],
@routine.name %>
<div id='readouts'>
<%= render partial: 'measurements/readouts' %>
</div>

View File

@ -8,7 +8,7 @@
<div id="new-quantity">
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<div id='quantities'>
<%= render partial: 'quantities/index' %>
</div>

View File

@ -19,7 +19,7 @@
<hr>
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<% if @sources.any? { |s| s.persisted? } %>
<table class="list">
<thead>

View File

@ -11,7 +11,7 @@
<p>
<%= submit_tag l(:button_create) %>
<%= link_to l(:button_cancel), "#",
onclick: '$("#new-target").empty(); return false;' %>
onclick: "$('#new-target').empty(); return false;" %>
</p>
</div>
<% end %>

View File

@ -5,7 +5,7 @@
<div id="new-target">
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<div id='targets'>
<%= render partial: 'targets/index' %>
</div>

View File

@ -19,7 +19,7 @@
<hr>
</div>
<h2><%= t ".heading" %></h2>
<%= title t(:body_trackers_title), t(".heading") %>
<% if @units.any? { |u| u.persisted? } %>
<table class="list">
<thead>

View File

@ -1,6 +1,7 @@
# English strings go here for Rails i18n
en:
body_trackers_menu_caption: 'Body trackers'
body_trackers_title: 'Body trackers'
field_goal: 'Goal'
field_target: 'Target'
field_effective_from: 'Effective from'