2022-11-30 23:08:16 +09:00
|
|
|
{{ template "header" .}}
|
|
|
|
|
|
|
|
<main>
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ if .repo }} {{ range $key, $value := .repo}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="button-parent">
|
2023-06-07 11:03:32 +09:00
|
|
|
<a href="/{{.Username}}/{{.Reponame}}/archive/{{.DefaultBranch}}.tar.gz" class="button">ダウンロード (tar.gz)</a>
|
|
|
|
<a rel="noreferrer" href="https://github.com/{{.Username}}/{{.Reponame}}" class="button">GitHubで確認</a>
|
2023-03-08 01:58:55 +09:00
|
|
|
</div>
|
2022-11-30 23:08:16 +09:00
|
|
|
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-profile">
|
2023-06-06 20:32:41 +09:00
|
|
|
<h1><a href="/{{.Username}}">{{.Username}}</a>/<a href="/{{.Username}}/{{.Reponame}}">{{.Reponame}}</a></h1>
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ if .Parent }}
|
2023-06-07 11:03:32 +09:00
|
|
|
<p>フォーク元 <a href="/{{.Parent}}">{{.Parent}}</a></p>
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ end }} {{ if .Description }}
|
|
|
|
<p>{{.Description}}</p>
|
2023-03-16 18:55:17 +09:00
|
|
|
{{ end }} {{ if .Link }} <a href="{{.Link}}">{{.Link}}</a> {{end}} {{ if
|
|
|
|
.Tags }}
|
|
|
|
<p>Tags: {{range .Tags}} {{.}} {{end}}</p>
|
|
|
|
{{end}} {{ if .License }}
|
2023-03-08 01:58:55 +09:00
|
|
|
<p>
|
|
|
|
⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ {{.License}} 🌿
|
|
|
|
{{.DefaultBranch}}
|
|
|
|
</p>
|
2022-11-30 23:08:16 +09:00
|
|
|
{{ else }}
|
2023-03-08 01:58:55 +09:00
|
|
|
<p>
|
|
|
|
⭐ {{.Stars}} 🍴 {{.Forks}} 👀 {{.Watchers}} ⚖️ No license 🌿
|
|
|
|
{{.DefaultBranch}}
|
|
|
|
</p>
|
|
|
|
{{ end }} {{ if .Language }}
|
2023-06-06 20:21:01 +09:00
|
|
|
<p>
|
|
|
|
{{range $o := .Language}}{{$o.Name}} {{$o.Percent}}, {{end}}
|
|
|
|
<div class="ui segment">{{range $i, $o := .Language}}
|
|
|
|
<span style="width: {{$o.Percent}}; background-color: {{$o.Color}}">
|
|
|
|
|
|
|
|
</span>
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</p>
|
2023-06-07 11:03:32 +09:00
|
|
|
{{end}} {{ if .CommitsBehind }}このレポジトリは、フォーク元に対して{{.CommitsBehind}}コミット遅れています。{{end}}
|
2023-03-08 01:58:55 +09:00
|
|
|
</div>
|
|
|
|
{{end}} {{ if .files}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme">
|
2023-06-07 11:03:32 +09:00
|
|
|
<h3>ファイル</h3>
|
2023-06-06 21:32:02 +09:00
|
|
|
<table class="user-readme-text file-table">
|
|
|
|
<tbody>
|
|
|
|
{{ range $key, $value := .files}}
|
|
|
|
<tr class="file-u-list">
|
|
|
|
{{ if eq .Type "dir" }}
|
|
|
|
<td class="file-list">
|
|
|
|
📁
|
|
|
|
<a href="/{{.Username}}/{{.Reponame}}/tree/{{.DefaultBranch}}/{{.Path}}" class="filesA">{{.Path}}</a>
|
|
|
|
</td>
|
|
|
|
{{ else }}
|
|
|
|
<td class="file-list">
|
|
|
|
🗒️
|
|
|
|
<a href="/{{.Username}}/{{.Reponame}}/blob/{{.DefaultBranch}}/{{.Path}}">{{.Path}}</a>
|
|
|
|
</td>
|
|
|
|
{{ end }}
|
|
|
|
<td class="file-list">
|
|
|
|
{{.Commit}}
|
|
|
|
</td>
|
|
|
|
<td class="file-list" style="text-align: right;">
|
|
|
|
{{.Date}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2023-03-08 01:58:55 +09:00
|
|
|
</div>
|
|
|
|
{{ end }} {{ if .readme}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme">
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ if .repo }} {{ range $key, $value := .repo}}
|
|
|
|
<h3>{{.Readme}}</h3>
|
|
|
|
{{end}} {{end}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme-text">{{ unescape .readme}}</div>
|
2023-03-08 01:58:55 +09:00
|
|
|
</div>
|
|
|
|
{{ end }} {{ else }}
|
2023-06-07 11:03:32 +09:00
|
|
|
<h2>レポジトリを見つけられません</h2>
|
|
|
|
<p>このレポジトリは存在しないようです。</p>
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ end }}
|
2023-02-14 23:54:33 +09:00
|
|
|
</main>
|
2023-03-08 01:58:55 +09:00
|
|
|
{{ template "footer" .}}
|