|
2 | 2 | <div role="main" aria-label="{{.Title}}" class="page-content repository commits"> |
3 | 3 | {{template "repo/header" .}} |
4 | 4 | <div class="ui container"> |
5 | | - <div id="git-graph-container" class="ui segment{{if eq .Mode "monochrome"}} monochrome{{end}}"> |
| 5 | + <div id="git-graph-container" class="ui segment {{if eq .Mode "monochrome"}}monochrome{{end}}"> |
6 | 6 | <h2 class="ui header dividing"> |
7 | 7 | {{ctx.Locale.Tr "repo.commit_graph"}} |
8 | 8 | <div class="ui icon buttons tiny color-buttons"> |
|
11 | 11 | <div class="default text">{{ctx.Locale.Tr "repo.commit_graph.select"}}</div> |
12 | 12 | <div class="menu"> |
13 | 13 | <div class="item" data-value="...flow-hide-pr-refs"> |
14 | | - <span class="truncate"> |
15 | | - {{svg "octicon-eye-closed" 16 "tw-mr-1"}}<span title="{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}">{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}</span> |
16 | | - </span> |
| 14 | + {{svg "octicon-eye-closed"}} |
| 15 | + <span class="gt-ellipsis" title="{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}">{{ctx.Locale.Tr "repo.commit_graph.hide_pr_refs"}}</span> |
17 | 16 | </div> |
18 | 17 | {{range .AllRefs}} |
19 | 18 | {{$refGroup := .RefGroup}} |
20 | 19 | {{if eq $refGroup "pull"}} |
21 | 20 | <div class="item" data-value="{{.Name}}"> |
22 | | - <span class="truncate"> |
23 | | - {{svg "octicon-git-pull-request" 16 "tw-mr-1"}}<span title="{{.ShortName}}">#{{.ShortName}}</span> |
24 | | - </span> |
| 21 | + {{svg "octicon-git-pull-request"}} |
| 22 | + <span class="gt-ellipsis" title="{{.ShortName}}">#{{.ShortName}}</span> |
25 | 23 | </div> |
26 | 24 | {{else if eq $refGroup "tags"}} |
27 | 25 | <div class="item" data-value="{{.Name}}"> |
28 | | - <span class="truncate"> |
29 | | - {{svg "octicon-tag" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span> |
30 | | - </span> |
| 26 | + {{svg "octicon-tag"}} |
| 27 | + <span class="gt-ellipsis" title="{{.ShortName}}">{{.ShortName}}</span> |
31 | 28 | </div> |
32 | 29 | {{else if eq $refGroup "remotes"}} |
33 | 30 | <div class="item" data-value="{{.Name}}"> |
34 | | - <span class="truncate"> |
35 | | - {{svg "octicon-cross-reference" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span> |
36 | | - </span> |
| 31 | + {{svg "octicon-cross-reference"}} |
| 32 | + <span class="gt-ellipsis" title="{{.ShortName}}">{{.ShortName}}</span> |
37 | 33 | </div> |
38 | 34 | {{else if eq $refGroup "heads"}} |
39 | 35 | <div class="item" data-value="{{.Name}}"> |
40 | | - <span class="truncate"> |
41 | | - {{svg "octicon-git-branch" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span> |
42 | | - </span> |
| 36 | + {{svg "octicon-git-branch"}} |
| 37 | + <span class="gt-ellipsis" title="{{.ShortName}}">{{.ShortName}}</span> |
43 | 38 | </div> |
44 | 39 | {{end}} |
45 | 40 | {{end}} |
|
49 | 44 | <button id="flow-color-colored" class="ui icon button{{if ne .Mode "monochrome"}} active{{end}}" title="{{ctx.Locale.Tr "repo.commit_graph.color"}}">{{svg "material-palette" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.commit_graph.color"}}</button> |
50 | 45 | </div> |
51 | 46 | </h2> |
52 | | - <div class="ui dividing"></div> |
53 | | - <div class="is-loading tw-py-32 tw-hidden" id="loading-indicator"></div> |
54 | | - {{template "repo/graph/svgcontainer" .}} |
55 | | - {{template "repo/graph/commits" .}} |
| 47 | + <div id="git-graph-body"> |
| 48 | + {{template "repo/graph/svgcontainer" .}} |
| 49 | + {{template "repo/graph/commits" .}} |
| 50 | + {{template "base/paginate" .}} |
| 51 | + </div> |
56 | 52 | </div> |
57 | 53 | </div> |
58 | 54 | </div> |
59 | | -<div id="pagination"> |
60 | | - {{template "base/paginate" .}} |
61 | | -</div> |
62 | 55 | {{template "base/footer" .}} |
0 commit comments