{% if job.data.needschecking %}{% endif %}
{{ job.name | parsetags | raw }}
-
{{ attribute(job.data, 'host-displayname') }}
+
{% if job.data.hostlabel is defined and job.data.hostlabel is not empty %}{{ job.data.hostlabel }}{% else %}{{ attribute(job.data, 'host-displayname') }}{% endif %}
{{ job.interval | interval }}
{{ job.nextrun | date("d/m/Y H:i:s") }}
diff --git a/translations/messages.en-l33t.yaml b/translations/messages.en-l33t.yaml
index ddb7f1a..c70ba8d 100644
--- a/translations/messages.en-l33t.yaml
+++ b/translations/messages.en-l33t.yaml
@@ -93,6 +93,10 @@ job:
faildays:
label: "Numb3r 0f d4yz c4LcuL4t3d 4 f41L p3rc3nt4g3"
placeholder: "7"
+ hostlabel:
+ label: "H0st l4b3L"
+ placeholder: "N3wb13 s3rv3r"
+ helptext: "Wh1ch l4b3L 4 t3h h0stn4m3 sh0uLd b d1spL4y3d? 1f 3mpty t3h d1z w1LL b t3h h0stn4m3 pr0v1d3d b3L0w"
crontype:
label: "J0b typ3"
command:
diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml
index 9563c80..9b4898f 100644
--- a/translations/messages.en.yaml
+++ b/translations/messages.en.yaml
@@ -93,6 +93,10 @@ job:
faildays:
label: "Number of days calculated for fail percentage"
placeholder: "7"
+ hostlabel:
+ label: "Host label"
+ placeholder: "petrosian.jeroened.be"
+ helptext: "Which label for the hostname should be displayed? If empty the this will be the hostname provided below"
crontype:
label: "Job type"
command:
diff --git a/translations/messages.nl.yaml b/translations/messages.nl.yaml
index 9ee9b52..345cdb8 100644
--- a/translations/messages.nl.yaml
+++ b/translations/messages.nl.yaml
@@ -94,6 +94,10 @@ job:
faildays:
label: "Aantal dagen berekend voor faalpercentage"
placeholder: "7"
+ hostlabel:
+ label: "Host label"
+ placeholder: "petrosian.jeroened.be"
+ helptext: "Geef hier een eenvoudig te herkennen hostnaam. Indien leeg zal hostnaam uit de job details gebruikt worden"
crontype:
label: "Taak type"
command: