{{#with menuItem}}
{{#if visible}}
{{#if isFavorite}}
<div class="row collection-item" style="line-height: 24px; padding: 0px; border: none;">

    <a class="row col s10{{#if ../../../useWavesEffect}} waves-effect{{else}} waves-alternative{{/if}}" style="margin-bottom: 0px; padding: 10px 0 0 0;" data-favorite="true" data-menu="menu" href="{{route}}">
        <i class="material-icons col s2">{{icon}}</i>
        <div class="col s10" style="word-wrap: break-word">{{title}}</div>
    </a>
    <div class="col s2" style="padding: 10px 0 0 10px;">
        <div class="secondary-content">
            <input type="checkbox" class="filled-in" id="favorite{{favId}}" data-favoritelink="{{route}}"/>
            <label for="favorite{{favId}}"></label>
        </div>
    </div>
</div>
{{else}}
<a class="row collection-item{{#if ../../../useWavesEffect}} waves-effect{{else}} waves-alternative{{/if}}{{#if disabled}} rwthapp-disabled{{/if}}" style="line-height: 24px; border: none;  padding: 10px 0;" data-{{#if submenu}}submenu="{{submenuKey}}"{{else}}menu="menu"{{/if}}
   {{#if maintenance}} href="#maintenance?title={{title}}&due={{maintenance.due}}&reason={{maintenance.reason}}" {{else}} {{#if route}} href="{{route}}" {{/if}} {{/if}}>
    {{#unless footer}}{{#if image}}<div class="col s2 material-icons"><img src="img/{{image}}" style="height:24px;width:24px;"></div>{{else}}{{#if icon}}<i class="material-icons col s2">{{icon}}</i>{{/if}}{{/if}}{{/unless}}
    <div class="col {{#if footer}}s12{{else}}s10{{/if}}" style="word-wrap: break-word;{{#unless footer}} padding-left: 0;{{/unless}}">{{title}}{{#if submenu}}<i class="secondary-content material-icons rwth-black-text text-lighten-3">chevron_right</i>{{/if}}</div>
</a>
{{/if}}
{{/if}}
{{/with}}