Files
danbooru/app/views/notes/index_by_note.html.erb
Toks 4f42ab8bdb adds support for user level-dependent classes
all links to users should have their class attribute set to that user's
level_class
2013-03-30 12:04:58 -04:00

37 lines
951 B
Plaintext

<div id="c-notes">
<div id="a-index">
<h1>Notes</h1>
<table width="100%" class="striped">
<thead>
<tr>
<th>Post</th>
<th>Created by</th>
<th>Created at</th>
<th>Active?</th>
<th>Body</th>
</tr>
</thead>
<tbody>
<% @notes.each do |note| %>
<tr>
<td><%= link_to note.post_id, post_path(note.post_id) %></td>
<td><%= link_to note.creator.name, user_path(note.creator_id), { :class => note.creator.level_class } %></td>
<td><%= compact_time(note.created_at) %></td>
<td><%= note.is_active? %></td>
<td><%= format_text(note.body) %></td>
</tr>
<% end %>
</tbody>
</table>
<%= sequential_paginator(@notes) %>
</div>
</div>
<%= render "notes/secondary_links" %>
<% content_for(:page_title) do %>
Notes - <%= Danbooru.config.app_name %>
<% end %>