Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
srct.gmu.io
Commits
f21d125f
Commit
f21d125f
authored
Jan 04, 2017
by
Mark Stenglein
Browse files
Implements dynamic menu generation from _data/navigation.yml
parent
79172d39
Changes
1
Show whitespace changes
Inline
Side-by-side
srctweb/_includes/navbar.html
View file @
f21d125f
...
...
@@ -12,24 +12,20 @@
<div
class=
"navbar-right collapse navbar-collapse navbar-ex1-collapse"
>
<ul
class=
"nav navbar-nav"
>
<li><a
href=
"{{ url_for('projects')}}"
>
Projects
</a></li>
<li><a
href=
" //hackmason.org "
>
Events
</a></li>
<li><a
href=
"{{ url_for('calendar')}}"
>
Calendar
</a>
<!-- <li><a href="http://blog.srct.gmu.edu">Blog</a> -->
<li><a
href=
"{{ url_for('people')}}"
>
People
</a></li>
{% for link in site.data.navigation.main %}
{% if link.children == null %}
<li><a
href=
"{{ link.url }}"
>
{{ link.title }}
</a></li>
{% else %}
<li
class=
"dropdown"
>
<a
id=
"drop1"
href=
"#"
role=
"button"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
Documents
<b
class=
"caret"
></b></a>
<a
id=
"drop1"
href=
"#"
role=
"button"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
{{ link.title }}
<b
class=
"caret"
></b></a>
<ul
class=
"dropdown-menu"
role=
"menu"
aria-labelledby=
"drop1"
>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('constitution')}}"
>
Constitution
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('usagePolicy')}}"
>
Usage Policy
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('termsOfService')}}"
>
Terms of Service
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('privacyPolicy')}}"
>
Privacy Policy
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('intellectualProperty')}}"
>
Intellectual Property
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('softwareFreedom')}}"
>
Software Freedom
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ url_for('logos')}}"
>
Logos
</a></li>
{% for childLink in link.children %}
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"{{ childLink.url }}"
>
{{ childLink.title }}
</a></li>
{% endfor %}
</ul>
</li>
<li><a
href=
"/contact"
>
Contact
</a>
{% endif %}
{% endfor %}
</ul>
</div>
<!--/.nav-collapse -->
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment