2023-03-16 18:28:53 +09:00
|
|
|
{{ template "header" .}}
|
|
|
|
|
|
|
|
<main>
|
|
|
|
{{ if .dir }} {{ range $key, $value := .dir}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="button-parent">
|
2023-06-07 11:03:32 +09:00
|
|
|
<a rel="noreferrer" href="https://github.com/{{.Fullname}}/tree/{{.Branch}}/{{.DirName}}" class="button">GitHubで確認</a>
|
|
|
|
<a href="/{{.Fullname}}/tree/{{.Branch}}/{{.Branch}}" class="button">{{.Fullname}}へ戻る</a>
|
2023-03-16 18:28:53 +09:00
|
|
|
</div>
|
|
|
|
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-profile">
|
2023-03-16 18:55:17 +09:00
|
|
|
<h1>{{.Fullname}} | {{.DirName}}</h1>
|
2023-03-16 18:28:53 +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-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme-text">
|
|
|
|
<ul class="file-u-list">
|
2023-03-16 18:28:53 +09:00
|
|
|
{{ range $key, $value := .files}} {{ if eq .Type "dir" }}
|
2023-06-07 11:03:32 +09:00
|
|
|
<li class="file-list">📁 <a href="/{{.Fullname}}/tree/{{.Branch}}/{{.DirName}}/{{.Path}}" class="file-a">{{.Path}}</a></li>
|
2023-03-16 18:28:53 +09:00
|
|
|
{{ else }}
|
2023-06-07 11:03:32 +09:00
|
|
|
<li class="file-list">🗒️ <a href="/{{.Fullname}}/blob/{{.Branch}}/{{.DirName}}/{{.Path}}">{{.Path}}</a></li>
|
2023-03-16 18:28:53 +09:00
|
|
|
{{ end }} {{ end }}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }} {{ if .readme}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme">
|
2023-03-16 18:28:53 +09:00
|
|
|
{{ if .dir }} {{ range $key, $value := .dir }}
|
|
|
|
<h3>{{.Readme}}</h3>
|
|
|
|
{{end}} {{end}}
|
2023-04-02 23:06:52 +09:00
|
|
|
<div class="user-readme-text">{{ unescape .readme}}</div>
|
2023-03-16 18:28:53 +09:00
|
|
|
</div>
|
|
|
|
{{ end }} {{ else }}
|
2023-06-07 11:03:32 +09:00
|
|
|
<h2>フォルダを見つけられません</h2>
|
|
|
|
<p>このフォルダが存在しないようです。</p>
|
2023-03-16 18:28:53 +09:00
|
|
|
{{ end }}
|
|
|
|
</main>
|
|
|
|
{{ template "footer" .}}
|