diff --git a/app/assets/javascripts/init.coffee b/app/assets/javascripts/init.coffee index cabf848..1f84e32 100644 --- a/app/assets/javascripts/init.coffee +++ b/app/assets/javascripts/init.coffee @@ -18,6 +18,6 @@ App.init = -> $(document).on "turbolinks:load", -> App.init() -$(document).on "click", '#translationTab a[href="#preview"]', -> +$(document).on "click", '#translationTab button[data-bs-target="#preview"]', -> $('#preview .problem-content').html(cm.getValue()) MathJax.Hub.Queue(["Typeset",MathJax.Hub]); \ No newline at end of file diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 66acd86..ef3fbc5 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -7,11 +7,8 @@ module ApplicationHelper capture do flash.each do |msg_type, message| concat(content_tag(:div, message, class: "alert #{bootstrap_class_for(msg_type)} alert-dismissible", role: 'alert') do - concat(content_tag(:button, class: 'close', data: { dismiss: 'alert' }) do - concat content_tag(:span, '×'.html_safe, 'aria-hidden' => true) - concat content_tag(:span, 'Close', class: 'sr-only') - end) concat message + concat content_tag(:button, "", class: 'btn-close', data: { 'bs-dismiss': 'alert' }, 'aria-label': 'Close') end) end nil @@ -29,9 +26,8 @@ module ApplicationHelper end def nav_link_to(body, url) - nav_options = { class: current_page?(url) ? 'nav-item active': 'nav-item' } - content_tag(:li, nav_options) do - link_to body, url, class: 'nav-link' + content_tag(:li, class: 'nav-item') do + link_to body, url, class: current_page?(url) ? 'nav-link active': 'nav-link' end end diff --git a/app/views/about/index.de.html.erb b/app/views/about/index.de.html.erb index f627490..0c9d6c7 100644 --- a/app/views/about/index.de.html.erb +++ b/app/views/about/index.de.html.erb @@ -1,4 +1,4 @@ -
Diese Seite ist eine Übersetzung der englischen Rätsel-Webseite projecteuler.net.
@@ -7,26 +7,27 @@ <% end %>
Sehen Sie sich die mathematischen Probleme in deutscher Sprache an.
-- <%= link_to problems_path, class: 'btn btn-primary' do %> - Zu den Problemen » - <% end %> -
+ <%= link_to problems_path, class: 'btn btn-primary' do %> + Zu den Problemen » + <% end %>Bisher wurden erst <%= Problem.translated_count %> der <%= Problem.count %> Probleme übersetzt. Helfen Sie mit, Übersetzungen zu erstellen und anzupassen!
Vermissen Sie eine Funktion auf der Webseite, oder ist Ihnen ein Fehler aufgefallen? Dann helfen Sie beim Entwickeln der Webseite in Ruby on Rails!
- + Projekt Euler auf GitHub »