% content_for :heading do %>
<%= t ".subheading_html", :user => link_to(@user.display_name, @user), :submitted => tag.span(t(".subheading_submitted"), :class => "px-2 py-1 bg-primary bg-opacity-25"), :commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-body") %>
<% end %> <%= form_with :url => user_notes_path(@user), :method => :get, :data => { :turbo => true } do %><%= t ".id" %> | <%= t ".creator" %> | <%= t ".description" %> | <%= t ".created_at" %> | <%= t ".last_changed" %> | |
---|---|---|---|---|---|
<% if !note.visible? alt_text_key = ".hidden" pin_marker = tag.use :href => "#pin-minus", :color => "gray" elsif note.closed? alt_text_key = ".closed" pin_marker = tag.use :href => "#pin-tick", :color => "var(--marker-green)" else alt_text_key = ".open" pin_marker = tag.use :href => "#pin-cross", :color => "var(--marker-red)" end %> | <%= link_to note.id, note %> | <%= note_author(note.author) %> | <%= note_description(note.author, note.description, current_user&.moderator? ? note.comments.unscope(:where => :visible).first : note.comments.first).to_html %> | <%= friendly_date_ago(note.created_at) %> | <%= friendly_date_ago(note.updated_at) %> |