You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rezept.hbs 1.4KB

123456789101112131415161718192021222324252627282930313233343536
  1. {{#if this.isSelected}}
  2. <button type="button" class="rezept selected" {{on "click" this.toggleSelection}}>
  3. <span><img src={{@rezept.bild}} alt="Ein Bild von {{@rezept.titel}}"/></span>
  4. <span>
  5. <div class="detail">
  6. <h3>{{@rezept.titel}}</h3>
  7. <ul class="details">
  8. <li class="detail"><h4>Zutaten:</h4>{{#each @rezept.produkte as |produkt|}}
  9. {{produkt.attributes.titel}},
  10. {{/each}}Gewürze</li>
  11. <li class="detail"><h4>Personen:</h4>{{@rezept.personen}}</li>
  12. <li class="detail"><h4>Dauer:</h4>{{@rezept.dauer}}</li>
  13. </ul>
  14. </div>
  15. </span>
  16. </button>
  17. {{else}}
  18. <button type="button" class="rezept" {{on "click" this.toggleSelection}}>
  19. <span><img src={{@rezept.bild}} alt="Ein Bild von {{@rezept.titel}}"/></span>
  20. <span>
  21. <div class="detail">
  22. <h3>{{@rezept.titel}}</h3>
  23. <ul class="details">
  24. <li class="detail"><h4>Zutaten:</h4>{{#each @rezept.produkte as |produkt|}}
  25. {{produkt.attributes.titel}},
  26. {{/each}}Gewürze</li>
  27. <li class="detail"><h4>Personen:</h4>{{@rezept.personen}} </li>
  28. <li class="detail"><h4>Dauer:</h4>{{@rezept.dauer}}</li>
  29. </ul>
  30. </div>
  31. </span>
  32. </button>
  33. {{/if}}