]> git.openstreetmap.org Git - rails.git/blob - app/views/issues/_comments.html.erb
basic UI for reporting diary entries,diary entry comments and user profiles
[rails.git] / app / views / issues / _comments.html.erb
1 <% comments.each do |comment| %>
2         <div class="comment">
3                 <div style="float:left">
4                         <%= link_to user_thumbnail(comment.user), :controller => :user,:action =>:view, :display_name => comment.user.display_name %>
5                 </div>
6                 <b> <%= link_to comment.user.display_name, :controller => :user,:action =>:view, :display_name => comment.user.display_name %> </b> <br/>
7                 <%= comment.body %>
8         </div>
9         <span class="deemphasize">
10         On <%= l comment.created_at.to_datetime, :format => :long %> </span>
11         <hr>
12 <% end %>
13 <div class="comment">
14         <%= form_for :issue_comment, :url => { :action => 'comment', :id => @issue.id, :user_id => @user.id } do |f| %>
15             <%= richtext_area :issue_comment, :body, :cols => 80, :rows => 8 %>
16         <%= submit_tag 'Submit' %>
17         <% end %>
18 </div>