mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-05-06 20:57:19 +02:00
Add subtitle support - display subtitle if provided, otherwise show data
This commit is contained in:
committed by
Bastien Wirtz
parent
843a814ac5
commit
06b677ab76
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user