Commit 04828843 authored by Janis Streib's avatar Janis Streib

FIX: position natvs badge to fqdn

parent 87a5a2ac
Pipeline #118776 passed with stages
in 12 minutes and 18 seconds
......@@ -14,17 +14,17 @@
</template>
<template v-slot:cell(fqdn)="data">
{{ data.item.fqdn }}
<b-badge variant="primary" v-if="data.item.fqdn_type === 'domain'">Domain</b-badge>
</template>
<template v-slot:cell(data)="data">
<code>{{ data.value }} </code>
<b-badge v-if="!data.item.target_is_singleton" variant="warning">RR-Set</b-badge>
<b-badge variant="secondary" v-if="data.item.fqdn_type === 'domain'">Domain</b-badge>
<b-badge v-if="data.item.host_is_nws" variant="primary"
:href="$sysinfo.host_oper_mode.is_prod?`https://www-net.scc.kit.edu/~netadmin/natvs/user/wrapper.cgi/`:`https://www-net-${$sysinfo.host_oper_mode.mode}.scc.kit.edu/~netadmin/natvs/user/wrapper.cgi/`"
title="Host besitzt einen NATVS-Eintrag"
target="_blank">NATVS
</b-badge>
</template>
<template v-slot:cell(data)="data">
<code>{{ data.value }} </code>
<b-badge v-if="!data.item.target_is_singleton" variant="warning">RR-Set</b-badge>
</template>
<template v-slot:cell(actions)="data">
<b-button-group>
<b-dropdown @click="editItem(data.item)" split variant="outline-primary">
......
......@@ -12,7 +12,7 @@
<b-badge variant="primary" :title="data.item.sub_fqdn_count + ' FQDNs unter diesem FQDN'">
{{ data.item.sub_fqdn_count }}
</b-badge>
<b-badge variant="primary" v-if="data.item.type == 'domain'">Domain</b-badge>
<b-badge variant="secondary" v-if="data.item.type == 'domain'">Domain</b-badge>
</router-link>
<template v-else>{{ data.value }}</template>
<b-badge variant="danger" :to="'/dnsvs/fqdns/' + data.item.value + '/records'" v-if="data.item.has_rr"
......
......@@ -225,7 +225,11 @@
:fields="record_list_fields">
<template v-slot:cell(fqdn)="data">
{{ data.item.fqdn }}
<b-badge variant="primary" v-if="data.item.fqdn_type === 'domain'">Domain</b-badge>
<b-badge variant="secondary" v-if="data.item.fqdn_type === 'domain'">Domain</b-badge>
<b-badge v-if="data.item.host_is_nws" variant="primary"
:href="$sysinfo.host_oper_mode.is_prod?`https://www-net.scc.kit.edu/~netadmin/natvs/user/wrapper.cgi/${range.name}/0/${range.name}/0/nat_index.html`:`https://www-net-${$sysinfo.host_oper_mode.mode}.scc.kit.edu/~netadmin/natvs/user/wrapper.cgi/${range.name}/0/${range.name}/0/nat_index.html`"
title="Host besitzt einen NATVS-Eintrag">NATVS
</b-badge>
</template>
<template v-slot:cell(info)="data">
<b-dropdown>
......@@ -241,10 +245,6 @@
<template v-slot:cell(data)="data">
<code>{{ data.value }} </code>
<b-badge v-if="!data.item.target_is_singleton" variant="warning">RR-Set</b-badge>
<b-badge v-if="data.item.host_is_nws" variant="primary"
:href="$sysinfo.host_oper_mode.is_prod?`https://www-net.scc.kit.edu/~netadmin/natvs/user/wrapper.cgi/${range.name}/0/${range.name}/0/nat_index.html`:`https://www-net-${$sysinfo.host_oper_mode.mode}.scc.kit.edu/~netadmin/natvs/user/wrapper.cgi/${range.name}/0/${range.name}/0/nat_index.html`"
title="Host besitzt einen NATVS-Eintrag">NATVS
</b-badge>
<b-badge v-if="data.item.target_is_reverse_unique" title="Rückwärts-eindeutig">PTR</b-badge>
</template>
<template v-slot:cell(actions)="data">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment