Back to home page

EIC code displayed by LXR

 
 

    


Warning, /epic.github.io/_includes/layouts/autodrop_data.md is written in an unsupported language. File is not indexed.

0001 {% case {{include.what}} %}
0002 
0003 {% when "public" %}      {% assign theCollection=site.public %}    {% assign icon=site.public_icon %}
0004 {% when "physics" %}     {% assign theCollection=site.physics %}   {% assign icon=site.physics_icon %}
0005 {% when "detector" %}    {% assign theCollection=site.detector %}  {% assign icon=site.detector_icon %}
0006 {% when "sc" %}          {% assign theCollection=site.sc %}        {% assign icon=site.software_icon %}
0007 {% when "meetings" %}    {% assign theCollection=site.meetings %}  {% assign icon=site.meeting_icon %}
0008 {% when "documents" %}   {% assign theCollection=site.documents %} {% assign icon=site.literature_icon %}
0009 {% when "news" %}        {% assign theCollection=site.news %}      {% assign icon=site.news_icon %}
0010 
0011 
0012 {% when "collaboration" %}    {% assign theCollection=site.collaboration %}  {% assign icon=site.organization_icon %}
0013 
0014 {% endcase %}
0015 
0016 {% assign the_menu = site.data.menus | where: "name", include.what | first %}
0017 
0018 
0019 {% if include.public == "yes" %}
0020 {% assign the_menu = site.data.menus_public | where: "name", include.what | first %}
0021 {% endif %}
0022 
0023 
0024 <li class="nav-item dropdown px-2">
0025 
0026 {% if include.what=="internal" %}
0027 {% assign internalLink=include.link | relative_url %}
0028 <a class="nav-link"  href="{{internalLink}}" id="navbarDropdown"  style="color: #fff;">For Collaborators</a>
0029 {% else %}
0030 {% if icon.size > 0 %}
0031 <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 }}&nbsp;&nbsp;<img src="{{ icon | relative_url }}" height="16" width="16"></a>
0032 {% else %}
0033 <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>
0034 {% endif %}
0035 
0036 <div class="dropdown-menu" aria-labelledby="navbarDropdown">
0037 
0038 {% for submenu in the_menu.submenus %}
0039 {% if submenu.exclude %}{% continue %}{% endif %}
0040 
0041 {% if submenu.div %}<div class="dropdown-divider"></div>{% endif %}
0042 
0043 {% if submenu.name=='separator' %}{{ site.hr }}{% continue %}{% endif %}
0044 
0045 {% if submenu.label %}<div class="dropdown-item" style="color: #fff; background-color: #888;">{{ submenu.full }}</div>{% continue %}{% endif %}
0046 
0047 
0048 {% if submenu.link %}
0049 {% assign theLink=submenu.link %}
0050 <a class="dropdown-item" href="{{ theLink }}" {{ site.blank }}>{{ submenu.full }}&nbsp;<img src="{{ site.external_icon | relative_url }}" height="12" width="12"></a>
0051 {% else %}
0052 
0053 {% assign item=theCollection | where: "name", submenu.name | first %}
0054 {% assign theLink=item.url | relative_url %}
0055 
0056 {% assign experiment=theCollection | where: "name", submenu.name | map: "url" | first | relative_url %}
0057 <a class="dropdown-item"   {{ submenu.style }} href="{{ theLink }}">{{ submenu.full }}</a>
0058 
0059 {% endif %}
0060 
0061 {% endfor %}
0062 
0063 </div>
0064 {% endif %}
0065 </li>