diff options
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/code/recently_pushed_new_branches.tmpl | 11 | ||||
-rw-r--r-- | templates/repo/home.tmpl | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/templates/repo/code/recently_pushed_new_branches.tmpl b/templates/repo/code/recently_pushed_new_branches.tmpl new file mode 100644 index 0000000000..e936fa4bb4 --- /dev/null +++ b/templates/repo/code/recently_pushed_new_branches.tmpl @@ -0,0 +1,11 @@ +{{range .RecentlyPushedNewBranches}} + <div class="ui positive message gt-df gt-ac"> + <div class="gt-f1"> + {{$timeSince := TimeSince .UpdatedUnix.AsTime $.locale}} + {{$.locale.Tr "repo.pulls.recently_pushed_new_branches" (PathEscapeSegments .Name) $timeSince | Safe}} + </div> + <a aria-role="button" class="ui compact positive button gt-m-0" href="{{$.Repository.ComposeBranchCompareURL $.Repository.BaseRepo (PathEscapeSegments .Name)}}"> + {{$.locale.Tr "repo.pulls.compare_changes"}} + </a> + </div> +{{end}} diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 01ea5d9122..386908e424 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -3,6 +3,7 @@ {{template "repo/header" .}} <div class="ui container {{if .IsBlame}}fluid padded{{end}}"> {{template "base/alert" .}} + {{template "repo/code/recently_pushed_new_branches" .}} {{if and (not .HideRepoInfo) (not .IsBlame)}} <div class="ui repo-description"> <div id="repo-desc"> |