- if calendars.any? %table.table %thead %th= Appt::Calendar.human_attribute_name(:name) %th= Appt::Calendar.human_attribute_name(:timezone_name) %th %tbody - calendars.each do |calendar| %tr %td= link_to calendar.name || 'Calendar', calendar_path(calendar) %td= calendar.timezone_name %td = link_to 'Edit', edit_calendar_path(calendar), class: 'btn btn-sm btn-default' - else %p You do not have any calendars yet. = link_to 'Create one.', new_calendar_path