Skip to content

Commit 3263d0e

Browse files
authored
Merge pull request #6 from gitbucket/gitbucket-4.18.0
Update for GitBucket 4.18.0
2 parents 7e695c5 + 7f0b53b commit 3263d0e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This plug-in provides Emoji support for GitBucket.
99

1010
Plugin version | GitBucket version
1111
:--------------|:--------------------
12+
4.5.x | 4.18.x -
1213
4.4.x | 4.10.x -
1314
4.3.x | 4.3.x - 4.9.x
1415

build.sbt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
val Organization = "io.github.gitbucket"
22
val ProjectName = "gitbucket-emoji-plugin"
3-
val ProjectVersion = "4.5.0-SNAPSHOT"
4-
val GitBucketVersion = Option(System.getProperty("gitbucket.version")).getOrElse("4.16.0")
3+
val ProjectVersion = "4.5.0"
4+
val GitBucketVersion = Option(System.getProperty("gitbucket.version")).getOrElse("4.18.0")
55

66
organization := Organization
77
name := ProjectName

src/main/scala/Plugin.scala

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ class Plugin extends gitbucket.core.plugin.Plugin {
1414

1515
override val versions: List[Version] = List(
1616
new Version("4.3.0"),
17-
new Version("4.4.0")
17+
new Version("4.4.0"),
18+
new Version("4.5.0")
1819
)
1920

2021
override val assetsMappings = Seq("/emoji" -> "/gitbucket/emoji/assets")
@@ -33,7 +34,7 @@ class Plugin extends gitbucket.core.plugin.Plugin {
3334
override val context: Seq[String] = Seq("wiki", "issues")
3435
override def values(repository: RepositoryInfo): Seq[String] = EmojiUtil.emojis.toSeq
3536
override def template(implicit context: Context): String =
36-
s"""'<img src=\"${context.path}/plugin-assets/emoji/' + value + '.png\" class=\"emoji\"></img>' + value"""
37+
s"""'<img src=\"${context.path}/plugin-assets/emoji/' + option.value + '.png\" class=\"emoji\"></img>' + option.value"""
3738
}
3839
)
3940
}

0 commit comments

Comments
 (0)