123456789101112131415161718192021222324252627282930313233343536373839 |
- <template name="page_recommend">
- {{#unless isLoggedIn }}
- <div class="jumbotron">
- <p>You need to be logged in to get personalized recommendations.</p>
- </div>
- {{else}}
- <table class="table table-striped">
- <thead>
- <tr>
- <th>Because you liked...</th>
- <th>You might like</th>
- </tr>
- </thead>
- <tbody>
- {{ log }}
- {{#each recommended }}
- <tr>
- <td>
- {{> website_item_teaser liked }}
- </td>
- <td>
- {{#if similar}}
- <ul>
- {{#each similar}}
- <li>
- {{> website_item_teaser }}
- </li>
- {{/each}}
- </ul>
- {{else}}
- <p>No similar site found.</p>
- {{/if}}
- </td>
- </tr>
- {{/each}}
- </tbody>
- </table>
- {{/unless}}
- </template>
|