Port issue history changes
This commit is contained in:
parent
ec21b4c075
commit
5949f8de91
@ -27,7 +27,6 @@ module JournalsHelper
|
||||
def render_journal(model, journal, options = {})
|
||||
return "" if journal.initial?
|
||||
journal_content = render_journal_details(journal, :label_updated_time_by)
|
||||
journal_content += render_notes(model, journal, options) unless journal.notes.blank?
|
||||
content_tag "div", journal_content, { :id => "change-#{journal.id}", :class => journal.css_classes }
|
||||
end
|
||||
|
||||
@ -35,15 +34,21 @@ module JournalsHelper
|
||||
def render_journal_details(journal, header_label = :label_updated_time_by)
|
||||
header = <<-HTML
|
||||
<h4>
|
||||
<div style="float:right;">#{link_to "##{journal.anchor}", :anchor => "note-#{journal.anchor}"}</div>
|
||||
#{avatar(journal.user, :size => "24")}
|
||||
#{content_tag('a', '', :name => "note-#{journal.anchor}")}
|
||||
<div class="journal-link" style="float:right;">#{link_to "##{journal.anchor}", :anchor => "note-#{journal.anchor}"}</div>
|
||||
#{authoring journal.created_at, journal.user, :label => header_label}
|
||||
#{content_tag('a', '', :name => "note-#{journal.anchor}")}
|
||||
</h4>
|
||||
|
||||
<div class="profile-wrap">
|
||||
#{avatar(journal.user, :size => "40")}
|
||||
</div>
|
||||
|
||||
#{render_notes(model, journal, options) unless journal.notes.blank?}
|
||||
|
||||
HTML
|
||||
|
||||
if journal.details.any?
|
||||
details = content_tag "ul", :class => "details" do
|
||||
details = content_tag "ul", :class => "details journal-attributes" do
|
||||
journal.details.collect do |detail|
|
||||
if d = journal.render_detail(detail)
|
||||
content_tag("li", d)
|
||||
|
Loading…
x
Reference in New Issue
Block a user