32 lines
935 B
Plaintext
32 lines
935 B
Plaintext
<%
|
||
job = tab[:locals][:job]
|
||
journals = tab[:locals][:journals]
|
||
%>
|
||
|
||
<% reply_links = job.notes_addable? %>
|
||
<% journals.each_with_index do |journal, indice| %>
|
||
<div id="change-<%= journal.id %>" class="journal has-notes">
|
||
<div id="note-<%= indice %>" class="note">
|
||
<div class="contextual">
|
||
<span class="journal-actions">
|
||
<!-- TODO -->
|
||
</span>
|
||
<a href="#note-<%= journal.indice %>" class="journal-link"><%= indice %></a>
|
||
</div>
|
||
<h4 class="note-header">
|
||
<%= avatar(journal.user) %>
|
||
<%= authoring journal.created_on, journal.user, label: :label_updated_time_by %>
|
||
</h4>
|
||
<%= journal.notes %>
|
||
|
||
<% if journal.details.any? %>
|
||
<ul class="details">
|
||
<% details_to_strings(journal.visible_details).each do |string| %>
|
||
<li><%= string %></li>
|
||
<% end %>
|
||
</ul>
|
||
<% end %>
|
||
</div>
|
||
</div>
|
||
<% end %>
|