Add custom site titles

This commit is contained in:
pfischbeck committed 2017-11-23 17:09:16 +01:00
1 parent 0323456d2c
commit 084a640021
10 files changed
+34 -2

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
<% provide(:title, Problem.model_name.human(count: 2)) %>
<h1><%= Problem.model_name.human(count: 2) %></h1>
<%= render 'problem_pagination' %>
+2
View File
@@ -1,3 +1,5 @@
<% provide(:title, t('problems.show.problem_subtitle', id: @problem.id)) %>
<div class="page-header">
<h1><%= @problem.title %> <small><%= t '.problem_subtitle', id: @problem.id %></small></h1>
</div>
+10 -1
View File
@@ -1 +1,10 @@
<%= t 'problems.not_yet_translated' %>
<% provide(:title, t('problems.show.problem_subtitle', id: @problem.id)) %>
<div class="page-header">
<h1><%= t 'problems.show.problem_subtitle', id: @problem.id %></h1>
</div>
<%= t 'problems.not_yet_translated' %>
<%= link_to new_problem_translation_path(@problem), class: 'btn btn-default btn-xs' do %>
<%= icon :pencil %> <%= t 'problems.index.suggest_translation' %>
<% end %>