Commit 8a7c7c43 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Add menu outline with not yet implemented pages

parent 3fec655e
from django.utils.translation import ugettext as _
main = [
{'title': _('Home'), 'name': 'index'},
{'title': _('Association'), 'name': '#', 'submenu': [
{'title': _('Board'), 'name': '#'},
{'title': _('Committees'), 'name': '#'},
{'title': _('Members'), 'name': '#'},
{'title': _('Documents'), 'name': '#'},
{'title': _('Members'), 'name': '#'},
{'title': _('Sister Associations'), 'name': '#'},
{'title': _('Become Member'), 'name': '#'},
{'title': _('Thabloid'), 'name': '#'},
]},
{'title': _('For Members'), 'name': '#', 'submenu': [
{'title': _('Photos'), 'name': '#'},
{'title': _('Statistics'), 'name': '#'},
{'title': _('Become Active'), 'name': '#'},
{'title': _('Wiki'), 'name': '#'},
]},
{'title': _('Calendar'), 'name': '#'},
{'title': _('Career'), 'name': '#', 'submenu': [
{'title': _('Sponsor'), 'name': '#'},
{'title': _('Vacancies'), 'name': '#'},
]},
{'title': _('Education'), 'name': '#', 'submenu': [
{'title': _('Book Sale'), 'name': '#'},
{'title': _('Course Overview'), 'name': '#'},
{'title': _('Add Exam'), 'name': '#'},
{'title': _('Add Summary'), 'name': '#'},
]},
{'title': _('Contact'), 'name': '#'},
]
{% load i18n static compile_static %}
{% load i18n static compile_static menu %}
<!DOCTYPE html>
<!--[if IE 9]><html dir="ltr" lang="{{ get_current_language }}" class="lt-ie10"> <![endif]-->
......@@ -66,16 +66,7 @@
<div class="clearfix"></div>
<!-- #primary-navigation -->
<div id="primary-navigation" class="container fullwidth">
<!-- .menu-responsive -->
<a class="menu-responsive"><span class="menu-icon-nav"></span><span class="menu-title">Navigation</span></a>
<!-- /.menu-responsive -->
<!-- .menu -->
<!-- /.menu -->
</div>
{% render_main_menu %}
<!-- /#primary-navigation -->
</div>
......@@ -92,7 +83,11 @@
<!-- /#header panel -->
<!-- content -->
<div id="main" class="wrapper">
<div class="main-content container">
{% block body %}{% endblock body %}
</div>
</div>
<!-- end content -->
<!-- #top-footer -->
......@@ -119,7 +114,7 @@
<div class="social-icon-tor"><a href="http://thaliawww7dzhrlu.onion"><img src="{% static "images/social_icons/tor.png" %}" alt="tor"></a></div>
</div>
<div class="clearfix"></div>
<p class="copyright">Copyright <?php echo("0x".dechex(date("Y"))); ?> Studievereniging Thalia</p>
<p class="copyright">Copyright {% now "Y" %} {% trans 'Study Association Thalia' %}</p>
</div>
</div>
<!-- /#bottom -->
......
<div id="primary-navigation" class="container fullwidth">
<!-- .menu-responsive -->
<a class="menu-responsive"><span class="menu-icon-nav"></span><span class="menu-title">Home</span></a>
<!-- /.menu-responsive -->
<!-- menu -->
<ul class="nav">
{% for item in menu %}
{% url item.name as path %}
<li {% if request.path == path %}class="nav-path-selected"{% endif %}>
<a href="{{ path }}" target="_self" {% if request.path == path %}class="nav-path-selected"{% endif %}>
{{ item.title }}
</a>
{% if 'submenu' in item %}
{% include 'menu/submenu.html' with submenu=item.submenu %}
{% endif %}
</li>
{% endfor %}
</ul>
<!-- /menu -->
</div>
<ul>
{% for item in submenu %}
{% url item.name as path %}
<li {% if request.path == path %}class="nav-selected nav-path-selected"{% endif %}>
<a href="{{ path }}"
target="_self"
{% if request.path == path %}class="nav-selected nav-path-selected"{% endif %}>
{{ item.title }}
</a>
{% if 'submenu' in item %}
{% include 'menu/submenu.html' with submenu=item.submenu %}
{% endif %}
</li>
{% endfor %}
</ul>
{% extends "base.html" %}
{% block page_title %}Not Yet Implemented{% endblock %}
from django import template
from ..menus import main
register = template.Library()
@register.inclusion_tag('menu/menu.html', takes_context=True)
def render_main_menu(context):
return {'menu': main, 'request': context['request']}
......@@ -21,6 +21,7 @@ urlpatterns = [
url(r'^$', TemplateView.as_view(template_name='index.html'), name='index'),
url(r'^admin/', admin.site.urls),
url(r'^members/', include('members.urls')),
url(r'^nyi$', TemplateView.as_view(template_name='status/nyi.html'), name='#'),
# Default login helpers
url(r'^', include('django.contrib.auth.urls')),
]
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