diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 0e5ac21..4ee9c55 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -39,13 +39,16 @@ body { width: 100%; /* Set the fixed height of the footer here */ height: 40px; + line-height: 40px; background-color: $light; } -.container .text-muted { - margin: 10px 0; +/* Custom style for navbar toggler due to CSP problems */ +.navbar-toggler-icon { + background-image: none !important; } +/* Style for buttons in the corner of problems/translations */ .problem-buttons { position: relative; display: block; diff --git a/app/views/about/copyright.de.html.erb b/app/views/about/copyright.de.html.erb index 7f66d5a..0d30be1 100644 --- a/app/views/about/copyright.de.html.erb +++ b/app/views/about/copyright.de.html.erb @@ -3,7 +3,7 @@

Copyright

-
Dieser Artikel dient gleichzeitig der Übersetzung der "Copyright Information" auf projecteuler.net sowie der tatsächlich geltenden Copyright-Informationen für diese Seite.
+

Kann ich die Probleme woanders benutzen?

Ja! Es ist nicht nur erlaubt, sondern beherzt, das Material zu teilen und frei zu benutzen - für nichtkommerzielle Zwecke. Aber bitte lesen Sie weiter...

diff --git a/app/views/admin/translations/show.html.erb b/app/views/admin/translations/show.html.erb index f61e940..3052fd1 100644 --- a/app/views/admin/translations/show.html.erb +++ b/app/views/admin/translations/show.html.erb @@ -1,29 +1,31 @@ <% provide(:title, t('problems.show.problem_subtitle', id: @translation.problem_id)) %>

-

- <%= render 'shared/authors', authors: Array(@translation.author) %> -

-

<%= @translation.title %> <%= t 'problems.show.problem_subtitle', id: @translation.problem_id %>

+

<%= @translation.title %>

-<% if @translation.pending? %> -
-
- <%= link_to admin_translation_decline_path(@translation), method: :post, class: 'btn btn-danger btn-sm' do %> - <%= icon('fas', 'times') %> <%= t '.decline_translation' %> - <% end %> - <%= link_to admin_translation_accept_path(@translation), method: :post, class: 'btn btn-success btn-sm' do %> - <%= icon('fas', 'check') %> <%= t '.accept_translation' %> - <% end %> -
-
-<% end %> -
-
- <%= sanitize @translation.content, scrubber: TranslationContentScrubber.new %> +
+ <%= t 'problems.show.problem_subtitle', id: @translation.problem_id %> +
+ <% if @translation.pending? %> +
+
+ <%= link_to admin_translation_decline_path(@translation), method: :post, class: 'btn btn-danger btn-sm' do %> + <%= icon('fas', 'times') %> <%= t '.decline_translation' %> + <% end %> + <%= link_to admin_translation_accept_path(@translation), method: :post, class: 'btn btn-success btn-sm' do %> + <%= icon('fas', 'check') %> <%= t '.accept_translation' %> + <% end %> +
+ <% end %> +
+ <%= sanitize @translation.content, scrubber: TranslationContentScrubber.new %> +
+
<% if @translation.problem.is_translated? %> diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index 065eb0a..c41e1fa 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -1,9 +1,10 @@ \ No newline at end of file diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index efbe8b4..1961bff 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -1,7 +1,10 @@ \ No newline at end of file diff --git a/app/views/problems/show.html.erb b/app/views/problems/show.html.erb index 8414939..8fb6807 100644 --- a/app/views/problems/show.html.erb +++ b/app/views/problems/show.html.erb @@ -1,10 +1,7 @@ <% provide(:title, t('problems.show.problem_subtitle', id: @problem.id)) %>
-

- <%= render 'shared/authors', authors: @problem.authors, has_anonymous_author: @problem.has_anonymous_author? %> -

-

<%= @problem.title %> <%= t '.problem_subtitle', id: @problem.id %>

+

<%= @problem.title %>

<% if Problem.exists?(@problem.id-1) %> <%= link_to problem_path(@problem.id-1), title: t('problems.show.problem_subtitle', id: @problem.id-1), class: 'problem-prev' do %> @@ -16,15 +13,21 @@ <%= icon('fas', 'chevron-right') %> <% end %> <% end %> -
- <%= link_to new_problem_translation_path(@problem), class: 'problem-buttons-inner btn btn-primary btn-sm' do %> - <%= icon('fas', 'edit') %> <%= t '.improve_translation' %> - <% end %> -
-
- <%= sanitize @problem.content, scrubber: TranslationContentScrubber.new %> -
+
+ <%= t '.problem_subtitle', id: @problem.id %> +
+
+ <%= link_to new_problem_translation_path(@problem), class: 'problem-buttons-inner btn btn-primary btn-sm' do %> + <%= icon('fas', 'edit') %> <%= t '.improve_translation' %> + <% end %> +
+
+ <%= sanitize @problem.content, scrubber: TranslationContentScrubber.new %> +
+
<%= link_to t('.view_original_problem'), @problem.original_url, target: '_blank' %> diff --git a/app/views/problems/untranslated.html.erb b/app/views/problems/untranslated.html.erb index ab3838f..f67ec01 100644 --- a/app/views/problems/untranslated.html.erb +++ b/app/views/problems/untranslated.html.erb @@ -5,6 +5,6 @@
<%= t 'problems.not_yet_translated' %> -<%= link_to new_problem_translation_path(@problem), class: 'btn btn-default btn-xs' do %> +<%= link_to new_problem_translation_path(@problem), class: 'btn btn-primary btn-sm' do %> <%= icon('fas', 'edit') %> <%= t 'problems.index.suggest_translation' %> <% end %> \ No newline at end of file diff --git a/app/views/translations/_form.html.erb b/app/views/translations/_form.html.erb index 21a0dc6..86aa359 100644 --- a/app/views/translations/_form.html.erb +++ b/app/views/translations/_form.html.erb @@ -13,7 +13,7 @@ <%= f.text_area :content, placeholder: t('.translation_source_explanation') %>
-
+
diff --git a/test/integration/translator_flow_test.rb b/test/integration/translator_flow_test.rb index 4f32991..f507a18 100644 --- a/test/integration/translator_flow_test.rb +++ b/test/integration/translator_flow_test.rb @@ -4,7 +4,7 @@ class TranslatorFlowTest < ActionDispatch::IntegrationTest test "can view a problem" do get '/problems/1' assert_response :success - assert_select "h1", "First title Problem 1" + assert_select "h1", "First title" end test "can login via github" do