- <div class="btn-group">
- <div id="edit_tab" class="btn-group <%= current_page_class(edit_path) %>">
- <%= link_to t("layouts.edit"),
- edit_path,
- :class => "btn btn-outline-primary geolink editlink",
- :id => "editanchor",
- :data => { :editor => preferred_editor } %>
- <a class='btn btn-outline-primary dropdown-toggle dropdown-toggle-split' data-toggle='dropdown' href='#'></a>
- <ul class='dropdown-menu'>
- <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
- <li>
- <%= link_to t("layouts.edit_with", :editor => t("editor.#{editor}.description")),
- edit_path(:editor => editor),
- :data => { :editor => editor },
- :class => "geolink editlink dropdown-item" %>
- </li>
- <% end %>
- </ul>
- </div>
- <%= link_to t("layouts.history"), history_path, :class => "btn btn-outline-primary geolink flex-grow-1 current_page_class(history_path)", :id => "history_tab" %>
- <%= link_to t("layouts.export"), export_path, :class => "btn btn-outline-primary geolink current_page_class(export_path)", :id => "export_tab" %>
+ <div id="edit_tab" class="btn-group">
+ <%= link_to t("layouts.edit"),
+ edit_path,
+ :class => "btn btn-outline-primary geolink editlink",
+ :id => "editanchor",
+ :data => { :editor => preferred_editor } %>
+ <button class='btn btn-outline-primary dropdown-toggle dropdown-toggle-split flex-grow-0' type='button' data-bs-toggle='dropdown'></button>
+ <ul class='dropdown-menu'>
+ <% Editors::RECOMMENDED_EDITORS.each do |editor| %>
+ <li>
+ <%= link_to t("layouts.edit_with", :editor => t("editor.#{editor}.description")),
+ edit_path(:editor => editor),
+ :data => { :editor => editor },
+ :class => "geolink editlink dropdown-item" %>
+ </li>
+ <% end %>
+ </ul>