Skip to content

Commit

Permalink
Fix edit link for communities and add tab to partial.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgcliff committed Feb 28, 2024
1 parent 913399f commit 1e0ed6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.4
2.5.5
6 changes: 6 additions & 0 deletions app/views/communities/edit.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
%h3 Edit Community

%ul.nav.nav-tabs
%li.nav-item
%a.nav-link.active{"aria-current" => "page", href: "#"} Metadata
%li.nav-item
%a.nav-link{href: xml_editor_path(params[:id])} XML

= bootstrap_form_tag url: community_path(params[:id]), method: :patch do |f|
= f.hidden_field :id, value: params[:id]
= bootstrap_fields_for :community do |c|
Expand Down
2 changes: 1 addition & 1 deletion app/views/communities/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
= @community["description"]
.clearfix.pt-3
.float-end
= link_to "Edit", edit_collection_path(@community["id"]), class: "px-3"
= link_to "Edit", edit_community_path(@community["id"]), class: "px-3"
= link_to "Delete", "#", class: "px-3"

- content_for(:sidebar) do
Expand Down

0 comments on commit 1e0ed6b

Please sign in to comment.