switch back to tanuki_emoji', '~> 0.10.0', because newer version do not work with redmine 5.0
This commit is contained in:
parent
63fb936a4f
commit
7910ce50a6
@ -26,5 +26,7 @@ Gem::Specification.new do |spec|
|
|||||||
spec.add_dependency 'render_async'
|
spec.add_dependency 'render_async'
|
||||||
spec.add_dependency 'rss'
|
spec.add_dependency 'rss'
|
||||||
spec.add_dependency 'slim-rails'
|
spec.add_dependency 'slim-rails'
|
||||||
spec.add_dependency 'tanuki_emoji', '~> 0.11.0'
|
# TODO: tanuki_emoji 0.11.0 is not compatible with Redmine 5.0
|
||||||
|
# we should switch to latest version after dropping Redmine 5.0 support
|
||||||
|
spec.add_dependency 'tanuki_emoji', '~> 0.10.0'
|
||||||
end
|
end
|
||||||
|
@ -46,9 +46,16 @@ module Additionals
|
|||||||
'<use href="/plugin_assets/additionals/images/icons.svg#icon--smiley-smiley"></use></svg>'
|
'<use href="/plugin_assets/additionals/images/icons.svg#icon--smiley-smiley"></use></svg>'
|
||||||
end
|
end
|
||||||
|
|
||||||
def emoji_heart_tag
|
# for tanuki_emoji 0.11.0 or newer
|
||||||
|
# NOTE: tanuki_emoji 0.11.0 can only be used, if Redmine 5.0 suppord dropped
|
||||||
|
# (depenceny for i18n version)
|
||||||
|
def emoji_heart_tag_new
|
||||||
'<additionals-emoji title="red heart" data-name="red_heart" data-unicode-version="6.0">❤️</additionals-emoji>'
|
'<additionals-emoji title="red heart" data-name="red_heart" data-unicode-version="6.0">❤️</additionals-emoji>'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def emoji_heart_tag
|
||||||
|
'<additionals-emoji title="heavy black heart" data-name="heart" data-unicode-version="1.1">❤</additionals-emoji>'
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
module PluginFixturesLoader
|
module PluginFixturesLoader
|
||||||
|
Loading…
Reference in New Issue
Block a user