-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
problem: can't see total number of open problems
- Loading branch information
1 parent
f00fa6b
commit 1644258
Showing
5 changed files
with
57 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script lang="ts"> | ||
import { base } from "$app/paths"; | ||
import type { Rocket } from "$lib/stores/nostrocket_state/types"; | ||
import { AccordionItem, Tag } from "carbon-components-svelte"; | ||
export let rocket:Rocket|undefined = undefined | ||
</script> | ||
{#if rocket} | ||
<AccordionItem> | ||
<svelte:fragment slot="title"> | ||
<h3 class="problem-title">{#if !rocket.Consensus}<Tag type="red">UNCONFIRMED</Tag>{/if} | ||
{rocket.Name} | ||
</h3> | ||
|
||
<div class="problem-summary"> | ||
<Tag>{rocket.Problems.size} Problems</Tag> | ||
</div> | ||
</svelte:fragment> | ||
<p> | ||
<a href="{base}/problems/rocket/{rocket.Name}">View Open Problems</a><br /> | ||
{#if rocket.ProblemID}<a href="{base}/problems/{rocket.ProblemID}">View the root problem for this Rocket</a>{:else}No Associated Problem{/if} | ||
<br /> | ||
</p> | ||
<p>Created By: {rocket.CreatedBy}</p> | ||
<a href="{base}/rockets/{rocket.UID}">More...</a> | ||
</AccordionItem> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters