Skip to content

Commit

Permalink
Navigation: Remove NA League menu item
Browse files Browse the repository at this point in the history
Removes the NA League drop-down from the navigation
Also forces featured menu links to be opened in a new tab
  • Loading branch information
Astraeus- authored Feb 4, 2022
1 parent f4afa22 commit a855488
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions plugins/rikki/loungeviews/components/navigation/default.htm
Original file line number Diff line number Diff line change
Expand Up @@ -70,49 +70,13 @@
</ul>
</li>

<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" id="seasons" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">NA League</a>
<ul role="menu" class="dropdown-menu pull-right">
{% for season in __SELF__.current_na_amateurseasons %}
{% if season.reg_open == false and (season.divisions|length > 0 or season.playoffs|length > 0) %}
<li class="dropdown-item dropdown-submenu">
<a class="dropdown-toggle" data-toggle="dropdown"
id="season_{{season.id}}">{{season.title}}</a>
<div class="dropdown-menu" aria-labelledby="#season_{{season.id}}">
{% for division in season.divisions|sort((a, b) => a.title > b.title) %}
<a class="dropdown-item"
href="{{ 'season/division'|page({slug: season.slug, divslug: division.slug})}} ">{{division.title}}</a>
{% endfor %}
{% for playoff in season.playoffs %}
<a class="dropdown-item"
href="{{ 'season/playoff'|page({'season-slug': season.slug, 'playoff-title': playoff.title})}} ">{{playoff.title}}</a>
{% endfor %}
</div>
</li>
{% else %}
<a class="dropdown-item"
href="{{ 'season/view' |page({slug:season.slug})}}">{{season.title}}</a>
{% endif %}
{% endfor %}

{% for item in staticMenuGeneral.menuItems %}
<a class="dropdown-item" href="{{ item.url }}">{{item.title}}</a>
{% endfor %}

{% if can('cast_matches') %}
<a class="dropdown-item" href="{{ 'general/nacasterstatistics' | page}}">Caster Statistics</a>
{% endif %}
</ul>
</li>

{% for item in staticMenuFeatured.menuItems %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">{{item.title}}</a>
<ul role="menu" class="dropdown-menu pull-right">
{% for child in item.items %}
<a class="dropdown-item" href="{{ child.url }}">{{child.title}}</a>
<a class="dropdown-item" href="{{ child.url }}" target="_blank">{{child.title}}</a>
{% endfor %}
</ul>
</li>
Expand Down

0 comments on commit a855488

Please sign in to comment.