]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/_comments.html.erb
Rework issues display page to be responsive
[rails.git] / app / views / issues / _comments.html.erb
1 <div class="issue-comments">
2   <% comments.each do |comment| %>
3     <div class="comment">
4       <div class="float-left">
5         <%= link_to user_thumbnail(comment.user), user_path(comment.user) %>
6       </div>
7       <p class="text-muted mb-0">
8         <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, user_path(comment.user)),
9                                     :comment_created_at => l(comment.created_at.to_datetime, :format => :friendly) %>
10       </p>
11       <p><%= comment.body %></p>
12     </div>
13     <hr>
14   <% end %>
15 </div>
16 <br />
17 <div class="comment">
18   <%= form_for @new_comment, :url => issue_comments_path(@issue) do |f| %>
19   <%= richtext_area :issue_comment, :body, :cols => 10, :rows => 8, :required => true %>
20   <%= label_tag :reassign, t(".reassign_param") %> <%= check_box_tag :reassign, true %>
21   <br />
22   <br />
23   <%= f.submit %>
24   <% end %>
25 </div>