Skip to content

Commit

Permalink
Clean action_buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Rass committed Oct 23, 2024
1 parent a93afcb commit 5bf6e72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/rooms/_action_buttons.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@

<!-- Views FRONT / BACK -->
<% if view_side == Frame::VIEW_SIDES[:both] %>
<%= content_tag :div, class: 'btn btn-sm btn-primary disabled' do %>
<%= content_tag :div, class: 'btn btn-sm btn-outline-primary disabled' do %>
<%= Frame.human_attribute_name("view_sides.both") %>
<% end %>
<% else %>
<%= link_to url_for(params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({view: (view_side == Frame::VIEW_SIDES[:back] ? Frame::VIEW_SIDES[:front] : Frame::VIEW_SIDES[:back]), islet: params['islet'], id: params['id']})), class: "btn btn-sm btn-primary align-items-center", remote: true do %>
<%= link_to url_for(params.except(:controller, :action).permit(:view, :islet, :id, :bg, :format).merge({view: (view_side == Frame::VIEW_SIDES[:back] ? Frame::VIEW_SIDES[:front] : Frame::VIEW_SIDES[:back]), islet: params['islet'], id: params['id']})), class: "btn btn-sm btn-outline-primary align-items-center", remote: true do %>
<span class="bi bi-back" aria-hidden="true"></span>
<%= Frame.human_attribute_name("view_sides.#{view_side}") %>
<% end %>
<% end %>
<%= link_to "#", class: 'btn btn-sm btn-primary align-items-center', id: 'drag-n-drop-switcher' do %>
<%= link_to "#", class: 'btn btn-sm btn-outline-primary align-items-center', id: 'drag-n-drop-switcher' do %>
<span class="bi bi-arrows-move" aria-hidden="true"></span>
<%= t(".dragn_drop.enable") %>
<% end %>
Expand Down

0 comments on commit 5bf6e72

Please sign in to comment.