Skip to content

Commit

Permalink
add shrimpo zip file url to shrimpos/show page (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfiredrill committed May 1, 2024
1 parent 42742bc commit 2004f3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/shrimpo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default class Shrimpo extends Model {
@attr('string') declare rulePack: string;

@attr('string') declare zipFileUrl: string;
@attr('string') declare entriesZipFileUrl: string;

@attr('string') declare zip: string;

Expand Down
4 changes: 4 additions & 0 deletions app/templates/home/shrimpos/show.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
</section>
<div>
{{#if this.canShowEntries}}
<h1>Entries</h1>
{{#if this.model.entriesZipFileUrl}}
<a class="cool-button" href={{@this.model.entriesZipFileUrl}}>DOWNLOAD ALL</a>
{{/if}}
{{#each this.model.savedShrimpoEntries as |shrimpoEntry|}}
<Shrimpo::EntryCard @shrimpoEntry={{shrimpoEntry}} />
{{/each}}
Expand Down

0 comments on commit 2004f3c

Please sign in to comment.