1 <% content_for :heading do %>
2 <h1><%= t ".heading", :user => @user.display_name %></h1>
3 <p><%= t ".subheading_html",
4 :user => link_to(@user.display_name, @user),
5 :submitted => tag.span(t(".subheading_submitted"), :class => "px-2 py-1 bg-primary bg-opacity-25"),
6 :commented => tag.span(t(".subheading_commented"), :class => "px-2 py-1 bg-body") %></p>
9 <%= form_with :url => user_notes_path(@user), :method => :get, :data => { :turbo => true } do %>
10 <div class="row gx-2 align-items-end">
11 <div class="col-sm-auto mb-3">
12 <%= label_tag :status, t(".status") %>
13 <%= select_tag :status,
14 options_for_select([[t(".all"), "all"], [t(".open"), "open"], [t(".closed"), "closed"]], params[:status] || "all"),
15 :class => "form-select" %>
17 <div class="col-sm-auto mb-3">
18 <%= submit_tag t(".apply"), :name => nil, :class => "btn btn-primary" %>
23 <% if @notes.empty? %>
24 <h4><%= t ".no_notes" %></h4>
27 <%= render :partial => "notes_paging_nav" %>
29 <table class="table table-sm note_list">
33 <th><%= t ".id" %></th>
34 <th><%= t ".creator" %></th>
35 <th><%= t ".description" %></th>
36 <th><%= t ".created_at" %></th>
37 <th><%= t ".last_changed" %></th>
40 <% @notes.each do |note| -%>
41 <tr<% if note.author == @user %> class="table-primary"<% end %>>
44 <%= image_tag("closed_note_marker.svg", :alt => "closed", :width => 25, :height => 40) %>
46 <%= image_tag("open_note_marker.svg", :alt => "open", :width => 25, :height => 40) %>
49 <td><%= link_to note.id, note %></td>
50 <td><%= note_author(note.author) %></td>
51 <td><%= note.comments.first.body.to_html %></td>
52 <td><%= friendly_date_ago(note.created_at) %></td>
53 <td><%= friendly_date_ago(note.updated_at) %></td>
58 <%= render :partial => "notes_paging_nav" %>