Newer
Older
gitbucket_jkp / src / main / twirl / gitbucket / core / index.scala.html
@Naoki Takezoe Naoki Takezoe on 19 Jun 2018 1 KB Fix sidebar to recent repositories
  1. @(activities: List[gitbucket.core.model.Activity],
  2. recentRepositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo],
  3. showBannerToCreatePersonalAccessToken: Boolean)(implicit context: gitbucket.core.controller.Context)
  4. @import gitbucket.core.view.helpers
  5. @gitbucket.core.html.main("GitBucket"){
  6. @gitbucket.core.dashboard.html.sidebar(recentRepositories){
  7. @context.settings.information.map { information =>
  8. <div class="alert alert-info" style="background-color: white; color: #555; border-color: #4183c4; font-size: small; line-height: 120%;">
  9. <button type="button" class="close" data-dismiss="alert">&times;</button>
  10. @Html(information)
  11. </div>
  12. }
  13. @if(showBannerToCreatePersonalAccessToken){
  14. <div class="alert alert-info" style="background-color: white; color: #555; border-color: #4183c4; font-size: small; line-height: 120%;">
  15. <button type="button" class="close" data-dismiss="alert">&times;</button>
  16. You can
  17. <a href="@context.path/@context.loginAccount.map(_.userName)/_application" style="color: inherit;">
  18. <strong>create a personal access token</strong>
  19. </a> and use it in place of a password on the <code>git</code> command line.
  20. </div>
  21. }
  22. @gitbucket.core.dashboard.html.tab()
  23. <div class="container">
  24. <div class="pull-right">
  25. <a href="@context.path/activities.atom"><img src="@helpers.assets("/common/images/feed.png")" alt="activities"></a>
  26. </div>
  27. @gitbucket.core.helper.html.activities(activities)
  28. </div>
  29. }
  30. }