cubicweb_sherpa/views/templates/maintemplate.jinja2.html
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 24 Feb 2017 14:36:49 +0100
changeset 181 12721d10d5bd
parent 180 0802510445f1
child 184 2a711576ebdf
permissions -rw-r--r--
Replace navigation box by top-level buttons with proper activation detection.

<body>
  <nav class="navbar navbar-default navbar-sherpa" role="banner">
    <div class="container-fluid">
      <div class="col-md-2 hidden-xs hidden-sm">
        <a href="{{ base_url }}"><img src="{{ data_url }}images/logo_SIAF.png" class="logoSIAF" /></a>
      </div>
      <div class="col-md-7 col-xs-8">
        <a href="/">
          <div class="logoSHERPA">
            <img src="{{ data_url }}images/logo_SHERPA_2.png" class="img-responsive"/>
          </div>
          <div class="textSHERPA">
            <h1>Service H&eacute;berg&eacute; pour la R&eacute;daction de Profils d&#39;Archivage</h1>
          </div>
        </a>
      </div>
      {% if header_components %}
      <div class="col-md-3 col-xs-4">
        <ul class="nav navbar-nav navbar-right">
        {% for comp_html in header_components %}
        <li>{{ comp_html|safe}}</li>
        {% endfor %}
        </ul>

      </div>
      {% endif %}
    </div>
  </nav>
  <nav role="navigation">
    <div class="col-md-offset-2">
      <ul class="nav nav-pills">
        {% for link in navigation_links %}
        {% if link.active %}
        <li class="active"><a href="{{ link.url }}" class="navbar-btn">{{ link.label }}</a></li>
        {% else %}
        <li><a href="{{ link.url }}" class="navbar-btn">{{ link.label }}</a></li>
        {% endif %}
        {% endfor %}
      </ul>
    </div>
  </nav>
  <div id="{{page_id}}" class="container-fluid" role="main">
    <aside id="aside-main-left" class="col-md-2 cwjs-aside">
      {% for box_html in boxes %}
      {{ box_html|safe}}
      {% endfor %}
    </aside>
    <div class="col-md-10 page-content" id="pageContent">
      {{ application_message|safe }}
      {{ contextual_components|safe }}
      {{ page_content|safe }}
    </div>
  </div>
  <div class="container-fluid">
    <footer role="contentinfo" id="pagefooter">
      <section class="links">
        <div id="sherpa-resources">
        <h3>Ressources</h3>
        {% for resource in footer.resources %}
          <a href='{{ resource.url }}'> {{ resource.label }}</a>
        {% endfor %}
        </div>
        <div id="sherpa-navigation">
        <h3>Navigation</h3>
        {% for page in footer.navigation_Link %}
          <a href='{{ page.url }}'> {{ page.label }}</a>
        {% endfor %}
        </div>
      </section>
      <div id="copyright">
        <span>copyright</span> |
        <span><a href="">contact</a></span>
      </div>
    </footer>
  </div>
</body>