diff --git a/src/main/twirl/header.scala.html b/src/main/twirl/header.scala.html index 07f18f3..354188b 100644 --- a/src/main/twirl/header.scala.html +++ b/src/main/twirl/header.scala.html @@ -1,4 +1,7 @@ -@(active: String, repository: service.RepositoryService.RepositoryInfo, id: Option[String] = None)(body: Html)(implicit context: app.Context) +@(active: String, + repository: service.RepositoryService.RepositoryInfo, + id: Option[String] = None, + expand: Boolean = false)(body: Html)(implicit context: app.Context) @import context._ @import view.helpers._ @@ -55,6 +58,7 @@ height: 35px; border-left: 1px solid #eee; margin-left:0px; + border-right: 4px solid white; list-style-type: none; } @@ -62,62 +66,71 @@ border-top: 1px solid #eee; height: 1px; } + +ul.sidemenu span.badge { + padding-right: 4px; +}
-
+
-
- HTTP clone URL -
- @helper.html.copy("repository-url-copy", repository.httpUrl){ - @* - @if(settings.ssh && loginAccount.isDefined){ -
- -
- } else { - HTTP - } - *@ - - } - @if(settings.ssh && loginAccount.isDefined){ + @if(expand){
- You can clone HTTP or SSH. + HTTP clone URL
+ @helper.html.copy("repository-url-copy", repository.httpUrl){ + @* + @if(settings.ssh && loginAccount.isDefined){ +
+ +
+ } else { + HTTP + } + *@ + + } + @if(settings.ssh && loginAccount.isDefined){ +
+ You can clone HTTP or SSH. +
+ } + @id.map { id => +
+ Download ZIP +
+ } } -
- @* - Download ZIP - *@ - Download ZIP -
-
+
@repository.repository.description.map { description =>

@description

} diff --git a/src/main/twirl/repo/files.scala.html b/src/main/twirl/repo/files.scala.html index 803335b..d36724d 100644 --- a/src/main/twirl/repo/files.scala.html +++ b/src/main/twirl/repo/files.scala.html @@ -8,16 +8,9 @@ @import context._ @import view.helpers._ @html.main(s"${repository.owner}/${repository.name}", Some(repository)) { - @html.header("code", repository, Some(branch)){ + @html.header("code", repository, Some(branch), pathList.isEmpty){ @tab(branch, repository, "files")
- @* -
- @defining(repository.commitCount){ commitCount => - @if(commitCount > 10000){ 10000+ } else { @commitCount } @plural(commitCount, "commit")  - } -
- *@ @repository.name / @pathList.zipWithIndex.map { case (section, i) => @section /