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

소스 검색

project mng

pull/5/head
Sangcheol Hwang 8 년 전
부모
커밋
c96de1bea4
11개의 변경된 파일51개의 추가작업 그리고 17개의 파일을 삭제
  1. +5
    -0
      app/controllers/ProjectApp.java
  2. +4
    -6
      app/views/index.scala.html
  3. +10
    -1
      app/views/main.scala.html
  4. +1
    -9
      app/views/project/projectHome.scala.html
  5. +12
    -0
      app/views/project/projectMain.scala.html
  6. +5
    -0
      app/views/project/setting.scala.html
  7. +12
    -0
      app/views/project/sidebar.scala.html
  8. +1
    -1
      app/views/topmenu.scala.html
  9. +1
    -0
      conf/routes
  10. BIN
      public/images/favicon.png
  11. BIN
      public/images/open_img_03.gif

+ 5
- 0
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"));
}
}

+ 4
- 6
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>

+ 10
- 1
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
}

+ 1
- 9
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
- 0
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
- 0
app/views/project/setting.scala.html 파일 보기

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

+ 12
- 0
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
- 0
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

불러오는 중...
취소
저장