diff --git a/src/main/scala/ScalatraBootstrap.scala b/src/main/scala/ScalatraBootstrap.scala index 323a9a2..07348e7 100644 --- a/src/main/scala/ScalatraBootstrap.scala +++ b/src/main/scala/ScalatraBootstrap.scala @@ -8,6 +8,7 @@ context.mount(new SignInController, "/*") context.mount(new UsersController, "/*") context.mount(new WikiController, "/*") + context.mount(new IssuesController, "/*") context.mount(new CreateRepositoryController, "/*") context.mount(new RepositoryViewerController, "/*") context.mount(new SettingsController, "/*") diff --git a/src/main/scala/app/IssuesController.scala b/src/main/scala/app/IssuesController.scala new file mode 100644 index 0000000..7e90b52 --- /dev/null +++ b/src/main/scala/app/IssuesController.scala @@ -0,0 +1,19 @@ +package app + +import service._ + +class IssuesController extends IssuesControllerBase + with RepositoryService with AccountService + +trait IssuesControllerBase extends ControllerBase { self: RepositoryService => + + get("/:owner/:repository/issues"){ + issues.html.issues(getRepository(params("owner"), params("repository"), servletContext).get) + } + + get("/:owner/:repository/issues/:id"){ + issues.html.issue(getRepository(params("owner"), params("repository"), servletContext).get) + } + + +} \ No newline at end of file diff --git a/src/main/twirl/header.scala.html b/src/main/twirl/header.scala.html index 800f6b9..376d31c 100644 --- a/src/main/twirl/header.scala.html +++ b/src/main/twirl/header.scala.html @@ -14,7 +14,7 @@ Code
+ 2.1 migration issue - ebean
+
+ Opened by takezoe
+
+ |
+ Serving Play new app sample code page with hyper links
+
+ Opened by shimamoto
+
+ |