Sha256: bb3ccb57a5a212fcfc605d25cebcf4478ba49578737aff6347049e5f3db328d6

Contents?: true

Size: 793 Bytes

Versions: 4

Compression:

Stored size: 793 Bytes

Contents

- add_title Calendar.model_name.human.pluralize
= date_book_scripts
.row
  .col-md-9
    #calendar-display
  .col-md-3
    %ul.calendars
      - @calendars.each do |calendar|
        %li.calendar
          = link_to calendar.name, calendar
- add_footer_javascript do
  :javascript
    $(function() {
      $('#calendar-display').fullCalendar({
        events: {
          url: '#{date_book.api_path format: :json}',
          type: 'POST',
          data: { query: calendarEventsQuery },
          success: function(data, status, xhr) {
            data = data.data.event_occurrences;
            new_data = $.map(data, formatEventOccurrence);
            return new_data;
          }
        },
        eventRender: calendarEventRender,
        header: calendarEventHeader,
      });
    });

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
date_book-0.0.5 app/views/date_book/calendars/index.html.haml
date_book-0.0.3 app/views/date_book/calendars/index.html.haml
date_book-0.0.2 app/views/date_book/calendars/index.html.haml
date_book-0.0.1 app/views/date_book/calendars/index.html.haml