diff --git a/src/main/scala/gitbucket/core/view/helpers.scala b/src/main/scala/gitbucket/core/view/helpers.scala index f16e81c..a167c8d 100644 --- a/src/main/scala/gitbucket/core/view/helpers.scala +++ b/src/main/scala/gitbucket/core/view/helpers.scala @@ -75,18 +75,18 @@ def date(date: Date): String = new SimpleDateFormat("yyyy-MM-dd").format(date) /** - * Format java.util.Date to "yyyyMMDDHHmmss" (for url hash ex. /some/path.css?19800101010203 - */ + * Format java.util.Date to "yyyyMMDDHHmmss" (for url hash ex. /some/path.css?19800101010203 + */ def hashDate(date: Date): String = new SimpleDateFormat("yyyyMMddHHmmss").format(date) /** - * java.util.Date of boot timestamp. - */ + * java.util.Date of boot timestamp. + */ val bootDate: Date = new Date() /** - * hashDate of bootDate for /assets, /plugin-assets - */ + * hashDate of bootDate for /assets, /plugin-assets + */ def hashQuery: String = hashDate(bootDate) /** @@ -224,6 +224,7 @@ /** * Returns the url to the root of assets. */ + @deprecated("Use assets(path: String)(implicit context: Context) instead.", "4.11.0") def assets(implicit context: Context): String = s"${context.path}/assets" /** diff --git a/src/main/twirl/gitbucket/core/account/activity.scala.html b/src/main/twirl/gitbucket/core/account/activity.scala.html index ed986ef..e3b1307 100644 --- a/src/main/twirl/gitbucket/core/account/activity.scala.html +++ b/src/main/twirl/gitbucket/core/account/activity.scala.html @@ -4,7 +4,7 @@ @import gitbucket.core.view.helpers @gitbucket.core.account.html.main(account, groupNames, "activity"){
- activities + activities
@gitbucket.core.helper.html.activities(activities) }