1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2026-01-27 02:28:50 +01:00

Add custom site titles

This commit is contained in:
2017-11-23 17:09:16 +01:00
parent 0323456d2c
commit 084a640021
10 changed files with 34 additions and 2 deletions

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' %>

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>

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 %>