]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/_comments.html.erb
Adding information about Croatia sources
[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 => tag.time(l(comment.created_at.to_datetime, :format => :friendly),
11                                                                       :datetime => comment.created_at.xmlschema) %>
12         </p>
13         <div class="richtext text-break"><%= comment.body.to_html %></div>
14       </div>
15     </div>
16     <hr>
17   <% end %>
18 </div>
19
20 <div>
21   <%= bootstrap_form_for @new_comment, :url => issue_comments_path(@issue) do |f| %>
22     <%= f.richtext_field :body, :cols => 80, :rows => 20, :hide_label => true %>
23     <%= f.form_group do %>
24       <%= f.check_box :reassign, { :label => t(".reassign_param"), :id => "reassign", :name => "reassign", :checked => false }, true, false %>
25     <% end %>
26     <%= f.primary %>
27   <% end %>
28 </div>