Commit 9d207203 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

collapse descriptions into single tab

parent 07966808
Pipeline #2367 passed with stages
in 47 seconds
......@@ -23,11 +23,9 @@
<div class="collapse navbar-collapse" id="navbarContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item"><a class="nav-link" href="/domain.html">Domain Description</a></li>
<li class="nav-item"><a class="nav-link" href="/description.html">Competition</a></li>
<li class="nav-item"><a class="nav-link" href="/domain.html">Overview</a></li>
<li class="nav-item"><a class="nav-link" href="/rankings.html">Rankings</a></li>
<li class="nav-item"><a class="nav-link" href="/research.html">Research</a></li>
<li class="nav-item"><a class="nav-link" href="/guide/">Guide</a></li>
<li class="nav-item"><a class="nav-link" href="/builder.html">Builder</a></li>
<li class="nav-item"><a class="nav-link" href="https://comp.fossgalaxy.com" target="_blank">Submit now</a></li>
</ul>
......@@ -35,7 +33,9 @@
</div>
<div id="wrapper" class="container mt-4">
{% block content %}
{% block wrapper %}
{% block content %}
{% endblock %}
{% endblock %}
</div>
......
{% extends "_base.html" %}
{% set side_bar = [
('/domain.html', 'domain', 'The Game'),
('/description.html', 'comp', 'The Competition'),
('/guide/', 'guide', 'The Guide'),
]
-%}
{% set active_side = active_side|default('domain') -%}
{% block wrapper %}
<div class="row">
<div class="col-3">
<div class="list-group">
{% for (href, id, label) in side_bar %}
<a href="{{href}}" class="list-group-item list-group-item-action {% if id==active_side %}active{% endif %}">{{label}}</a>
{% endfor %}
</div>
</div>
<div class="col">
{% block content %}
{% endblock %}
</div>
</div>
{% endblock %}
{% extends "_base.html" %}
{% extends "_overview.html" %}
{% set active_side="comp" %}
{% block title %}Competition{% endblock %}
{% block content %}
......
{% extends "_base.html" %}
{% extends "_overview.html" %}
{% block title %}Description{% endblock %}
{% block content %}
<div class="page-header">
<h1>Competition Description</h1>
<h1>Hanabi</h1>
</div>
<h2>Domain</h2>
......
{% extends "_base.html" %}
{% extends "_overview.html" %}
{% set active_side="guide" %}
{% block title %}Guide{% endblock %}
{% set tab_bar = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment