mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 13:01:15 +00:00
377165a38f
Very little visual changes: * class `labelled` is not used in CSS, removed from elements * `margin-right: 0;` in `#git-graph-container .color-buttons` wasn't doing anything * `width: 100%;` in `#git-graph-container #rev-container` and `#git-graph-container #rev-list` wasn't doing anything (Checked on both desktop and mobile screens.) * the now unused class `color-buttons` is left for now because it might come useful later. The button coloring is broken here and I would like to touch it separately * removed `font-size: 80%;` from dates to ensure proper readability, it wasn't saving much space but was inconvenient to look at because other dates in the UI are normal sized * the small size of branch labels are left as is for now because removing `small` breaks alignment, and this is a cleanup PR So, the only visual change is date sizes, other than that there's just styling code removed. https://codeberg.org/attachments/d02f2771-8517-4b8b-9ac7-76b020f7b14e Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/4065 Reviewed-by: Otto <otto@codeberg.org>
63 lines
2.9 KiB
Go HTML Template
63 lines
2.9 KiB
Go HTML Template
{{template "base/head" .}}
|
|
<div role="main" aria-label="{{.Title}}" class="page-content repository commits">
|
|
{{template "repo/header" .}}
|
|
<div class="ui container">
|
|
<div id="git-graph-container" class="ui segment{{if eq .Mode "monochrome"}} monochrome{{end}}">
|
|
<h2 class="ui header dividing">
|
|
{{ctx.Locale.Tr "repo.commit_graph"}}
|
|
<div class="ui icon buttons tiny color-buttons">
|
|
<div class="ui multiple selection search dropdown" id="flow-select-refs-dropdown">
|
|
<input type="hidden" name="flow">
|
|
<div class="default text">{{ctx.Locale.Tr "repo.commit_graph.select"}}</div>
|
|
<div class="menu">
|
|
<div class="item" data-value="...flow-hide-pr-refs">
|
|
<span class="truncate">
|
|
{{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>
|
|
</span>
|
|
</div>
|
|
{{range .AllRefs}}
|
|
{{$refGroup := .RefGroup}}
|
|
{{if eq $refGroup "pull"}}
|
|
<div class="item" data-value="{{.Name}}">
|
|
<span class="truncate">
|
|
{{svg "octicon-git-pull-request" 16 "tw-mr-1"}}<span title="{{.ShortName}}">#{{.ShortName}}</span>
|
|
</span>
|
|
</div>
|
|
{{else if eq $refGroup "tags"}}
|
|
<div class="item" data-value="{{.Name}}">
|
|
<span class="truncate">
|
|
{{svg "octicon-tag" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span>
|
|
</span>
|
|
</div>
|
|
{{else if eq $refGroup "remotes"}}
|
|
<div class="item" data-value="{{.Name}}">
|
|
<span class="truncate">
|
|
{{svg "octicon-cross-reference" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span>
|
|
</span>
|
|
</div>
|
|
{{else if eq $refGroup "heads"}}
|
|
<div class="item" data-value="{{.Name}}">
|
|
<span class="truncate">
|
|
{{svg "octicon-git-branch" 16 "tw-mr-1"}}<span title="{{.ShortName}}">{{.ShortName}}</span>
|
|
</span>
|
|
</div>
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
</div>
|
|
<button id="flow-color-monochrome" class="ui icon button{{if eq .Mode "monochrome"}} active{{end}}" title="{{ctx.Locale.Tr "repo.commit_graph.monochrome"}}">{{svg "material-invert-colors" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.commit_graph.monochrome"}}</button>
|
|
<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>
|
|
</div>
|
|
</h2>
|
|
<div class="ui dividing"></div>
|
|
<div class="is-loading tw-py-32 tw-hidden" id="loading-indicator"></div>
|
|
{{template "repo/graph/svgcontainer" .}}
|
|
{{template "repo/graph/commits" .}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="pagination">
|
|
{{template "base/paginate" .}}
|
|
</div>
|
|
{{template "base/footer" .}}
|