[Notice] Announcing the End of Demo Server [Read me]

make pageTitle Templete
@426bf2dfd493251c1aa885a9527b83b1fa0bd28b
--- app/views/board/post.scala.html
+++ app/views/board/post.scala.html
... | ... | @@ -1,6 +1,7 @@ |
1 | 1 |
@(post:Post, commentForm:Form[Comment], project:Project) |
2 | 2 |
|
3 | 3 |
@main("상세보기", project){ |
4 |
+@pageTitle(project,"Board") |
|
4 | 5 |
<div class="row-fluid"> |
5 | 6 |
<div class="span2 offset10"> |
6 | 7 |
<div id="board_btn_panel"> |
--- app/views/board/postList.scala.html
+++ app/views/board/postList.scala.html
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
@main(title, project) { |
17 |
- <h1 class="page-title"><span class="gray">@project.owner/@project.name/</span>Board</h1> |
|
17 |
+ @pageTitle(project,"Board") |
|
18 | 18 |
<div class="header-wrap"> |
19 | 19 |
<div class="search-wrap board"> |
20 | 20 |
<div class="inner"> |
--- app/views/milestone/create.scala.html
+++ app/views/milestone/create.scala.html
... | ... | @@ -1,9 +1,9 @@ |
1 | 1 |
@(title:String, form: Form[Milestone], projectInst: Project) |
2 | 2 |
|
3 |
-@import helper.twitterBootstrap._ |
|
3 |
+ |
|
4 | 4 |
@import utils.TemplateHelper._ |
5 | 5 |
@project.projectMngMain(title, projectInst) { |
6 |
- <h1 class="page-title"><span class="gray">K16wire/nforge4/</span>Milestone</h1> |
|
6 |
+ @pageTitle(projectInst,"Milestone") |
|
7 | 7 |
<div class="form-wrap milestone"> |
8 | 8 |
<form class="nm" action="@routes.MilestoneApp.saveMilestone(projectInst.owner, projectInst.name)" method="post"> |
9 | 9 |
<div class="inner left"> |
--- app/views/milestone/edit.scala.html
+++ app/views/milestone/edit.scala.html
... | ... | @@ -1,8 +1,65 @@ |
1 | 1 |
@(title: String, form: Form[Milestone], milestoneId: Long, projectInst: Project) |
2 | 2 |
|
3 |
-@import helper.twitterBootstrap._ |
|
3 |
+@import utils.TemplateHelper._ |
|
4 | 4 |
|
5 | 5 |
@project.projectMngMain(title, projectInst) { |
6 |
+ @pageTitle(projectInst, "Milestone") |
|
7 |
+ <div class="form-wrap milestone"> |
|
8 |
+ @helper.form(action=routes.MilestoneApp.updateMilestone(projectInst.owner, projectInst.name, milestoneId), '_class->"nm"){ |
|
9 |
+ <div class="inner left"> |
|
10 |
+ <div class="n-alert hide" id="title_error"> |
|
11 |
+ <div class="n-inner"> |
|
12 |
+ <span class="msg">타이틀을 입력해주세요.</span> |
|
13 |
+ <a href="#!/close" class="ico btn-delete"></a> |
|
14 |
+ </div> |
|
15 |
+ </div> |
|
16 |
+ <label for="title"> |
|
17 |
+ <input type="text" name="title" id="title" class="text" placeholder="새 마일스톤의 제목을 입력해주세요."> |
|
18 |
+ </label> |
|
19 |
+ <div class="n-alert hide" id="contents_error"> |
|
20 |
+ <div class="n-inner"> |
|
21 |
+ <span class="msg">내용을 입력해주세요.</span> |
|
22 |
+ <a href="#!/close" class="ico btn-delete"></a> |
|
23 |
+ </div> |
|
24 |
+ </div> |
|
25 |
+ <label for="contents"> |
|
26 |
+ <textarea class="textarea" id="contents" name="contents" placeholder="내용을 입력해주세요."></textarea> |
|
27 |
+ </label> |
|
28 |
+ <div class="actions"> |
|
29 |
+ <button type="submit" class="n-btn blue med btn-transparent save">SAVE</button> |
|
30 |
+ <a href="@routes.MilestoneApp.manageMilestones(projectInst.owner, projectInst.name)" class="n-btn gray med">CANCEL</a> |
|
31 |
+ </div> |
|
32 |
+ </div> |
|
33 |
+ <div class="inner right"> |
|
34 |
+ <p>완료일을 선택하세요.</p> |
|
35 |
+ <div class="n-alert hide" id="dueDate_error"> |
|
36 |
+ <div class="n-inner"> |
|
37 |
+ <span class="msg">완료일을 입력해주세요.</span> |
|
38 |
+ <a href="#!/close" class="ico btn-delete"></a> |
|
39 |
+ </div> |
|
40 |
+ </div> |
|
41 |
+ <label for="dueDate"> |
|
42 |
+ <input type="text" name="dueDate" id="dueDate" class="validate due-date"> |
|
43 |
+ </label> |
|
44 |
+ </div> |
|
45 |
+ } |
|
46 |
+ </div> |
|
47 |
+ |
|
48 |
+ <script type="text/javascript">nforge.require('milestone.manage');</script> |
|
49 |
+ <style> |
|
50 |
+ @@IMPORT url(@getCSSLink("pikaday")); |
|
51 |
+ </style> |
|
52 |
+ <script src="@getJSLink("moment.min")" type="text/javascript"></script> |
|
53 |
+ <script src="@getJSLink("pikaday/pikaday")" type="text/javascript"></script> |
|
54 |
+ <script> |
|
55 |
+ var picker = new Pikaday({ |
|
56 |
+ field: document.getElementById('dueDate'), |
|
57 |
+ format: 'YYYY-MM-DD', |
|
58 |
+ }); |
|
59 |
+ </script> |
|
60 |
+ |
|
61 |
+ |
|
62 |
+ |
|
6 | 63 |
@helper.form(action=routes.MilestoneApp.updateMilestone(projectInst.owner, projectInst.name, milestoneId)){ |
7 | 64 |
@helper.inputText(form("title"), '_showConstraints -> false, '_label-> Messages("label.title")) |
8 | 65 |
@helper.textarea(form("contents"), '_showConstraints -> false, '_label-> Messages("label.contents")) |
--- app/views/milestone/list.scala.html
+++ app/views/milestone/list.scala.html
... | ... | @@ -37,7 +37,7 @@ |
37 | 37 |
} |
38 | 38 |
|
39 | 39 |
@project.projectMngMain(title, projectInst) { |
40 |
- <h1 class="page-title"><span class="gray">@projectInst.owner/@projectInst.name/</span>Milestone</h1> |
|
40 |
+ @pageTitle(projectInst,"Milestone") |
|
41 | 41 |
<div class="tab-wrap"> |
42 | 42 |
<div class="pull-right btns"> |
43 | 43 |
<a href="@routes.MilestoneApp.manageMilestones(projectInst.owner, projectInst.name)" class="n-btn small gray">MANAGE</a> |
+++ app/views/pageTitle.scala.html
... | ... | @@ -0,0 +1,8 @@ |
1 | +@(project:Project, pageName:String) | |
2 | + | |
3 | +<h1 class="page-title"> | |
4 | + <span class="gray"> | |
5 | + <a href="#">@project.owner</a>/<!-- | |
6 | + --><a href="@routes.ProjectApp.project(project.owner, project.name)">@project.name</a>/<!-- | |
7 | + --></span>@pageName | |
8 | +</h1>(No newline at end of file) |
--- app/views/project/projectHome.scala.html
+++ app/views/project/projectHome.scala.html
... | ... | @@ -1,8 +1,7 @@ |
1 | 1 |
@(message: String, project: Project) |
2 | 2 |
|
3 | 3 |
@main(message, project) { |
4 |
- |
|
5 |
- <h1 class="page-title"><span class="gray">@project.owner/@project.name/</span>Project Home</h1> |
|
4 |
+ @pageTitle(project,"Project Home") |
|
6 | 5 |
<div class="bubble-wrap dark-gray project-home"> |
7 | 6 |
<div class="inner logo"> |
8 | 7 |
<div class="logo-wrap"> |
--- app/views/project/setting.scala.html
+++ app/views/project/setting.scala.html
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 |
|
6 | 6 |
|
7 | 7 |
@projectMngMain(message, project) { |
8 |
- <h1 class="page-title"><span class="gray">@project.owner/@project.name/</span>Setting</h1> |
|
8 |
+ @pageTitle(project,"Setting") |
|
9 | 9 |
<div class="bubble-wrap gray"> |
10 | 10 |
<form class="nm" action="@routes.ProjectApp.saveSetting(project.owner, project.name)" method="post" enctype="multipart/form-data" id="saveSetting"> |
11 | 11 |
<input type="hidden" name="id" value="@projectForm("id").value.toLong"> |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?