socialforge/app/views/bids/_history.html.erb

38 lines
1.1 KiB
Plaintext

<!-- added by fq -->
<% if journals.size > 5 %>
<% unless state%>
<div class="contextual">
<%= link_to l(:button_more),
{:controller => 'bids', :action => 'more', :bid_id => bid},
:remote => true,
:method => 'get' %>
</div>
<% else %>
<div class="contextual">
<%= link_to l(:button_back),
{:controller => 'bids', :action => 'back', :bid_id => bid},
:remote => true,
:method => 'get' %>
</div>
<% end %>
<% end %>
<h3><%=l(:label_user_response)%>(<%= journals.count%>)</h3>
<% unless state%>
<% if journals.size > 5 %>
<% journals = journals[0, 5] %>
<% end %>
<% end %>
<% for journal in journals %>
<div id="change-<%= journal.id %>">
<div id="note-<%= journal.indice %>">
<h4><%= link_to "##{journal.indice}", {}, :class => "journal-link" %>
<%= avatar(journal.user, :size => "24") %>
<%= l(:label_updated_time_by, :author => journal.user, :age => time_tag(journal.created_at)).html_safe%></h4>
<%= render_notes(bid, journal, :reply_links => true) unless journal.notes.blank? %>
</div>
</div>
<%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
<% end %>