summaryrefslogtreecommitdiffstats
path: root/app/helpers/journals_helper.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-09-01 04:09:32 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-09-01 04:09:32 +0000
commit71abeb5898f1ee1be88fb3071c2d7e5ea8e8028b (patch)
tree1d59a338af41e57c7ca58549e696ef601cf833d2 /app/helpers/journals_helper.rb
parentf1f65794e440573af5e5533590f18690b6ffc48d (diff)
downloadredmine-71abeb5898f1ee1be88fb3071c2d7e5ea8e8028b.tar.gz
redmine-71abeb5898f1ee1be88fb3071c2d7e5ea8e8028b.zip
Add some margin to journal notes if Gravatars are enabled. (#3771)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2848 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/journals_helper.rb')
-rw-r--r--app/helpers/journals_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb
index 45579f771..389d7fbf1 100644
--- a/app/helpers/journals_helper.rb
+++ b/app/helpers/journals_helper.rb
@@ -30,7 +30,10 @@ module JournalsHelper
end
content << content_tag('div', links.join(' '), :class => 'contextual') unless links.empty?
content << textilizable(journal, :notes)
- content_tag('div', content, :id => "journal-#{journal.id}-notes", :class => (editable ? 'wiki editable' : 'wiki'))
+ css_classes = "wiki"
+ css_classes << " editable" if editable
+ css_classes << " gravatar-margin" if Setting.gravatar_enabled?
+ content_tag('div', content, :id => "journal-#{journal.id}-notes", :class => css_classes)
end
def link_to_in_place_notes_editor(text, field_id, url, options={})