From a3c9f8dbc81182aa0aa668b093e36e9937bdd649 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Thu, 16 Jul 2020 21:18:24 +0200 Subject: [PATCH] A few more lines --- .../projects/helper/modalDownload.ftlh | 2 +- .../projects/pages/modalPageCreate.ftlh | 2 +- .../templates/projects/pages/view.ftlh | 19 +++++----- .../templates/projects/settings.ftlh | 5 +-- .../templates/projects/versions/create.ftlh | 15 ++++---- .../templates/projects/versions/view.ftlh | 17 +++++---- .../templates/users/admin/flags.ftlh | 2 +- .../templates/users/admin/userAdmin.ftlh | 36 +++++++++---------- .../resources/templates/users/memberList.ftlh | 8 ++--- .../templates/users/notifications.ftlh | 2 +- .../resources/templates/utils/editor.ftlh | 2 +- .../resources/templates/utils/prompt.ftlh | 2 +- 12 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/main/resources/templates/projects/helper/modalDownload.ftlh b/src/main/resources/templates/projects/helper/modalDownload.ftlh index 8afff4ca..4d0f90b4 100644 --- a/src/main/resources/templates/projects/helper/modalDownload.ftlh +++ b/src/main/resources/templates/projects/helper/modalDownload.ftlh @@ -3,7 +3,7 @@ @(call: Call, message: String, id: String = "modal-download")(implicit messages: Messages) - diff --git a/src/main/resources/templates/projects/versions/view.ftlh b/src/main/resources/templates/projects/versions/view.ftlh index 62801e68..ab09c6e9 100644 --- a/src/main/resources/templates/projects/versions/view.ftlh +++ b/src/main/resources/templates/projects/versions/view.ftlh @@ -3,6 +3,7 @@ <#import "*/utils/form.ftlh" as form> <#import "*/utils/csrf.ftlh" as csrf> <#import "*/projects/view.ftlh" as projects /> +<#import "*/utils/editor.ftlh" as editor /> @import controllers.sugar.Requests.OreRequest @import models.viewhelper.{ScopedProjectData, VersionData} @@ -165,15 +166,13 @@
- @editor( - saveCall = versionRoutes.saveDescription( - v.p.project.ownerName, v.p.project.slug, v.v.versionString - ), - enabled = sp.perms(Permission.EditPage), - raw = v.v.description!"", - cooked = v.v.obj.render, - subject = "Version" - ) + <@editor.editor + saveCall=routes.getRouteUrl("versions.saveDescription", v.p.project.ownerName, v.p.project.slug, v.v.versionString) + enabled=sp.perms(Permission.EditPage) + raw=v.v.description!"" + cooked=v.v.obj.render + subject="Version" + />
diff --git a/src/main/resources/templates/users/admin/flags.ftlh b/src/main/resources/templates/users/admin/flags.ftlh index b6896ed7..c0d509b3 100644 --- a/src/main/resources/templates/users/admin/flags.ftlh +++ b/src/main/resources/templates/users/admin/flags.ftlh @@ -32,7 +32,7 @@