Skip to content

Instantly share code, notes, and snippets.

@kmaraz
Created March 19, 2018 09:37
Show Gist options
  • Save kmaraz/41be166e8bc12cd944393ff8d453860b to your computer and use it in GitHub Desktop.
Save kmaraz/41be166e8bc12cd944393ff8d453860b to your computer and use it in GitHub Desktop.
<div id="module-events">
<div ng-show="!$ctrl.config.isLoaded">
<div class="spinner">Loading...</div>
</div>
<div ng-show="$ctrl.config.isLoaded && !$ctrl.config.search">
<!-- No events -->
<div ng-show="$ctrl.eventsCount === 0">
No events for you.
</div>
<!-- No searched events -->
<div ng-show="$ctrl.eventsCount > 0">
<!-- All events -->
<events-event-item
ng-repeat="event in $ctrl.events | limitTo: $ctrl.config.limit"
event="event"
select-event="$ctrl.EventsActions.selectEvent(eventHash, sectionId, url)"
open-present-view="$ctrl.EventsActions.openPresentView(url)"
open-audience-view="$ctrl.EventsActions.openAudienceView(url)"
current-user="$ctrl.currentUser"
duplicate-event="$ctrl.EventsActions.duplicateEvent(eventUuid)"
delete-event="$ctrl.EventsActions.deleteEvent(eventUuid, hash)">
</events-event-item>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment