THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Browse Source

project mng

pull/5/head
Sangcheol Hwang 8 years ago
parent
commit
c96de1bea4
11 changed files with 51 additions and 17 deletions
  1. 5
      app/controllers/ProjectApp.java
  2. 10
      app/views/index.scala.html
  3. 11
      app/views/main.scala.html
  4. 10
      app/views/project/projectHome.scala.html
  5. 12
      app/views/project/projectMain.scala.html
  6. 5
      app/views/project/setting.scala.html
  7. 12
      app/views/project/sidebar.scala.html
  8. 2
      app/views/topmenu.scala.html
  9. 1
      conf/routes
  10. BIN
      public/images/favicon.png
  11. BIN
      public/images/open_img_03.gif

5
app/controllers/ProjectApp.java

@ -3,10 +3,15 @@ package controllers;
import play.mvc.Controller;
import play.mvc.Result;
import views.html.project.projectHome;
import views.html.project.setting;
public class ProjectApp extends Controller {
public static Result project(Long id) {
return ok(projectHome.render("Project Home"));
}
public static Result setting(Long id) {
return ok(setting.render("Setting"));
}
}

10
app/views/index.scala.html

@ -1,17 +1,15 @@
@(message: String)
@main("Welcome to nForge") {
<div class="row-fluid">
<div class="span12">
<div class="hero-unit">
<h1>Heading</h1>
<p>Tagline</p>
<h1>nForge4 Java</h1>
<p>Software development platform for <Strong>Open Source</Strong> project.</p>
<p>
<a class="btn btn-primary btn-large"> Create your project </a>
<a class="btn btn-primary btn-large">Create your project</a>
</p>
</div>
</div>
</div>
</div>

11
app/views/main.scala.html

@ -1,5 +1,14 @@
@(title: String)(content: Html)
@layout(title) {
@content
<div class="row-fluid">
<div class="span4">
<h3>nForge4java</h3>
</div>
<div class="span8">
@views.html.topmenu()
</div>
</div>
<hr>
@content
}

10
app/views/project/projectHome.scala.html

@ -1,13 +1,5 @@
@(message: String)
@main("Project Home") {
<div class="row-fluid">
<div class="span4">
<h3>nForge4java</h3>
</div>
<div class="span8">
@views.html.project.topmenu()
</div>
</div>
<hr>
Project Home
}

12
app/views/project/projectMain.scala.html

@ -0,0 +1,12 @@
@(title: String)(content: Html)
@main(title) {
<div class="row-fluid">
<div class="span2">
@views.html.project.sidebar()
</div>
<div class="span10">
@content
</div>
</div>
}

5
app/views/project/setting.scala.html

@ -0,0 +1,5 @@
@(message: String)
@projectMain("Project Home") {
<h1>Setting</h1>
}

12
app/views/project/sidebar.scala.html

@ -0,0 +1,12 @@
<div class="well" style="padding: 8px 0;">
<ul class="nav nav-list">
<li class="nav-header">프로젝트 관리</li>
<li><a href=""><i class="icon-cog"></i>설정</a></li>
<li><a href=""><i class="icon-user"></i>멤버</a></li>
<li><a href=""><i class="icon-gift"></i>마일스톤</a></li>
<li><a href="#"><i class="icon-wrench"></i>플러그인</a></li>
<li class="divider"></li>
<li><a href="#"><i class="icon-book"></i>Help</a></li>
</ul>
</div> <!-- /well -->

app/views/project/topmenu.scala.html → app/views/topmenu.scala.html

@ -3,5 +3,5 @@
<li><a href="#">코드</a></li>
<li><a href="#">이슈</a></li>
<li><a href="#">위키</a></li>
<li><a href="#">프로젝트 관리</a></li>
<li><a href="@routes.ProjectApp.setting(1)">프로젝트 관리</a></li>
</ul>

1
conf/routes

@ -18,3 +18,4 @@ POST /boards/new controllers.BoardApp.newBoard()
# Projects
GET /project/:id controllers.ProjectApp.project(id:Long)
GET /project/:id/setting controllers.ProjectApp.setting(id:Long)

BIN
public/images/favicon.png

Before After
Width: 16  |  Height: 16  |  Size: 687 B Width: 16  |  Height: 16  |  Size: 610 B

BIN
public/images/open_img_03.gif

Before After
Width: 162  |  Height: 52  |  Size: 2.5 KiB
Loading…
Cancel
Save