Commit fdf4bfd
Changed files (3)
app
views
gyms
layouts
config
locales
app/views/gyms/index.html.erb
@@ -1,6 +1,10 @@
+<% content_for(:title) do %>
+ <%= t(".title") %>
+<% end %>
+
<div class="row">
<div class="large-12 columns">
- <h1>Gyms</h1>
+ <h1><%= t(".title") %></h1>
<table>
<% @gyms.each do |gym| %>
<tr>
app/views/layouts/application.html.erb
@@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title><%= content_for?(:title) ? "Stronglifters | #{yield(:title)}" : "Stronglifters" %></title>
+ <title><%= t('.title') %> <%= content_for?(:title) ? "| #{yield(:title)}" : "" %></title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "vendor/modernizr" %>
<%= javascript_include_tag "application" %>
config/locales/en.yml
@@ -30,8 +30,10 @@ en:
log_out: "Log out"
profile_edit: "Edit profile"
profile_view: "View profile"
+ title: Stronglifters
gyms:
index:
+ title: Gyms
view_map: View map
registrations:
new: