Browse Source

Use short tag displaying on the front page.

main
Gisle Aune 4 years ago
parent
commit
42190e22fb
  1. 5
      svelte-ui/src/components/ParentEntry.svelte
  2. 4
      svelte-ui/src/components/ProjectEntry.svelte

5
svelte-ui/src/components/ParentEntry.svelte

@ -7,6 +7,7 @@
import Markdown from "./Markdown.svelte"; import Markdown from "./Markdown.svelte";
import ProjectIcon from "./ProjectIcon.svelte"; import ProjectIcon from "./ProjectIcon.svelte";
import ProjectProgress from "./ProjectProgress.svelte"; import ProjectProgress from "./ProjectProgress.svelte";
import Tag from "./Tag.svelte";
import TimeProgress from "./TimeProgress.svelte"; import TimeProgress from "./TimeProgress.svelte";
interface EntryIconHolder { interface EntryIconHolder {
@ -26,6 +27,7 @@ import TimeProgress from "./TimeProgress.svelte";
tasks?: TaskResult[] tasks?: TaskResult[]
active?: boolean active?: boolean
statusName?: string statusName?: string
tags?: string[]
} }
export let entry: EntryCommon; export let entry: EntryCommon;
@ -65,6 +67,9 @@ import TimeProgress from "./TimeProgress.svelte";
{/if} {/if}
<div class="body"> <div class="body">
<div class="header"> <div class="header">
{#if !full && entry.tags && entry.tags.length > 0}
<Tag small value={entry.tags[0]} />
{/if}
<div class="name"> <div class="name">
{#if headerLink} {#if headerLink}
<a href={headerLink}>{entry.name}</a> <a href={headerLink}>{entry.name}</a>

4
svelte-ui/src/components/ProjectEntry.svelte

@ -115,7 +115,9 @@ import stuffLogClient from "../clients/stufflog";
<ProgressNumbers project={project} /> <ProgressNumbers project={project} />
</div> </div>
<div slot="above-description"> <div slot="above-description">
<TagList tags={project.tags} />
{#if showAllOptions}
<TagList tags={project.tags} />
{/if}
</div> </div>
{#if showAllOptions} {#if showAllOptions}
<OptionRow> <OptionRow>

Loading…
Cancel
Save