scinote-web/app/views/shared/_view_switch.html.erb

10 lines
486 B
Text

<div class="dropdown view-switch" >
<a href="#" class="btn btn-light view-switch-button <%= "disabled" if disabled %>" id="viewSwitchButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span><%= t('general.view') %></span>
<span class="caret pull-right"></span>
</a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="viewSwitchButton">
<li class="divider-label"><%= t("general.set_view_type") %></li>
<%= yield %>
</ul>
</div>