Skip to content

Instantly share code, notes, and snippets.

@kutliev
Last active February 11, 2018 19:37
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 kutliev/499d0a6214dad4253d80e816008db9cc to your computer and use it in GitHub Desktop.
Save kutliev/499d0a6214dad4253d80e816008db9cc to your computer and use it in GitHub Desktop.
Spot list
<tbody>
<tr *ngFor="let spot of spots">
<td class="has-text-grey">{{ spot.floor }}</td>
<td><a routerLink="/spots/{{ spot.slug }}">{{ spot.title }}</a></td>
<td>{{ spot.type }}</td>
<td class="has-text-right">{{ spot.payments.length }}</td>
<td class="has-text-right">{{ spot.maintenances.length }}</td>
<td class="has-text-right">{{ spot.cleanings.length }}</td>
<td>
<a class="button is-primary is-small" routerLink="/spots/{{ spot.slug }}/addevent" title="Add event">
<i class="fas fa-plus"></i>
</a>
<a class="button is-info is-small" routerLink="/spots/{{ spot.slug }}/edit" title="Edit spot">
<i class="far fa-edit"></i>
</a>
</td>
</tr>
</tbody>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment