From d2f12927241530dc5b8fdd35e078d76d0bb7e18e Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Tue, 30 Dec 2014 19:50:35 +0100 Subject: [PATCH] Add links for problem translation and improvement --- app/views/problems/index.html.erb | 5 ++++- app/views/problems/show.html.erb | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/views/problems/index.html.erb b/app/views/problems/index.html.erb index 48632e2..a46d613 100644 --- a/app/views/problems/index.html.erb +++ b/app/views/problems/index.html.erb @@ -17,7 +17,10 @@ <% if problem.is_translated? %> <%= link_to problem.title, problem %> <% else %> - Dieses Problem wurde noch nicht übersetzt. + Dieses Problem wurde noch nicht übersetzt. + <%= link_to new_problem_translation_path(problem), class: 'btn btn-default btn-xs' do %> + <%= icon :pencil %> Übersetzung vorschlagen + <% end %> <% end %> diff --git a/app/views/problems/show.html.erb b/app/views/problems/show.html.erb index 4ad7873..c070457 100644 --- a/app/views/problems/show.html.erb +++ b/app/views/problems/show.html.erb @@ -5,7 +5,9 @@ - +<%= link_to new_problem_translation_path(@problem), class: 'btn btn-default btn-sm pull-right' do %> + <%= icon :pencil %> Übersetzung verbessern +<% end %> <%= panel do %>
<%= sanitize @problem.content %>