diff --git a/app/views/body_trackers/index.html.erb b/app/views/body_trackers/index.html.erb
index dcec405..c4eb811 100644
--- a/app/views/body_trackers/index.html.erb
+++ b/app/views/body_trackers/index.html.erb
@@ -1 +1 @@
-
<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
diff --git a/app/views/foods/index.html.erb b/app/views/foods/index.html.erb
index 94f72bd..9d6fe0e 100644
--- a/app/views/foods/index.html.erb
+++ b/app/views/foods/index.html.erb
@@ -9,7 +9,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<%= render partial: 'foods/index' %>
diff --git a/app/views/foods/nutrients.html.erb b/app/views/foods/nutrients.html.erb
index fd1d212..9acabf9 100644
--- a/app/views/foods/nutrients.html.erb
+++ b/app/views/foods/nutrients.html.erb
@@ -9,7 +9,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<%= render partial: 'foods/nutrients' %>
diff --git a/app/views/layouts/_sidebar.html.erb b/app/views/layouts/_sidebar.html.erb
index eec614a..18445a8 100644
--- a/app/views/layouts/_sidebar.html.erb
+++ b/app/views/layouts/_sidebar.html.erb
@@ -1,4 +1,3 @@
-<%= t ".heading_body_trackers" %>
- <%= link_to t(".link_summary"), project_body_trackers_path(@project) %>
-
diff --git a/app/views/layouts/body_tracking.js.erb b/app/views/layouts/body_tracking.js.erb
index 3fd074c..5ee7cde 100644
--- a/app/views/layouts/body_tracking.js.erb
+++ b/app/views/layouts/body_tracking.js.erb
@@ -2,3 +2,4 @@ $('div[id^=flash_]').remove();
$('div[id=errorExplanation]').remove();
$('#content').prepend('<%= j render_flash_messages %>');
<%= yield %>
+//$(document).prop('title', '<%= html_title %>');
diff --git a/app/views/meals/index.html.erb b/app/views/meals/index.html.erb
index 12a6749..247ad18 100644
--- a/app/views/meals/index.html.erb
+++ b/app/views/meals/index.html.erb
@@ -5,7 +5,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<%= render partial: 'meals/index' %>
diff --git a/app/views/measurements/index.html.erb b/app/views/measurements/index.html.erb
index 195e06c..2eb7178 100644
--- a/app/views/measurements/index.html.erb
+++ b/app/views/measurements/index.html.erb
@@ -5,7 +5,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<%= render partial: 'measurements/index' %>
diff --git a/app/views/measurements/readouts.html.erb b/app/views/measurements/readouts.html.erb
index 4660bee..4ba732e 100644
--- a/app/views/measurements/readouts.html.erb
+++ b/app/views/measurements/readouts.html.erb
@@ -5,11 +5,9 @@
-
- <%= link_to t("measurements.index.heading"), project_measurements_path(@project) %>
- >
- <%= @routine.name %>
-
+<%= title t(:body_trackers_title),
+ [t("measurements.index.heading"), project_measurements_path(@project)],
+ @routine.name %>
<%= render partial: 'measurements/readouts' %>
diff --git a/app/views/quantities/index.html.erb b/app/views/quantities/index.html.erb
index 0c4b8ce..38f3d0f 100644
--- a/app/views/quantities/index.html.erb
+++ b/app/views/quantities/index.html.erb
@@ -8,7 +8,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<%= render partial: 'quantities/index' %>
diff --git a/app/views/sources/index.html.erb b/app/views/sources/index.html.erb
index 4ff7447..aeb2e4a 100644
--- a/app/views/sources/index.html.erb
+++ b/app/views/sources/index.html.erb
@@ -19,7 +19,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<% if @sources.any? { |s| s.persisted? } %>
diff --git a/app/views/targets/_new_form.html.erb b/app/views/targets/_new_form.html.erb
index 351b872..1c1658f 100644
--- a/app/views/targets/_new_form.html.erb
+++ b/app/views/targets/_new_form.html.erb
@@ -11,7 +11,7 @@
<%= submit_tag l(:button_create) %>
<%= link_to l(:button_cancel), "#",
- onclick: '$("#new-target").empty(); return false;' %>
+ onclick: "$('#new-target').empty(); return false;" %>
<% end %>
diff --git a/app/views/targets/index.html.erb b/app/views/targets/index.html.erb
index b7ff56f..27fa1a3 100644
--- a/app/views/targets/index.html.erb
+++ b/app/views/targets/index.html.erb
@@ -5,7 +5,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<%= render partial: 'targets/index' %>
diff --git a/app/views/units/index.html.erb b/app/views/units/index.html.erb
index 8c5a4c5..7b1be68 100644
--- a/app/views/units/index.html.erb
+++ b/app/views/units/index.html.erb
@@ -19,7 +19,7 @@
-<%= t ".heading" %>
+<%= title t(:body_trackers_title), t(".heading") %>
<% if @units.any? { |u| u.persisted? } %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index cd05585..69d96c3 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -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'