mirror of https://github.com/bastienwirtz/homer
Handled subtitle if present
parent
1de57d9423
commit
f4c026fe2e
|
@ -18,19 +18,24 @@
|
||||||
</template>
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<p class="title is-4">{{ item.name }}</p>
|
<p class="title is-4">{{ item.name }}</p>
|
||||||
<p class="subtitle is-6">
|
<p v-if="item.subtitle" class="subtitle">
|
||||||
<span v-if="error" class="error">An error has occurred.</span>
|
{{ item.subtitle }}
|
||||||
<template v-else>
|
|
||||||
<span class="down monospace">
|
|
||||||
<p class="fas fa-download"></p>
|
|
||||||
{{ downRate }}
|
|
||||||
</span>
|
|
||||||
<span class="up monospace">
|
|
||||||
<p class="fas fa-upload"></p>
|
|
||||||
{{ upRate }}
|
|
||||||
</span>
|
|
||||||
</template>
|
|
||||||
</p>
|
</p>
|
||||||
|
<template v-else>
|
||||||
|
<p class="subtitle is-6">
|
||||||
|
<span v-if="error" class="error">An error has occurred.</span>
|
||||||
|
<template v-else>
|
||||||
|
<span class="down monospace">
|
||||||
|
<p class="fas fa-download"></p>
|
||||||
|
{{ downRate }}
|
||||||
|
</span>
|
||||||
|
<span class="up monospace">
|
||||||
|
<p class="fas fa-upload"></p>
|
||||||
|
{{ upRate }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</p>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
</Generic>
|
</Generic>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in New Issue