Create the most basic version of the ArtistBrowser app
This commit is contained in:
parent
1c32a71db9
commit
d5a114a44a
9 changed files with 348 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<button
|
||||
type="button"
|
||||
data-action="openApp"
|
||||
data-app="ArtistList"
|
||||
data-app="ArtistBrowser"
|
||||
>
|
||||
View All
|
||||
</button>
|
||||
|
|
|
|||
28
templates/ArtistBrowser/artist.hbs
Normal file
28
templates/ArtistBrowser/artist.hbs
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<div class="entry artist">
|
||||
<div class="row">
|
||||
<h2>{{artist.name}}</h2>
|
||||
<div class="grow"></div>
|
||||
<div>
|
||||
{{artist.imageCount}} Images
|
||||
</div>
|
||||
</div>
|
||||
{{#if artist.links}}
|
||||
<ul class="chip-list">
|
||||
{{#each artist.links as |link|}}
|
||||
<li class="chip">
|
||||
<a href="{{link.url}}">{{link.name}}</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{/if}}
|
||||
{{#if artist.commonTags}}
|
||||
<section>
|
||||
<h3>Common Image Tags</h3>
|
||||
<ul class="chip-list">
|
||||
{{#each artist.commonTags as |tag|}}
|
||||
<li class="chip">{{tag.name}} ({{tag.count}})</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</section>
|
||||
{{/if}}
|
||||
</div>
|
||||
34
templates/ArtistBrowser/list.hbs
Normal file
34
templates/ArtistBrowser/list.hbs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
<div class="paginated">
|
||||
<div class="row">
|
||||
{{#if can.upload}}
|
||||
<button data-action="createArtist">Create New Artist</button>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{#if artists}}
|
||||
<ul class="entry-list list">
|
||||
{{#each artists as | artist |}}
|
||||
{{> (it-filePath "templates/ArtistBrowser/artist.hbs") artist=artist }}
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{else}}
|
||||
<span class="placeholder">
|
||||
{{ localize "" }}
|
||||
</span>
|
||||
{{/if}}
|
||||
<div class="grow"></div>
|
||||
<div class="row page-nav">
|
||||
<button
|
||||
data-action="prevPage"
|
||||
{{disabled (not has.prev)}}
|
||||
>
|
||||
Prev
|
||||
</button>
|
||||
{{page}} / {{pages}}
|
||||
<button
|
||||
data-action="nextPage"
|
||||
{{disabled (not has.next)}}
|
||||
>
|
||||
Next
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
18
templates/ArtistBrowser/sidebar.hbs
Normal file
18
templates/ArtistBrowser/sidebar.hbs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<form autocomplete="off" class="filters">
|
||||
<label for="{{meta.idp}}-name">Name</label>
|
||||
<input
|
||||
id="{{meta.idp}}-name"
|
||||
type="text"
|
||||
name="name"
|
||||
value="{{name}}"
|
||||
>
|
||||
|
||||
<hr>
|
||||
|
||||
<label for="{{meta.idp}}-sort">
|
||||
Sort By
|
||||
</label>
|
||||
<select name="sortBy" id="{{meta.idp}}-sort">
|
||||
{{it-options sortBy sortOptions localize=true}}
|
||||
</select>
|
||||
</form>
|
||||
Loading…
Add table
Add a link
Reference in a new issue