mirror of https://github.com/gogits/gogs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.4 KiB
46 lines
1.4 KiB
<style>@import "/css/language_statistics.css";</style> |
|
<div class="statistics"> |
|
<div class="box3d"> |
|
<div class="toppanel repo"> |
|
<ul class="navbar"> |
|
<li class="navitem"> |
|
<i class="octicon octicon-history"></i> |
|
<a href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}">{{.CommitsCount}} Commit(s)</a> |
|
</li> |
|
<li class="navitem"> |
|
<i class="octicon octicon-git-branch"></i> |
|
{{len .Branches}} Branch(es) |
|
</li> |
|
<li class="navitem"> |
|
<i class="octicon octicon-tag"></i> |
|
<a href="{{.RepoLink}}/releases">{{.Repository.NumTags}} Release(s)</a> |
|
</li> |
|
<li class="navitem"> |
|
<i class="octicon octicon-organization"></i> |
|
1337 Contributors |
|
</li> |
|
</ul> |
|
<div class="bottompanel lang"> |
|
<ul class="navbar"> |
|
{{range $Lang := .LanguageStats}} |
|
<li class="navitem" style="color:{{$Lang.Color}}" data-percent="{{$Lang.Percent}}"> |
|
<a href="#">{{$Lang.Name}}</a> |
|
</li> |
|
{{end}} |
|
</ul> |
|
</div> |
|
</div> |
|
</div> |
|
|
|
<!-- |
|
would prefer not to use inline styles for this |
|
in favor of data-* attributes + attr() in css |
|
however browsers do not support this yet |
|
and JavaScript cannot target ::before, ::after |
|
--> |
|
<div class="underbar" title="Language Statistics" onclick="document.querySelector('.box3d').classList.toggle('focusstate')"> |
|
{{range $Lang := .LanguageStats}} |
|
<span style="color:{{$Lang.Color}};flex-basis:{{$Lang.Percent}}">{{$Lang.Name}}</span> |
|
{{end}} |
|
</div> |
|
</div>
|
|
|