mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 10:06:53 +08:00
528d411910
Co-authored-by: Martin Artnik <martin@scinote.net> Co-authored-by: mvrazic <144342580+mvrazic@users.noreply.github.com>
20 lines
1.1 KiB
Text
20 lines
1.1 KiB
Text
<div class="dropdown view-switch" >
|
|
<div href="#" class="btn btn-light btn-black view-switch-button prevent-shrink <%= "disabled" if disabled %>" id="viewSwitchButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
|
<span class="state-view-switch-btn-name" data-e2e="e2e-TX-invInventoryViewSwitchRT-selected"><%= archived ? t('toolbar.archived_state') : t('toolbar.active_state') %></span>
|
|
<span class="sn-icon sn-icon-down"></span>
|
|
</div>
|
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="viewSwitchButton">
|
|
<% if switchable %>
|
|
<li class="view-switch-active" data-e2e="e2e-BT-invInventoryViewSwitchRT-active">
|
|
<%= link_to active_url, class: "#{ 'form-dropdown-state-item prevent-shrink' unless archived }" do %>
|
|
<%= t('toolbar.active_state') %>
|
|
<% end %>
|
|
</li>
|
|
<li class="view-switch-archived" data-e2e="e2e-BT-invInventoryViewSwitchRT-archived">
|
|
<%= link_to archived_url, class: "#{ 'form-dropdown-state-item prevent-shrink' if archived }" do %>
|
|
<%= t('toolbar.archived_state') %>
|
|
<% end %>
|
|
</li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|