Warning, /eic.github.io/_includes/layouts/autodrop_data.md is written in an unsupported language. File is not indexed.
0001 {% case include.what %}
0002
0003 {% when "software" %} {% assign theCollection=site.software %} {% assign icon=site.software_icon %}
0004 {% when "resources" %} {% assign theCollection=site.resources %} {% assign icon=site.resources_icon %}
0005 {% when "activities" %} {% assign theCollection=site.activities %} {% assign icon=site.activities_icon %}
0006 {% when "organization" %}{% assign theCollection=site.organization %}{% assign icon=site.organization_icon %}
0007 {% when "policies" %} {% assign theCollection=site.policies %} {% assign icon=site.policies_icon %}
0008 {% when "documentation" %}{% assign theCollection=site.documentation %}{% assign icon=site.documentation_icon %}
0009 {% when "about" %} {% assign theCollection=site.about %} {% assign icon=site.about_icon %}
0010
0011 {% endcase %}
0012
0013 {% assign the_menu = site.data.menus | where: "name", include.what | first %}
0014
0015 <li class="nav-item dropdown px-2">
0016 {% if icon.size > 0 %}
0017 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="color: #fff;">{{ the_menu.full }} <img src="{{ icon | relative_url }}" height="16" width="16"></a>
0018 {% else %}
0019 <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="color: #fff;">{{ the_menu.full }}</a>
0020 {% endif %}
0021
0022 <div class="dropdown-menu" aria-labelledby="navbarDropdown">
0023
0024 {% for submenu in the_menu.submenus %}
0025 {% if submenu.exclude %}{% continue %}{% endif %}
0026
0027 {% if submenu.div %}<div class="dropdown-divider"></div>{% endif %}
0028
0029 {% if submenu.label %}<div class="dropdown-item" style="color: #fff; background-color: #888;">{{ submenu.full }}</div>{% continue %}{% endif %}
0030
0031
0032 {% if submenu.link %}
0033 {% assign theLink=submenu.link %}
0034 <a class="dropdown-item" href="{{ theLink }}" {{ site.blank }}>{{ submenu.full }} <img src="{{ site.external_icon | relative_url }}" height="12" width="12"></a>
0035 {% else %}
0036
0037 {% assign item=theCollection | where: "name", submenu.name | first %}
0038 {% assign theLink=item.url | relative_url %}
0039
0040 {% assign experiment=theCollection | where: "name", submenu.name | map: "url" | first | relative_url %}
0041 <a class="dropdown-item" href="{{ theLink }}">{{ submenu.full }}</a>
0042
0043 {% endif %}
0044
0045 {% endfor %}
0046
0047 </div>
0048 </li>