Skip to content

Commit 7aed88d

Browse files
committed
Set page title
1 parent 33cb37d commit 7aed88d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/main/twirl/gist/detail.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@(active: String, gist: model.Gist, revision: String, files: Seq[(String, String)], editable: Boolean)(implicit context: app.Context)
22
@import context._
33
@import view.helpers._
4-
@html.main("Snippet"){
4+
@html.main(if(gist.description.isEmpty) gist.repositoryName else gist.description){
55
@header(gist, editable)
66
<div class="container body">
77
@menu(active, gist)

src/main/twirl/gist/edit.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
@import context._
33
@import view.helpers._
44
@import util.ImageUtil._
5-
@html.main("Snippet"){
5+
@html.main("Snippets"){
66
<div class="container">
77
<div id="error"></div>
88
@if(gist.isEmpty){

src/main/twirl/gist/list.scala.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
@(gistUser: Option[model.GistUser], gists: Seq[(model.Gist, String)], page: Int, hasNext: Boolean)(implicit context: app.Context)
22
@import context._
33
@import view.helpers._
4-
@html.main("Snippet"){
4+
@html.main(gistUser.map(user => s"${user.userName}'s Snippets").getOrElse("")){
55
<div class="container">
66
@if(gistUser.isEmpty){
7-
<div class="head">GitBucket Snippets</div>
7+
<div class="head">Discover Snippets</div>
88
} else {
99
<div class="head">
1010
@avatar(gistUser.get.userName, 24)

src/main/twirl/gist/revisions.scala.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@import context._
44
@import view.helpers._
55
@import org.eclipse.jgit.diff.DiffEntry.ChangeType
6-
@html.main("Snippet"){
6+
@html.main(s"Revisions · ${gist.repositoryName}"){
77
@header(gist, editable)
88
<div class="container body">
99
@menu(active, gist)

0 commit comments

Comments
 (0)