The goal here is to create a staff Calendar that shows at a glance the status of calendar events (Approved/Pending) and on which calendars they are displayed.Staff_Calendar.png

First step is making a copy of Calendar.lava named CalendarInternal.lava in the Themes\Rock\Assets\Lava folder and adding this code (at line 15, which is included for context)

      <div class="pull-right">
{% if eventItemOccurrence.EventItemOccurrence.EventItem.IsApproved %}
<span class="btn btn-success">Approved </span>{% else %}<span class="btn btn-warning">Pending Approval </span>{% endif %}
{% for eventCalendaritem in eventItemOccurrence.EventItemOccurrence.EventItem.EventCalendarItems %}
<span class="btn btn-info">{{ eventCalendaritem.EventCalendar }}&nbsp</span>
{% endfor %} 

Learning Tip: It was difficult learning how to reference the EventCalendarItems collection, (eventItemOccurrence.EventItemOccurrence.EventItem.IsApproved is not obvious to me) but I learned from the existing code in Calendar.lava more than from the manuals.

Next step is to create a child page to Organization Information on the Internal website, and adding a Calendar lava block. Make sure it the Approval Status filter is set to "All" and change the filename in the Block settings Lava Template Block_Settings.png

Hope this is helpful.