Set page title same as heading
This commit is contained in:
parent
2a8f60be36
commit
503f393f68
@ -1 +1 @@
|
|||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<div id="new-food">
|
<div id="new-food">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<div id='foods'>
|
<div id='foods'>
|
||||||
<%= render partial: 'foods/index' %>
|
<%= render partial: 'foods/index' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<div id="new-food">
|
<div id="new-food">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<div id='nutrients'>
|
<div id='nutrients'>
|
||||||
<%= render partial: 'foods/nutrients' %>
|
<%= render partial: 'foods/nutrients' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<h3><%= t ".heading_body_trackers" %></h3>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><%= link_to t(".link_summary"), project_body_trackers_path(@project) %></li>
|
<li><%= link_to t(".link_summary"), project_body_trackers_path(@project) %></li>
|
||||||
<li>
|
<li>
|
||||||
|
@ -2,3 +2,4 @@ $('div[id^=flash_]').remove();
|
|||||||
$('div[id=errorExplanation]').remove();
|
$('div[id=errorExplanation]').remove();
|
||||||
$('#content').prepend('<%= j render_flash_messages %>');
|
$('#content').prepend('<%= j render_flash_messages %>');
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
//$(document).prop('title', '<%= html_title %>');
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div id="new-meal">
|
<div id="new-meal">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<div id='meals'>
|
<div id='meals'>
|
||||||
<%= render partial: 'meals/index' %>
|
<%= render partial: 'meals/index' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div id="new-measurement">
|
<div id="new-measurement">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<div id='measurements'>
|
<div id='measurements'>
|
||||||
<%= render partial: 'measurements/index' %>
|
<%= render partial: 'measurements/index' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -5,11 +5,9 @@
|
|||||||
<div id="new-measurement">
|
<div id="new-measurement">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2>
|
<%= title t(:body_trackers_title),
|
||||||
<%= link_to t("measurements.index.heading"), project_measurements_path(@project) %>
|
[t("measurements.index.heading"), project_measurements_path(@project)],
|
||||||
>
|
@routine.name %>
|
||||||
<%= @routine.name %>
|
|
||||||
</h2>
|
|
||||||
<div id='readouts'>
|
<div id='readouts'>
|
||||||
<%= render partial: 'measurements/readouts' %>
|
<%= render partial: 'measurements/readouts' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
<div id="new-quantity">
|
<div id="new-quantity">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<div id='quantities'>
|
<div id='quantities'>
|
||||||
<%= render partial: 'quantities/index' %>
|
<%= render partial: 'quantities/index' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<% if @sources.any? { |s| s.persisted? } %>
|
<% if @sources.any? { |s| s.persisted? } %>
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<%= submit_tag l(:button_create) %>
|
<%= submit_tag l(:button_create) %>
|
||||||
<%= link_to l(:button_cancel), "#",
|
<%= link_to l(:button_cancel), "#",
|
||||||
onclick: '$("#new-target").empty(); return false;' %>
|
onclick: "$('#new-target').empty(); return false;" %>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<div id="new-target">
|
<div id="new-target">
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<div id='targets'>
|
<div id='targets'>
|
||||||
<%= render partial: 'targets/index' %>
|
<%= render partial: 'targets/index' %>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2><%= t ".heading" %></h2>
|
<%= title t(:body_trackers_title), t(".heading") %>
|
||||||
<% if @units.any? { |u| u.persisted? } %>
|
<% if @units.any? { |u| u.persisted? } %>
|
||||||
<table class="list">
|
<table class="list">
|
||||||
<thead>
|
<thead>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
# English strings go here for Rails i18n
|
# English strings go here for Rails i18n
|
||||||
en:
|
en:
|
||||||
body_trackers_menu_caption: 'Body trackers'
|
body_trackers_menu_caption: 'Body trackers'
|
||||||
|
body_trackers_title: 'Body trackers'
|
||||||
field_goal: 'Goal'
|
field_goal: 'Goal'
|
||||||
field_target: 'Target'
|
field_target: 'Target'
|
||||||
field_effective_from: 'Effective from'
|
field_effective_from: 'Effective from'
|
||||||
|
Reference in New Issue
Block a user