aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/calendars/show.html.slim
blob: cec4f66a5434bbf29bd7cfb0774142e0c8e6b557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- breadcrumb :calendar, @workgroup, @calendar
- page_header_content_for @calendar

.page_content
  .container-fluid
    .row
      .col-lg-6.col-md-6.col-sm-12.col-xs-12
        = definition_list t('metadatas'),
          { 'Nom court' => resource.try(:short_name),
            Calendar.human_attribute_name(:shared) => t("#{resource.shared}"),
            'Organisation' => resource.organisation.name,
            Calendar.human_attribute_name(:dates) =>  resource.dates.collect{|d| l(d, format: :short)}.join(', ').html_safe,
            Calendar.human_attribute_name(:date_ranges) => resource.periods.map{|d| t('validity_range', debut: l(d.begin, format: :short), end: l(d.end, format: :short))}.join('<br>').html_safe }

    - if has_feature?('application_days_on_calendars')
      .row
        .col-lg-12.mb-sm
          .pagination.pull-right
            = @year
            .page_links
              = link_to '', calendar_path(@calendar, year: (@year - 1)), class: 'previous_page'
              = link_to '', calendar_path(@calendar, year: (@year + 1)), class: 'next_page'

      = render 'time_tables/show_time_table', time_table: @calendar