Skip to content

Commit 406079e

Browse files
committed
Finesse the display of task metadata in the info view
* Title displayed as top level title, falling back to "Title" if field not set. * URL moved to above the description, in case the description is long. * All meta fields except URL changed to markdown. * Custom markdown fields assumed to be in form \# key value
1 parent be530fc commit 406079e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/components/cylc/Info.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
5454
</v-expansion-panel-title>
5555
<v-expansion-panel-text>
5656
<dl>
57-
<dt>Title</dt>
58-
<dd>{{ taskMetadata.title }}</dd>
59-
<v-divider />
60-
<dt>Description</dt>
61-
<dd><Markdown :markdown="taskMetadata.description"/></dd>
57+
<dt><Markdown :markdown="'# ' + (taskMetadata.title || '(Title)')"/></dt>
6258
<v-divider />
6359
<dt>URL</dt>
6460
<dd>
@@ -75,9 +71,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
7571
</a>
7672
</dd>
7773
<v-divider />
74+
<dt>Description</dt>
75+
<dd><Markdown :markdown="taskMetadata.description"/></dd>
76+
<v-divider />
7877
<template v-for="(value, key) in customMetadata" :key="key">
79-
<dt>{{ key }}</dt>
80-
<dd><span class="markup">{{ value }}</span></dd>
78+
<dt><Markdown :markdown="'## ' + key"/></dt>
79+
<dd><Markdown :markdown="value"/></dd>
8180
<v-divider />
8281
</template>
8382
</dl>

0 commit comments

Comments
 (0)