This commit is contained in:
Tomáš Mládek 2020-09-25 20:49:30 +02:00
parent 6d17daf1b7
commit 0adbb88c33

View file

@ -1,10 +1,11 @@
<template> <template>
<div class="inspect"> <div class="inspect">
<h2> <h2>
<Address :address="address"/> <Address :address="address" :is-file="backlinks.some((e) => e.key === 'FILE_IS')"/>
</h2> </h2>
<div v-if="!error"> <div v-if="!error">
<h3>Own attributes</h3> <template v-if="attributes.length">
<h3>Own attributes ({{ attributes.length }})</h3>
<table> <table>
<tr> <tr>
<th>Key name</th> <th>Key name</th>
@ -13,17 +14,16 @@
<tr v-for="entry in attributes"> <tr v-for="entry in attributes">
<td>{{ entry.key }}</td> <td>{{ entry.key }}</td>
<td> <td>
<Address v-if="entry.value[0] === 'ADDR'" <Address link v-if="entry.value[0] === 'ADDR'" :address="entry.value[1]"/>
:address="entry.value[1]"
link
:is-file="entry.key === 'FILE_IS'"/>
<template v-else> <template v-else>
{{ entry.value[1] }} {{ entry.value[1] }}
</template> </template>
</td> </td>
</tr> </tr>
</table> </table>
<h3>Referred to</h3> </template>
<template v-if="backlinks.length">
<h3>Referred to ({{ backlinks.length }})</h3>
<table> <table>
<tr> <tr>
<th>Targets</th> <th>Targets</th>
@ -38,6 +38,7 @@
</td> </td>
</tr> </tr>
</table> </table>
</template>
</div> </div>
<div v-else class="error"> <div v-else class="error">
{{ error }} {{ error }}