forked from kevadesu/forgejo
ui: improve commit graph layout
This commit is contained in:
parent
61314f05fc
commit
dbe2846e3b
2 changed files with 44 additions and 17 deletions
|
@ -3,9 +3,9 @@
|
|||
{{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 small color-buttons">
|
||||
<div id="git-graph-heading">
|
||||
<div id="git-graph-heading-left">
|
||||
<h2>{{ctx.Locale.Tr "repo.commit_graph"}}</h2>
|
||||
<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>
|
||||
|
@ -45,14 +45,17 @@
|
|||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui icon buttons small">
|
||||
<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 id="git-graph-content">
|
||||
<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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue