2023-04-20 19:40:38 +08:00
|
|
|
<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">
|
2023-04-24 05:43:47 +08:00
|
|
|
<span class="state-view-switch-btn-name""><%= params[:view_mode] == 'archived' ? t('toolbar.archived_state') : t('toolbar.active_state') %></span>
|
2023-04-20 19:40:38 +08:00
|
|
|
<span class="caret pull-right"></span>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="viewSwitchButton">
|
|
|
|
<%= yield %>
|
|
|
|
</ul>
|
|
|
|
</div>
|