markup tweaks, wording
parent
1a59f22c68
commit
a7d493bc0f
|
@ -8,97 +8,82 @@
|
|||
</h2>
|
||||
<blob-preview :address="address" />
|
||||
<div v-if="!error">
|
||||
<template v-if="typedAttributes">
|
||||
<section
|
||||
class="typed-attribute-list"
|
||||
v-for="(attributes, typeAddr) in typedAttributes"
|
||||
:key="typeAddr"
|
||||
>
|
||||
<h3>
|
||||
<sl-icon
|
||||
v-if="types[typeAddr].getIcon()"
|
||||
:name="types[typeAddr].getIcon()"
|
||||
/>
|
||||
{{ types[typeAddr]?.name || "???" }}
|
||||
</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Attribute</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
<tr v-for="[id, entry] in attributes" :key="id">
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="x-circle" @click="removeEntry(id)" />
|
||||
</td>
|
||||
<td>{{ entry.attribute }}</td>
|
||||
<td>
|
||||
<Address
|
||||
link
|
||||
v-if="entry.value.t === 'Address'"
|
||||
:address="entry.value.c"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ entry.value.c }}
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="plus-circle" @click="addEntry()" />
|
||||
</td>
|
||||
<td>
|
||||
<sl-input v-sl-model:newEntryAttribute />
|
||||
</td>
|
||||
<td>
|
||||
<sl-input v-sl-model:newEntryValue />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</template>
|
||||
<template v-if="untypedAttributes">
|
||||
<section class="untyped-attribute-list">
|
||||
<h3>
|
||||
<sl-icon name="question-diamond" />
|
||||
Untyped attributes
|
||||
</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Attribute</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
<tr v-for="[id, entry] in untypedAttributes" :key="id">
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="x-circle" @click="removeEntry(id)" />
|
||||
</td>
|
||||
<td>{{ entry.attribute }}</td>
|
||||
<td>
|
||||
<Address
|
||||
link
|
||||
v-if="entry.value.t === 'Address'"
|
||||
:address="entry.value.c"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ entry.value.c }}
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="plus-circle" @click="addEntry()" />
|
||||
</td>
|
||||
<td>
|
||||
<sl-input v-sl-model:newEntryAttribute />
|
||||
</td>
|
||||
<td>
|
||||
<sl-input v-sl-model:newEntryValue />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</template>
|
||||
<section
|
||||
class="typed-attribute-list"
|
||||
v-for="(attributes, typeAddr) in typedAttributes"
|
||||
:key="typeAddr"
|
||||
>
|
||||
<h3>
|
||||
<sl-icon
|
||||
v-if="types[typeAddr].getIcon()"
|
||||
:name="types[typeAddr].getIcon()"
|
||||
/>
|
||||
{{ types[typeAddr]?.name || "???" }}
|
||||
</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Attribute</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
<tr v-for="[id, entry] in attributes" :key="id">
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="x-circle" @click="removeEntry(id)" />
|
||||
</td>
|
||||
<td>{{ entry.attribute }}</td>
|
||||
<td>
|
||||
<Address
|
||||
link
|
||||
v-if="entry.value.t === 'Address'"
|
||||
:address="entry.value.c"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ entry.value.c }}
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section class="untyped-attribute-list">
|
||||
<h3>
|
||||
<sl-icon name="question-diamond" />
|
||||
Other attributes
|
||||
</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Attribute</th>
|
||||
<th>Value</th>
|
||||
</tr>
|
||||
<tr v-for="[id, entry] in untypedAttributes" :key="id">
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="x-circle" @click="removeEntry(id)" />
|
||||
</td>
|
||||
<td>{{ entry.attribute }}</td>
|
||||
<td>
|
||||
<Address
|
||||
link
|
||||
v-if="entry.value.t === 'Address'"
|
||||
:address="entry.value.c"
|
||||
/>
|
||||
<template v-else>
|
||||
{{ entry.value.c }}
|
||||
</template>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="attr-action">
|
||||
<sl-icon-button name="plus-circle" @click="addEntry()" />
|
||||
</td>
|
||||
<td>
|
||||
<sl-input v-sl-model:newEntryAttribute />
|
||||
</td>
|
||||
<td>
|
||||
<sl-input v-sl-model:newEntryValue />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<template v-if="backlinks.length">
|
||||
<section class="backlinks">
|
||||
<h3>Referred to ({{ backlinks.length }})</h3>
|
||||
|
|
Loading…
Reference in New Issue