Add a barebones list view implementation
This commit is contained in:
parent
2fdcdf062c
commit
0fb2bd796d
7 changed files with 105 additions and 4 deletions
|
|
@ -1,5 +1,31 @@
|
|||
<div class="paginated">
|
||||
<div class="row">
|
||||
<div class="radio-group">
|
||||
<label data-tooltip="Grid layout">
|
||||
<input
|
||||
type="radio"
|
||||
name="layoutType"
|
||||
value="grid"
|
||||
{{checked (eq layout "grid")}}
|
||||
>
|
||||
<it-icon
|
||||
name="icons/layout/grid"
|
||||
var:fill="currentColor"
|
||||
></it-icon>
|
||||
</label>
|
||||
<label data-tooltip="List layout">
|
||||
<input
|
||||
type="radio"
|
||||
name="layoutType"
|
||||
value="list"
|
||||
{{checked (eq layout "list")}}
|
||||
>
|
||||
<it-icon
|
||||
name="icons/layout/list"
|
||||
var:fill="currentColor"
|
||||
></it-icon>
|
||||
</label>
|
||||
</div>
|
||||
{{#if can.upload}}
|
||||
<button data-action="uploadImage">Upload Image</button>
|
||||
{{/if}}
|
||||
|
|
@ -12,7 +38,7 @@
|
|||
<ul class="image-list image-list--{{listLayout}}">
|
||||
{{#each images as | image |}}
|
||||
{{>
|
||||
(tb-filePath "templates/ArtBrowser/image/grid.hbs")
|
||||
(concat (tb-filePath "templates/ArtBrowser/image/") @root.layout ".hbs")
|
||||
image=image
|
||||
is=@root.is
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue