Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose good job labels in dashboard #1561

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/views/good_job/jobs/_table.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
</div>
<div class="d-none d-lg-block col-lg-1 text-lg-center"><%= t "good_job.models.job.queue" %></div>
<div class="d-none d-lg-block col-lg-1 text-lg-end"><%= t "good_job.models.job.priority" %></div>
<div class="d-none d-lg-block col-lg-1 text-lg-end"><%= t "good_job.models.job.labels" %></div>
<div class="d-none d-lg-block col-lg-1 text-lg-end"><%= t "good_job.models.job.attempts" %></div>
<div class="col text-end">
<%= tag.button type: "button", class: "btn btn-sm text-muted", role: "button",
Expand Down Expand Up @@ -82,6 +83,12 @@
<div class="d-lg-none small text-muted mt-1"><%= t "good_job.models.job.priority" %></div>
<%= job.priority %>
</div>
<div class="col-4 col-lg-1 text-wrap text-lg-end">
<div class="d-lg-none small text-muted mt-1"><%= t "good_job.models.job.labels" %></div>
<% job.labels&.each do |label| %>
<span class="badge bg-primary font-monospace "><%= label %></span>
<% end %>
</div>
<div class="col-4 col-lg-1 text-lg-end">
<div class="d-lg-none small text-muted mt-1"><%= t "good_job.models.job.attempts" %></div>
<% if job.error %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ de:
arguments: Argumente
attempts: Versuche
priority: Priorität
labels: Etiketten
queue: Warteschlange
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ en:
arguments: Arguments
attempts: Attempts
priority: Priority
labels: Labels
queue: Queue
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ es:
arguments: Argumentos
attempts: Intentos
priority: Prioridad
labels: Etiquetas
queue: Cola
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ fr:
arguments: Paramètres
attempts: Tentatives
priority: Priorité
labels: Étiquettes
queue: File d'attente
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ it:
arguments: Argomenti
attempts: Tentativi
priority: Priorità
labels: Etichette
queue: Coda
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ ja:
arguments: 引数
attempts: 試行回数
priority: 優先度
labels: ラベル
queue: キュー
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/ko.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ ko:
arguments: 인수
attempts: 시도 횟수
priority: 우선순위
labels: 레이블
queue: 큐
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/nl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ nl:
arguments: Argumenten
attempts: Pogingen
priority: Prioriteit
labels: Labels
queue: Wachtrij
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ pt-BR:
arguments: Argumentos
attempts: Tentativas
priority: Prioridade
labels: Rótulos
queue: Fila
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ ru:
arguments: Параметры
attempts: Попытки
priority: Приоритет
labels: Метки
queue: Очередь исполнения
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ tr:
arguments: Argümanlar
attempts: Denemeler
priority: Öncelik
labels: Etiketler
queue: Kuyruk
number:
format:
Expand Down
1 change: 1 addition & 0 deletions config/locales/uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ uk:
arguments: Аргументи
attempts: Спроби
priority: Пріоритет
labels: Мітки
queue: Черга
number:
format:
Expand Down