]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/_comments.html.erb
Merge pull request #3552 from rugk/patch-1
[rails.git] / app / views / issues / _comments.html.erb
1 <div>
2   <% comments.each do |comment| %>
3     <div class="row">
4       <div class="col-auto">
5         <%= link_to user_thumbnail(comment.user), user_path(comment.user) %>
6       </div>
7       <div class="col">
8         <p class="text-muted">
9           <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, user_path(comment.user)),
10                                       :comment_created_at => l(comment.created_at.to_datetime, :format => :friendly) %>
11         </p>
12         <div class="richtext text-break"><%= comment.body.to_html %></div>
13       </div>
14     </div>
15     <hr>
16   <% end %>
17 </div>
18
19 <div>
20   <%= bootstrap_form_for @new_comment, :url => issue_comments_path(@issue) do |f| %>
21     <%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
22     <%= f.form_group do %>
23       <%= f.check_box :reassign, { :label => t(".reassign_param"), :id => "reassign", :name => "reassign", :checked => false }, true, false %>
24     <% end %>
25     <%= f.primary %>
26   <% end %>
27 </div>