forked from e621ng/e621ng
47 lines
1.5 KiB
Plaintext
47 lines
1.5 KiB
Plaintext
<div id="c-artist-urls">
|
|
<div id="a-index">
|
|
<%= form_search(path: artist_urls_path) do |f| %>
|
|
<%= f.input :artist_name, label: "Artist Name", autocomplete: "artist" %>
|
|
<%= f.input :url_matches, label: "URL" %>
|
|
<%= f.input :normalized_url_matches, label: "Normalized URL" %>
|
|
<%= f.input :is_active, label: "Active?", collection: [["Yes", true], ["No", false]], include_blank: true %>
|
|
<%= f.input :order, collection: [["ID", "id"], ["Created", "created_at"], ["Updated", "updated_at"]] %>
|
|
<% end %>
|
|
|
|
<table class="striped">
|
|
<thead>
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Artist Name</th>
|
|
<th>URL</th>
|
|
<th>Normalized URL</th>
|
|
<th>Active?</th>
|
|
<th>Created</th>
|
|
<th>Updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% @artist_urls.each do |artist_url| %>
|
|
<tr>
|
|
<%= tag.td artist_url.id %>
|
|
<%= tag.td link_to(artist_url.artist.name, artist_url.artist) %>
|
|
<%= tag.td external_link_to(artist_url.url.to_s) %>
|
|
<%= tag.td external_link_to(artist_url.normalized_url) %>
|
|
<%= tag.td artist_url.is_active.to_s %>
|
|
<%= tag.td compact_time(artist_url.created_at) %>
|
|
<%= tag.td compact_time(artist_url.updated_at) %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= numbered_paginator(@artist_urls) %>
|
|
</div>
|
|
</div>
|
|
|
|
<%= render "artists/secondary_links" %>
|
|
|
|
<% content_for(:page_title) do %>
|
|
Artist URLs
|
|
<% end %>
|