Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Created April 5, 2024 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmarputz/587a218aef745efb0a77ad4911c2136e to your computer and use it in GitHub Desktop.
Save elmarputz/587a218aef745efb0a77ad4911c2136e to your computer and use it in GitHub Desktop.
<div class="ui middle aligned selection divided list">
@for (book of books; track book) {
<a class="item">
@if(book.images && book.images[0]) {
<img class="ui tiny image" [src]="book.images[0].url"/>
}
<div class="content">
<div class="header">{{ book.title }}</div>
<div class="description"> {{ book.subtitle }} </div>
<div class="metadata">
@for (author of book.authors; track author; let l =$last) {
<span>{{ author.firstName }} {{ author.lastName }}@if(!l){<span>, </span>}</span>
}
</div>
<div class="extra">ISBN {{ book.isbn }}</div>
</div>
</a>
}
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment