Thumbnail | Description | Username | Service Tags | Harvesting Tags | Staff Tags | Staff Like | DNR | <% if action?("moderate_passed")%>Moderator | <% end %>Suppressed | Status |
---|---|---|---|---|---|---|---|---|---|---|
<% unless image.media_type == "video" %> <%= link_to_large_admin_image(image) %> <% else %> <%= link_to(video_tag(image.video_url, controls: true, size: "250x250"), admin_lentil_image_path(image)) %> <% end %> | <%= image.description %> | <%= image.user.user_name %> | <%= image.service_tags.map{|tag| tag.name}.join(' | ') %> <%= f.input "service_tags", :as => :hidden, :collection => image.service_tags, :wrapper_html => {:style => "list-style: none"} %> | <%= image.service_tags.select{|tag| @harvestable_tag_ids.include? tag.id}.map{|tag| tag.name}.join(' | ') %> |
<% if defined? @tags %>
<%= f.input :tags, :label => false, :as => :select, :collection => image.available_staff_tags(@tags), :input_html => {:multiple => true, :class => "chzn-select", :'data-placeholder' => 'Select Tag', :style => "width:190px" }%>
<% else %>
<% if image.staff_tags.length > 0 %>
<%= image.staff_tags.map{|tag| tag.name}.join(' | ') %> <% end %> <%= link_to('Edit Staff Tags', update_image_admin_lentil_image_path(image)) %> <% end %> |
<%= f.input :staff_like, :label => "Staff Like", :wrapper_html => { :class => "moderation_checkbox" } %> | <%= f.input :do_not_request_donation, :label => "Don't request donation", :wrapper_html => { :class => "moderation_checkbox" } %> | <% if action?("moderate_passed")%><%= image.moderator.email %> | <% end %><%= f.input :suppressed, :label => "Suppressed", :wrapper_html => { :class => "moderation_checkbox" } %> | <%= f.input :state, :label => false, :as => :radio, :collection => Lentil::Image::States, :wrapper_html => { :class => "moderation_radio" } %> | <% end -%>