diff --git a/app/views/admin/delayed_jobs/index.html.haml b/app/views/admin/delayed_jobs/index.html.haml index 1dbc490..2abbca0 100644 --- a/app/views/admin/delayed_jobs/index.html.haml +++ b/app/views/admin/delayed_jobs/index.html.haml @@ -33,9 +33,10 @@ = t('admin.delayed_jobs.job_class') = jobj.job_data["job_class"] %br - %b - = t('admin.delayed_jobs.arguments') - = debug jobj.job_data["arguments"] + - if !jobj.job_data["arguments"].empty? + %b + = t('admin.delayed_jobs.arguments') + = debug jobj.job_data["arguments"] %td = truncate job.last_error, length: 120 - if job.last_error @@ -49,5 +50,11 @@ -# = YAML::load(job.handler) -# = job %td - = link_to t('admin.delayed_jobs.destroy'), admin_delayed_job_url(job), method: :delete, data: { confirm: t('Are you sure?') }, class: 'button is-danger' - = link_to t('admin.delayed_jobs.trigger_now'), admin_delayed_job_execution_url(job), method: :post, class: 'button is-warning' + = link_to t('actions.destroy'), admin_delayed_job_url(job), + method: :delete, + data: { confirm: t('actions.are_you_sure?') }, + class: 'button is-danger' + = link_to t('admin.delayed_jobs.trigger_now'), + admin_delayed_job_execution_url(job), + method: :post, + class: 'button is-warning' diff --git a/config/locales/admin.de.yml b/config/locales/admin.de.yml index e7288f8..be1fcc2 100644 --- a/config/locales/admin.de.yml +++ b/config/locales/admin.de.yml @@ -8,7 +8,7 @@ de: post: edit: Blog Post bearbeiten image: Bild - new: Neuer Post + new: Neuer Blog Post published_at: Veröffentlicht am summary: Zusammenfassung/Teaser title: Titel @@ -27,6 +27,22 @@ de: table: order: Pos. times: Zeiten + delayed_job: + deleted: Job gelöscht. + execution: + triggered: Job getriggert. + delayed_jobs: + actions: Aktionen + arguments: Parameter + attempts: Versuche + background-jobs: Background Jobs + index: + problem_not_all_jobs_scheduled: "Problem: Nicht alle Jobs gestartet!" + regularly: Regelmäßig + job_class: Job Klasse + trigger_now: "Triggern!" + what: Was + when: Wann items: none: Keine lessons: diff --git a/config/locales/de.yml b/config/locales/de.yml index f84b680..854bde0 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -6,9 +6,6 @@ de: Course: Kurs Courses: Kurse Customers: Kund*n - Date_from: Von - Date_to: Von - 'Date_to:': 'Bis:' Home: Start admin: course: @@ -33,14 +30,6 @@ de: number_lessons: Anzahl Videos order: Position update-succes: Kurs aktualisiert. - delayed_job: - deleted: Gelöscht - delayed_jobs: - actions: Actions - background-jobs: Background Jobs - destroy: Löschen - what: Was - when: Wann emails: back_to_mails: Zurück zu E-Mails mails_table: @@ -205,7 +194,6 @@ de: prohibited_from_saving: one: "Es gab ein Problem:" other: "Es gab %{count} Probleme:" - explanation_text_homepage: Explanation text homepage helpers: label: contact: @@ -237,7 +225,6 @@ de: videos: title: Videos subtitle: Praktiziere wo Du willst, wann Du willst - welcome: Willkommen in: in invite: Invite learn_more: Mehr erfahren ...