mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-01-22 18:06:11 +00:00
Add subtitle support - display subtitle if provided, otherwise show data
This commit is contained in:
parent
843a814ac5
commit
06b677ab76
1 changed files with 2 additions and 1 deletions
|
|
@ -2,7 +2,8 @@
|
|||
<Generic :item="item">
|
||||
<template #content>
|
||||
<p class="title is-4">{{ item.name }}</p>
|
||||
<p class="subtitle is-6">
|
||||
<p v-if="item.subtitle" class="subtitle is-6">{{ item.subtitle }}</p>
|
||||
<p v-else class="subtitle is-6">
|
||||
<span v-if="error" class="error">An error has occurred.</span>
|
||||
<template v-else>
|
||||
<span class="down monospace">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue