mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 13:29:05 +01:00
Merge branch '275_add_tag_scope' into 275_tag_scope_jobview_rework
This commit is contained in:
commit
ff52fb16b6
@ -38,9 +38,9 @@
|
|||||||
<a target={clickable ? "_blank" : null} href={clickable ? `/monitoring/jobs/?tag=${id}` : null}>
|
<a target={clickable ? "_blank" : null} href={clickable ? `/monitoring/jobs/?tag=${id}` : null}>
|
||||||
{#if tag}
|
{#if tag}
|
||||||
{#if tag?.scope === "global"}
|
{#if tag?.scope === "global"}
|
||||||
<span style="background-color:#9e9e9e;" class="badge text-dark">{tag.type}: {tag.name}</span>
|
<span style="background-color:#c85fc8;" class="badge text-dark">{tag.type}: {tag.name}</span>
|
||||||
{:else if tag.scope === "admin"}
|
{:else if tag.scope === "admin"}
|
||||||
<span style="background-color:#80deea;" class="badge text-dark">{tag.type}: {tag.name}</span>
|
<span style="background-color:#19e5e6;" class="badge text-dark">{tag.type}: {tag.name}</span>
|
||||||
{:else}
|
{:else}
|
||||||
<span class="badge bg-warning text-dark">{tag.type}: {tag.name}</span>
|
<span class="badge bg-warning text-dark">{tag.type}: {tag.name}</span>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -8,10 +8,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ range $tagList }}
|
{{ range $tagList }}
|
||||||
{{if eq .scope "global"}}
|
{{if eq .scope "global"}}
|
||||||
<a style="background-color:#9e9e9e;" class="btn btn-lg" href="/monitoring/jobs/?tag={{ .id }}" role="button">
|
<a style="background-color:#c85fc8;" class="btn btn-lg" href="/monitoring/jobs/?tag={{ .id }}" role="button">
|
||||||
{{ .name }} <span class="badge bg-light text-dark">{{ .count }}</span> </a>
|
{{ .name }} <span class="badge bg-light text-dark">{{ .count }}</span> </a>
|
||||||
{{else if eq .scope "admin"}}
|
{{else if eq .scope "admin"}}
|
||||||
<a style="background-color:#80deea;" class="btn btn-lg" href="/monitoring/jobs/?tag={{ .id }}" role="button">
|
<a style="background-color:#19e5e6;" class="btn btn-lg" href="/monitoring/jobs/?tag={{ .id }}" role="button">
|
||||||
{{ .name }} <span class="badge bg-light text-dark">{{ .count }}</span> </a>
|
{{ .name }} <span class="badge bg-light text-dark">{{ .count }}</span> </a>
|
||||||
{{else}}
|
{{else}}
|
||||||
<a class="btn btn-lg btn-warning" href="/monitoring/jobs/?tag={{ .id }}" role="button">
|
<a class="btn btn-lg btn-warning" href="/monitoring/jobs/?tag={{ .id }}" role="button">
|
||||||
|
Loading…
Reference in New Issue
Block a user