- @(activities: List[gitbucket.core.model.Activity],
- recentRepositories: List[gitbucket.core.service.RepositoryService.RepositoryInfo],
- showBannerToCreatePersonalAccessToken: Boolean)(implicit context: gitbucket.core.controller.Context)
- @import gitbucket.core.view.helpers
- @gitbucket.core.html.main("GitBucket"){
- @gitbucket.core.dashboard.html.sidebar(recentRepositories){
- @context.settings.information.map { information =>
- <div class="alert alert-info" style="background-color: white; color: #555; border-color: #4183c4; font-size: small; line-height: 120%;">
- <button type="button" class="close" data-dismiss="alert">×</button>
- @Html(information)
- </div>
- }
- @if(showBannerToCreatePersonalAccessToken){
- <div class="alert alert-info" style="background-color: white; color: #555; border-color: #4183c4; font-size: small; line-height: 120%;">
- <button type="button" class="close" data-dismiss="alert">×</button>
- You can
- <a href="@context.path/@context.loginAccount.map(_.userName)/_application" style="color: inherit;">
- <strong>create a personal access token</strong>
- </a> and use it in place of a password on the <code>git</code> command line.
- </div>
- }
- @gitbucket.core.dashboard.html.tab()
- <div class="container">
- <div class="pull-right">
- <a href="@context.path/activities.atom"><img src="@helpers.assets("/common/images/feed.png")" alt="activities"></a>
- </div>
- @gitbucket.core.helper.html.activities(activities)
- </div>
- }
- }