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>
|
||||
|
||||
<h2><%= t ".heading" %></h2>
|
||||
<%= title t(:body_trackers_title), t(".heading") %>
|
||||
<div id='foods'>
|
||||
<%= render partial: 'foods/index' %>
|
||||
</div>
|
||||
|
@ -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>
|
||||
|
@ -1,4 +1,3 @@
|
||||
<h3><%= t ".heading_body_trackers" %></h3>
|
||||
<ul>
|
||||
<li><%= link_to t(".link_summary"), project_body_trackers_path(@project) %></li>
|
||||
<li>
|
||||
|
@ -2,3 +2,4 @@ $('div[id^=flash_]').remove();
|
||||
$('div[id=errorExplanation]').remove();
|
||||
$('#content').prepend('<%= j render_flash_messages %>');
|
||||
<%= yield %>
|
||||
//$(document).prop('title', '<%= html_title %>');
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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 %>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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'
|
||||
|
Reference in New Issue
Block a user