Skip to content
Snippets Groups Projects
Select Git revision
  • b83d81bb9b4c04fc1a6498fd7be31260a7ebbcfa
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

CursorMaterial.mat

Blame
  • pagination.html 1.82 KiB
    {% comment %}
        Renders a pagination element. 
        Expects the default jekyll 'paginator' as argument. 
    {% endcomment %}
    
    {% assign paginator = paginator %}
    
    <ul class="pagination">
        
        <!-- The previous page -->
        {% if paginator.previous_page %}
            <li class="waves-effect">
                <a href="{{ site.baseurl }}{{paginator.previous_page_path}}">
                    <i class="material-icons">chevron_left</i>
                </a>
            </li>
        {% else %}
            <li class="disabled">
                <a href="#!">
                    <i class="material-icons">chevron_left</i>
                </a>
            </li>
        {% endif %}
        
        <!-- Show all the pages -->
        {% for page in (1..paginator.total_pages) %}
            {% if page == paginator.page %}
                <li class='active'>
                    <a href="#!">
                        {{page}}
                    </a>
                </li>
            {% elsif page == 1 %}
                <li class="waves-effect">
                    <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">
                        {{page}}
                    </a>
                </li>
            {% else %}
                <li class="waves-effect">
                    <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">
                        {{page}}
                    </a>
                </li>
            {% endif %}
        {% endfor %}
        
        
        <!-- The next page -->
        {% if paginator.next_page %}
            <li class="waves-effect">
                <a href="{{ site.baseurl }}{{paginator.next_page_path}}">
                    <i class="material-icons">chevron_right</i>
                </a>
            </li>
        {% else %}
            <li class="disabled">
                <a href="#!">
                    <i class="material-icons">chevron_right</i>
                </a>
            </li>
        {% endif %}
        
    </ul>