<%= render 'shared/timeline/pagination' %>

<dl class="list-timetable">
  <% @date_step.each do |date| %>
    <% next unless Settings.timetable.weekdays.include?(date.wday) %>
    <dt><%= "#{l date, format: :short} #{t('date.abbr_day_names')[date.wday]}" %></dt>
    <dd>
      <ul class="lecture-timeline">
        <%= render partial: 'shared/timeline/cell', collection: @timetable.rows[date.wday].cells, as: :cell, locals: { date: date } %>
      </ul>
    </dd>
  <% end %>
</dl>

<%= render 'shared/timeline/pagination' %>

<%= render 'shared/timeline/pagination' %>

<dl class="list-timetable">
  <% @date_step.each do |date| %>
    <% next unless Settings.timetable.weekdays.include?(date.wday) %>
    <dt><%= "#{l date, format: :short} #{t('date.abbr_day_names')[date.wday]}" %></dt>
    <dd>
      <ul class="lecture-timeline">
        <% if @timetable.rows[date.wday].present? %>
          <%= render partial: 'shared/timeline/cell', collection: @timetable.rows[date.wday].cells, as: :cell, locals: { date: date } %>
        <% end %>
      </ul>
    </dd>
  <% end %>
</dl>

<%= render 'shared/timeline/pagination' %>

Add nil guard to timetable view
Add nil guard to timetable view
