]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/index.html.erb
Use Bootstrap highlight class in note tables
[rails.git] / app / views / notes / index.html.erb
index a627e1c545b03f1ef773912115397a36b2439889..dd0cb26082f64a0a64e26731ef391063abede125 100644 (file)
@@ -21,7 +21,7 @@
       </tr>
     </thead>
   <% @notes.each do |note| -%>
-    <tr<% if note.author == @user %> class="creator"<% end %>>
+    <tr<% if note.author == @user %> class="table-primary"<% end %>>
       <td>
         <% if note.closed? %>
           <%= image_tag("closed_note_marker.png", :alt => "closed", :size => "25x40") %>
@@ -29,7 +29,7 @@
           <%= image_tag("open_note_marker.png", :alt => "open", :size => "25x40") %>
         <% end %>
       </td>
-      <td><%= link_to note.id, browse_note_path(note) %></td>
+      <td><%= link_to note.id, note %></td>
       <td><%= note_author(note.author) %></td>
       <td><%= note.comments.first.body.to_html %></td>
       <td><%= friendly_date_ago(note.created_at) %></td>