Proper implementation of report strings + cleaning up
[rails.git] / app / views / issues / _reports.html.erb
1 <% reports.each do |report| %>
2         <div class="reports">
3                 <div style="float:left">
4                         <%= link_to user_thumbnail(report.user), :controller => :user,:action =>:view, :display_name => report.user.display_name %>
5                 </div>
6                 <b><%= link_to report.user.display_name, :controller => :user,:action =>:view, :display_name => report.user.display_name %></b> <br/>
7                 <% details =  report.details.split("--||--") %>
8                 <%= details[0] %> 
9                 <br/>
10                 <br/>
11                 <label>Tags:</label> 
12                 <% details[1..(details.size-1)].each do |tags| %>
13                         <%= tags %>
14                 <% end %>
15                 <br/>
16                 <span class="deemphasize">
17                 On <%= l report.created_at.to_datetime, :format => :long %> </span>
18         </div>
19         <hr>
20 <% end %>