Skip to content

Commit

Permalink
AO3-5890 - Add link to individual prompt and prompt user for prompt m…
Browse files Browse the repository at this point in the history
…eme posts
  • Loading branch information
js-egton committed May 1, 2024
1 parent a4d9e4c commit c97690f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/prompts/_prompt_blurb.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<div class="header module">
<h4 class="heading">
<% if !prompt.title.blank? %>
<%= prompt.title %>
<%= link_to prompt.title, collection_prompt_path(prompt.collection, prompt) %>
<% else %>
<%= ts("#{prompt.class.to_s}%{index}", :index => (index ||= false) ? " #{index+1}" : '') %>
<%= link_to ts("#{prompt.class.to_s}%{index}", :index => (index ||= false) ? " #{index+1}" : ''), collection_prompt_path(prompt.collection, prompt) %>
<% end %>
<% if prompt.anonymous? %>
<%= ts("by Anonymous") %>
<% else %>
<%= ts("by %{person}", :person => (prompt.pseud ? prompt.pseud.byline : prompt.challenge_signup.pseud.byline)) %>
<%= ts("by") %>
<%= pseud_link(prompt.pseud ? prompt.pseud : prompt.challenge_signup.pseud) %>
<% end %>
<% unless @collection %>
<%= ts("in") %> <%= link_to prompt.collection.title, collection_path(prompt.collection) %>
Expand Down

0 comments on commit c97690f

Please sign in to comment.