Skip to content

Commit

Permalink
project: Fix default project scope by conf file
Browse files Browse the repository at this point in the history
See: Yona Github issue #180
  • Loading branch information
doortts committed Mar 16, 2017
1 parent 0032147 commit 815fe3f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 37 deletions.
23 changes: 5 additions & 18 deletions app/views/project/create.scala.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
@**
* Yobi, Project Hosting SW
* Yona, 21st Century Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author Jihan Kim
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
@(title:String, newProjectForm: play.data.Form[Project], orgUserList:List[OrganizationUser])
@import play.data.Form
@(title:String, newProjectForm: Form[Project], orgUserList:List[OrganizationUser])

@import utils.TemplateHelper._
@import playRepository.RepositoryService
Expand Down
25 changes: 6 additions & 19 deletions app/views/project/importing.scala.html
Original file line number Diff line number Diff line change
@@ -1,24 +1,11 @@
@**
* Yobi, Project Hosting SW
* Yona, 21st Century Project Hosting SW
*
* Copyright 2013 NAVER Corp.
* http://yobi.io
*
* @author Keesun Baik
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Copyright Yona & Yobi Authors & NAVER Corp.
* https://yona.io
**@
@(title:String, newProjectForm: play.data.Form[Project], orgUserList:List[OrganizationUser])
@import play.data.Form
@(title:String, newProjectForm: Form[Project], orgUserList:List[OrganizationUser])

@import utils.TemplateHelper._
@import playRepository.RepositoryService
Expand Down Expand Up @@ -156,7 +143,7 @@
</li>

<li class="mt10">
<input type="radio" id="private" name="projectScope" value="PRIVATE" class="radio-btn pull-left" @if(newProjectForm.field("projectScope").value == "PRIVATE"){ checked="checked" }>
<input type="radio" id="private" name="projectScope" value="PRIVATE" class="radio-btn pull-left" @if(newProjectForm.field("projectScope").value == "PRIVATE" || Application.PRIVATE_IS_DEFAULT.equalsIgnoreCase("private")){ checked="checked" }>
<label for="private">
<strong class="ml5">@Messages("project.private")</strong>
<p class="note">
Expand Down

0 comments on commit 815fe3f

Please sign in to comment.