Fix #5179: Add wiki page versions to wiki page secondary links plus standardization
* Call it "Changes" when referring to the global list of changes (pool changes, artist changes, etc). * Call it "History" when referring to the history of a single item (pool history, artist history, etc). * Put the artist history search form on the /artist_versions page, and remove the /artist_versions/search endpoint.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
<div id="p-<%= listing_type(:artist_id) %>-listing">
|
||||
<%= search_form_for(artist_versions_path) do |f| %>
|
||||
<%= f.input :updater_name, label: "Updater", input_html: { value: params.dig(:search, :updater_name), "data-autocomplete": "user" } %>
|
||||
<%= f.input :name, label: "Artist", input_html: { value: params.dig(:search, :name), "data-autocomplete": "artist" } %>
|
||||
<%= f.submit "Search" %>
|
||||
<% end %>
|
||||
|
||||
<div id="p-<%= listing_type(:artist_id) %>-listing">
|
||||
<%= table_for @artist_versions, class: "striped autofit", width: "100%" do |t| %>
|
||||
<% t.column "Name", td: {class: "diff-body"} do |artist_version| %>
|
||||
<%= link_to artist_version.name, artist_path(artist_version.artist_id) %>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<%= subnav_link_to "Listing", artists_path %>
|
||||
<%= subnav_link_to "New", new_artist_path %>
|
||||
<%= subnav_link_to "Search", search_artist_versions_path %>
|
||||
<% end %>
|
||||
@@ -11,4 +11,4 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
<%= render "artists/secondary_links" %>
|
||||
|
||||
Reference in New Issue
Block a user