This commit is contained in:
r888888888
2018-05-26 13:04:08 -07:00
parent ca842cc6d9
commit 97887a3241
2 changed files with 6 additions and 2 deletions

View File

@@ -16,7 +16,7 @@
</div> </div>
<%= f.input :other_names_comma, :hint => "Separate with commas", :as => :text, :label => "Other names" %> <%= f.input :other_names_comma, :hint => "Separate with commas", :as => :text, :label => "Other names" %>
<%= f.input :group_name %> <%= f.input :group_name %>
<%= f.input :url_string, :label => "URLs", :as => :text, :input_html => {:size => "50x5", :value => params.dig(:artist, :url_string) || @artist.urls.join("\n")} %> <%= f.input :url_string, :label => "URLs", :as => :text, :input_html => {:size => "50x5", :value => params.dig(:artist, :url_string) || @artist.urls.join("\n")}, :hint => "You can prefix a URL with - to mark it as dead." %>
<%= dtext_field "artist", "notes" %> <%= dtext_field "artist", "notes" %>
<%= f.button :submit, "Submit" %> <%= f.button :submit, "Submit" %>

View File

@@ -30,7 +30,11 @@
<ul> <ul>
<% artist.urls.each do |url| %> <% artist.urls.each do |url| %>
<li> <li>
<%= link_to h(url.to_s), h(url) %> <% if url.is_active? %>
<%= link_to h(url.to_s), h(url) %>
<% else %>
<del><%= h(url.url) %></del>
<% end %>
<% if CurrentUser.user.is_moderator? %> <% if CurrentUser.user.is_moderator? %>
[<%= link_to("mass edit", edit_moderator_tag_path(:antecedent => "-#{artist.name} source:#{ArtistUrl.normalize_for_search(url.url)}", :consequent => artist.name)) %>] [<%= link_to("mass edit", edit_moderator_tag_path(:antecedent => "-#{artist.name} source:#{ArtistUrl.normalize_for_search(url.url)}", :consequent => artist.name)) %>]
<% end %> <% end %>