<% # expects "prompt", if index is passed will use that in title if none exists, if suppress_claims is true will ignore %>
  • <% if !prompt.title.blank? %> <%= prompt.title %> <% else %> <%= ts("#{prompt.class.to_s}%{index}", :index => (index ||= false) ? " #{index+1}" : '') %> <% end %> <% if prompt.anonymous? %> <%= ts("by Anonymous") %> <% else %> <%= ts("by %{person}", :person => (prompt.pseud ? prompt.pseud.byline : prompt.challenge_signup.pseud.byline)) %> <% end %> <% unless @collection %> <%= ts("in") %> <%= link_to prompt.collection.title, collection_path(prompt.collection) %> <% end %>

    <% tag_groups = prompt.tag_groups %> <% # eventually we should let mod specify topmost tag type to display -- ie chars and rels for single-fandom meme, freeforms for single-relationship meme %>
    <%= ts('Fandom') %>: <%= tag_groups['Fandom'].collect{|tag| link_to_tag_works(tag) }.join(', ').html_safe if tag_groups['Fandom'] %>  
    <%= get_symbols_for(prompt, tag_groups) %>

    <%= set_format_for_date(prompt.created_at) %>

    <%= ts("Tags") %>
    <% if prompt.optional_tag_set && !prompt.optional_tag_set.tags.empty? %>
    <%= ts("Optional Tags:") %>
    <% end %> <% unless prompt.description.blank? %>
    <%= ts("Summary") %>
    <%=raw sanitize_field(prompt, :description) %>
    <% end %> <% unless prompt.url.blank? %>

    <% url_label = prompt.collection.challenge.send("request_url_label") %><%= url_label.blank? ? ts("URL:") : url_label %> <%= link_to(prompt.url, prompt.url) %>

    <% end %> <% if logged_in? %> <%= render "prompts/prompt_controls", :challenge_signup => prompt.challenge_signup, :prompt => prompt %> <% end %> <% unless (suppress_claims ||= false) %> <% # if prompt has been claimed list by whom %> <% unless prompt.unfulfilled_claims.empty? %>
    <%= ts("Claimed By")%>
    <% end %> <% # if prompt has been fulfilled list works %> <% unless prompt.unfulfilled? %>
    <%= ts("Fulfilled By")%>
    <% end %> <% end %>