Sha256: 759982e8ab5cc7c6c87f69a59eafb78f5033b92a3af60b25adff09a7743270ce

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

{%- for s in segment_data.items -%}
  {%- if s == session_id -%}
    {%- assign _index = forloop.index0 -%}
    {%- break -%}
  {%- endif -%}
{%- endfor -%}

{%- assign _nidx = _index | plus: 1 -%}
{%- assign _next_segment = segment_data.items[_nidx] -%}
{%- assign _next_item = site.data.sessions[_next_segment] -%}

{%- unless _next_item -%}
  {%- assign _next_segment = site.data.syllabus[next].items[0] -%}
  {%- assign _next_item = site.data.sessions[_next_segment] -%}
{%- endunless -%}

{%- if _index > 0 -%}
  {%- assign _pidx = _index | minus: 1 -%}
  {%- assign _prev_segment = segment_data.items[_pidx] -%}
  {%- assign _prev_item = site.data.sessions[_prev_segment] -%}
{%- endif -%}

{%- unless _prev_item -%}
  {%- assign _prev_segment = site.data.syllabus[prev].items[-1] -%}
  {%- assign _prev_item = site.data.sessions[_prev_segment] -%}
{%- endunless -%}

<section class="spacer center-align">
  <div class="paginator-container spacer">
  {%- include session/next_prev.html p="previous" item=_prev_item -%}
  {%- include session/next_prev.html p="next" item=_next_item -%}
  </div>

  <center>
    {%- if session_data.header -%}
      <small class='special'>{{ session_data.header }}</small><br/>
    {%- endif -%}
    {{ session_data.title }}
  </center>

  {%- include segment/nav.html segment=session_data.segment -%}
</section>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
askclass-course-theme-0.14.0 _includes/session/paginator.html
askclass-course-theme-0.13.5 _includes/session/paginator.html
askclass-course-theme-0.13.4 _includes/session/paginator.html
askclass-course-theme-0.13.3 _includes/session/paginator.html
askclass-course-theme-0.13.2 _includes/session/paginator.html
askclass-course-theme-0.13.1 _includes/session/paginator.html
askclass-course-theme-0.13.0 _includes/session/paginator.html