page_recommend.html 951 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <template name="page_recommend">
  2. {{#unless isLoggedIn }}
  3. <div class="jumbotron">
  4. <p>You need to be logged in to get personalized recommendations.</p>
  5. </div>
  6. {{else}}
  7. <table class="table table-striped">
  8. <thead>
  9. <tr>
  10. <th>Because you liked...</th>
  11. <th>You might like</th>
  12. </tr>
  13. </thead>
  14. <tbody>
  15. {{ log }}
  16. {{#each recommended }}
  17. <tr>
  18. <td>
  19. {{> website_item_teaser liked }}
  20. </td>
  21. <td>
  22. {{#if similar}}
  23. <ul>
  24. {{#each similar}}
  25. <li>
  26. {{> website_item_teaser }}
  27. </li>
  28. {{/each}}
  29. </ul>
  30. {{else}}
  31. <p>No similar site found.</p>
  32. {{/if}}
  33. </td>
  34. </tr>
  35. {{/each}}
  36. </tbody>
  37. </table>
  38. {{/unless}}
  39. </template>