Skip to content

Commit

Permalink
Put "Last updated" on the right side and other tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon committed Jan 3, 2024
1 parent 51de465 commit 1c5deb6
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 35 deletions.
15 changes: 7 additions & 8 deletions app/views/good_job/shared/_secondary_navbar.erb
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<nav class="navbar navbar-expand-md shadow-sm mt-auto py-3 border-top text-muted small" id="secondary-navbar" data-live-poll-region="footer">
<nav class="navbar p-1 shadow-sm mt-auto border-bottom text-muted small" id="secondary-navbar" data-live-poll-region="secondary-navbar">
<div class="container-fluid">
<div class="row w-100">
<div class="col-md-6">
<%= t(".last_update_html", time: Time.current.utc.iso8601) %>
</div>
<div class="col-md-6 text-end">
<%= t(".wording") %>
</div>
<div class="flex-fill d-none d-sm-block ">
<%= t(".inspiration") %>
</div>
<div class="flex-fill text-end">
<% last_updated_at = Time.current.utc.iso8601 %>
<%= t(".last_updated") %>&nbsp;<time id="page-updated-at" datetime="<%= last_updated_at %>"><%== last_updated_at %></time>
</div>
</div>
</nav>
6 changes: 3 additions & 3 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ de:
placeholder: Suchen Sie nach Klasse, Job-ID, Jobparametern und Fehlertext.
queue_name: Warteschlangenname
search: Suchen
secondary_navbar:
last_update_html: Zuletzt aktualisiert <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Denk daran, auch du machst einen guten Job!
navbar:
batches: Batches
cron_schedules: Cron
Expand All @@ -234,6 +231,9 @@ de:
dark: Dunkel
light: Licht
theme: Thema
secondary_navbar:
inspiration: Denk daran, auch du machst einen guten Job!
last_updated: Zuletzt aktualisiert
status:
discarded: Ausrangiert
queued: In der Warteschlange
Expand Down
6 changes: 3 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ en:
placeholder: Search by class, job id, job params, and error text.
queue_name: Queue name
search: Search
secondary_navbar:
last_update_html: Last updated <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Remember, you're doing a Good Job too!
navbar:
batches: Batches
cron_schedules: Cron
Expand All @@ -234,6 +231,9 @@ en:
dark: Dark
light: Light
theme: Theme
secondary_navbar:
inspiration: Remember, you're doing a Good Job too!
last_updated: Last updated
status:
discarded: Discarded
queued: Queued
Expand Down
6 changes: 3 additions & 3 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ es:
placeholder: Buscar por clase, id de tarea, parámetros y mensaje de error.
queue_name: Nombre de la cola
search: Buscar
secondary_navbar:
last_update_html: Última actualización <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: "¡Recuerda, también tú estás haciendo un buen trabajo!"
navbar:
batches: Batches
cron_schedules: Cron
Expand All @@ -232,6 +229,9 @@ es:
dark: Oscuro
light: Luz
theme: Tema
secondary_navbar:
inspiration: "¡Recuerda, también tú estás haciendo un buen trabajo!"
last_updated: Última actualización
status:
discarded:
one: Descartada
Expand Down
6 changes: 3 additions & 3 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ fr:
placeholder: Recherche par classe, ID de job, paramètres de job et texte d'erreur.
queue_name: Nom de la file d'attente
search: Recherche
secondary_navbar:
last_update_html: Dernière mise à jour <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: N'oublie pas, toi aussi tu fais du bon boulot !
navbar:
batches: Lots
cron_schedules: Cron
Expand All @@ -234,6 +231,9 @@ fr:
dark: Sombre
light: Lumière
theme: Thème
secondary_navbar:
inspiration: N'oublie pas, toi aussi tu fais du bon boulot !
last_updated: Dernière mise à jour
status:
discarded: Mis au rebut
queued: À la file
Expand Down
6 changes: 3 additions & 3 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ ja:
placeholder: クラス名、ジョブID、ジョブパラメータ、エラーテキストで検索
queue_name: キュー名
search: 検索
secondary_navbar:
last_update_html: 最終更新 <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Remember, you're doing a Good Job too!
navbar:
batches: バッチ
cron_schedules: Cron
Expand All @@ -234,6 +231,9 @@ ja:
dark: 暗い
light: ライト
theme: テーマ
secondary_navbar:
inspiration: 覚えておいてください、あなたも良い仕事をしています!
last_updated: 最終更新
status:
discarded: 破棄済み
queued: 処理待ち
Expand Down
6 changes: 3 additions & 3 deletions config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ nl:
placeholder: Zoek op klasse, taak-ID, taakparameters en fouttekst.
queue_name: Wachtrij naam
search: Zoekopdracht
secondary_navbar:
last_update_html: Laatst bijgewerkt <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: 'Onthoud: jij levert ook goed werk!'
navbar:
batches: Batches
cron_schedules: Cron
Expand All @@ -234,6 +231,9 @@ nl:
dark: Donker
light: Licht
theme: Thema
secondary_navbar:
inspiration: 'Onthoud: jij levert ook goed werk!'
last_updated: Laatst bijgewerkt
status:
discarded: weggegooid
queued: In de wachtrij
Expand Down
6 changes: 3 additions & 3 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ ru:
placeholder: Поиск по классу, идентификатору задания, параметрам задания и тексту ошибки.
queue_name: Имя очереди
search: Поиск
secondary_navbar:
last_update_html: Последнее обновление <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Запомни, ты делаешь Good Job тоже!
navbar:
batches: Batches
cron_schedules: Cron
Expand All @@ -260,6 +257,9 @@ ru:
dark: Темный
light: Свет
theme: Тема
secondary_navbar:
inspiration: Запомни, ты делаешь Good Job тоже!
last_updated: Последнее обновление
status:
discarded: Отброшено
queued: В очереди
Expand Down
6 changes: 3 additions & 3 deletions config/locales/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,6 @@ tr:
placeholder: Sınıfa, iş kimliğine, iş parametrelerine ve hata metnine göre ara.
queue_name: Kuyruk adı
search: Ara
secondary_navbar:
last_update_html: Son güncelleme <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Unutmayın, siz de iyi bir iş yapıyorsunuz!
navbar:
batches: Toplu İşler
cron_schedules: Cron
Expand All @@ -234,6 +231,9 @@ tr:
dark: Karanlık
light: Işık
theme: Tema
secondary_navbar:
inspiration: Unutmayın, siz de iyi bir iş yapıyorsunuz!
last_updated: Son güncelleme
status:
discarded: İptal Edildi
queued: Sırada
Expand Down
6 changes: 3 additions & 3 deletions config/locales/uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ uk:
placeholder: Пошук за класом, ідентифікатором роботи, параметрами роботи та текстом помилки.
queue_name: Назва черги
search: Пошук
secondary_navbar:
last_update_html: Останнє оновлення <time id="page-updated-at" datetime="%{time}">%{time}</time>
wording: Пам'ятайте, ви теж робите хорошу роботу!
navbar:
batches: Batches
cron_schedules: Cron
Expand All @@ -260,6 +257,9 @@ uk:
dark: Темний
light: світло
theme: Тема
secondary_navbar:
inspiration: Пам'ятайте, ви теж робите хорошу роботу!
last_updated: Останнє оновлення
status:
discarded: Відхилено
queued: У черзі
Expand Down

0 comments on commit 1c5deb6

Please sign in to comment.