mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 21:45:50 +01:00
Rename SettingsController to RepositorySettingsController.
This commit is contained in:
@@ -15,7 +15,7 @@ class ScalatraBootstrap extends LifeCycle {
|
|||||||
context.mount(new LabelsController, "/*")
|
context.mount(new LabelsController, "/*")
|
||||||
context.mount(new MilestonesController, "/*")
|
context.mount(new MilestonesController, "/*")
|
||||||
context.mount(new IssuesController, "/*")
|
context.mount(new IssuesController, "/*")
|
||||||
context.mount(new SettingsController, "/*")
|
context.mount(new RepositorySettingsController, "/*")
|
||||||
|
|
||||||
val dir = new java.io.File(_root_.util.Directory.GitBucketHome)
|
val dir = new java.io.File(_root_.util.Directory.GitBucketHome)
|
||||||
if(!dir.exists){
|
if(!dir.exists){
|
||||||
|
|||||||
@@ -7,10 +7,10 @@ import jp.sf.amateras.scalatra.forms._
|
|||||||
import org.apache.commons.io.FileUtils
|
import org.apache.commons.io.FileUtils
|
||||||
import org.scalatra.FlashMapSupport
|
import org.scalatra.FlashMapSupport
|
||||||
|
|
||||||
class SettingsController extends SettingsControllerBase
|
class RepositorySettingsController extends RepositorySettingsControllerBase
|
||||||
with RepositoryService with AccountService with OwnerAuthenticator with UsersAuthenticator
|
with RepositoryService with AccountService with OwnerAuthenticator with UsersAuthenticator
|
||||||
|
|
||||||
trait SettingsControllerBase extends ControllerBase with FlashMapSupport {
|
trait RepositorySettingsControllerBase extends ControllerBase with FlashMapSupport {
|
||||||
self: RepositoryService with AccountService with OwnerAuthenticator with UsersAuthenticator =>
|
self: RepositoryService with AccountService with OwnerAuthenticator with UsersAuthenticator =>
|
||||||
|
|
||||||
case class OptionsForm(description: Option[String], defaultBranch: String, isPrivate: Boolean)
|
case class OptionsForm(description: Option[String], defaultBranch: String, isPrivate: Boolean)
|
||||||
Reference in New Issue
Block a user