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.

47 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">
9 years ago
<i class="octicon octicon-history"></i>
<a href="{{.RepoLink}}/commits/{{EscapePound .BranchName}}">{{.CommitsCount}} Commit(s)</a>
</li>
<li class="navitem">
9 years ago
<i class="octicon octicon-git-branch"></i>
{{len .Branches}} Branch(es)
</li>
<li class="navitem">
9 years ago
<i class="octicon octicon-tag"></i>
<a href="{{.RepoLink}}/releases">{{.Repository.NumTags}} Release(s)</a>
</li>
<li class="navitem">
9 years ago
<i class="octicon octicon-organization"></i>
1337 Contributors
</li>
</ul>
<div class="bottompanel lang">
<ul class="navbar">
9 years ago
{{range $Lang := .LanguageStats}}
<li class="navitem" style="color:{{$Lang.Color}}" data-percent="{{$Lang.Percent}}">
9 years ago
<a href="#">{{$Lang.Name}}</a>
</li>
{{end}}
</ul>
</div>
</div>
</div>
9 years ago
<!--
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')">
9 years ago
{{range $Lang := .LanguageStats}}
<span style="color:{{$Lang.Color}};flex-basis:{{$Lang.Percent}}">{{$Lang.Name}}</span>
{{end}}
</div>
</div>