diff --git a/app/views/board/create.scala.html b/app/views/board/create.scala.html index a378a6114..d64c93a08 100644 --- a/app/views/board/create.scala.html +++ b/app/views/board/create.scala.html @@ -20,71 +20,76 @@ **@ @(title:String, form:Form[Posting], project:Project, isAllowedToNotice:Boolean, preparedPostBody:String = "") +@import utils.AccessControl._ @import utils.TemplateHelper._ @import utils.HtmlUtil._ @import models.enumeration._ @implicitField = @{ helper.FieldConstructor(simpleForm) } @readmeUpdateMessage = @{ - if( request().getQueryString("readme") != null ) { - "Update README.md" - } + if( request().getQueryString("readme") != null ) { + "Update README.md" + } } @projectLayout(title, project, utils.MenuType.BOARD) { @projectMenu(project, utils.MenuType.BOARD, "main-menu-only")
- @if(project.vcs.equals("GIT")) {
- @Messages("project.readme")
- @if(isProjectResourceCreatable(UserApp.currentUser(), project, ResourceType.COMMIT)) {
- @Messages("project.readme.create")
- }
- } else {
- @Messages("project.svn.readme")
- }
-
+ @if(project.isGit){
+ @Messages("project.readme")
+
+ @if(isProjectResourceCreatable(UserApp.currentUser(), project, ResourceType.COMMIT)){
+ @Messages("project.readme.create")
+ }
+ } else {
+ @Messages("project.svn.readme")
+ }
+