Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #4 from paginagmbh/master
Browse files Browse the repository at this point in the history
Several small fixes
  • Loading branch information
tmy committed Feb 8, 2014
2 parents c9e28c7 + 5a990f0 commit 5b34539
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init.rb
Expand Up @@ -4,7 +4,7 @@
name 'Gemoji plugin'
author 'Akinori Tomita'
description 'Enable github style emoji'
version '0.0.1'
version '0.0.2'
url 'https://github.com/tmy/redmine_gemoji'
author_url 'https://github.com/tmy'
end
Expand Down
2 changes: 1 addition & 1 deletion lib/gemoji_plugin.rb
Expand Up @@ -16,7 +16,7 @@ def self.included(base) # :nodoc:
def inline_gemoji(text)
text.gsub!(/:([a-z0-9\+\-_]+):/) do |match|
if Emoji.names.include?($1)
'<img alt="' + $1 + '" height="20" src="'+ Redmine::Utils.relative_url_root + '/images/emoji/' + $1 + '.png" style="vertical-align:middle" width="20" title=":' + $1 + ':" />'
'<img alt="' + $1 + '" height="20" src="'+ Setting.protocol + "://" + Setting.host_name + Redmine::Utils.relative_url_root + '/images/emoji/' + $1 + '.png" style="vertical-align:middle" width="20" title=":' + $1 + ':" class="emoji" />'
else
match
end
Expand Down

0 comments on commit 5b34539

Please sign in to comment.