beatify views

This commit is contained in:
medanisjbara
2023-03-28 14:22:38 +01:00
parent b9db8fb9d5
commit 877b8e0e10
4 changed files with 13 additions and 6 deletions
+5 -2
View File
@@ -3,10 +3,13 @@
<main>
{{ if .dir }} {{ range $key, $value := .dir}}
<div class="button-parent">
<a rel="noreferrer" href="https://github.com/{{.Fullname}}/tree/{{.Branch}}/{{.DirName}}" class="button"
<a
rel="noreferrer"
href="https://github.com/{{.Fullname}}/tree/{{.Branch}}/{{.DirName}}"
class="button"
>View on GitHub</a
>
<a href="/{{.Fullname}}/tree/{{.Branch}}/{{.Branch}}" class="button"
<a href="/{{.Fullname}}/tree/{{.Branch}}/{{.Branch}}" class="button"
>Back to {{.Fullname}}</a
>
</div>
+2 -2
View File
@@ -41,10 +41,10 @@
{{ if .readme}}
<div class="userReadme">
{{ if .repo }}
{{ range $key, $value := .repo}}
{{ range $key, $value := .repo}}
<h3>{{.Readme}}</h3>
{{end}}
{{end}}
{{end}}
<div class="userReadmeText">
{{ unescape .readme}}
</div>
+3 -1
View File
@@ -6,7 +6,9 @@
<a href="/download/{{.Fullname}}/{{.DefaultBranch}}" class="button"
>Download (zip)</a
>
<a rel="noreferrer" href="https://github.com/{{.Fullname}}" class="button">View on GitHub</a>
<a rel="noreferrer" href="https://github.com/{{.Fullname}}" class="button"
>View on GitHub</a
>
</div>
<div class="user-profile">
+3 -1
View File
@@ -3,7 +3,9 @@
<main>
{{ if .user }} {{ range $key, $value := .user}}
<div class="button-parent">
<a rel="noreferrer" href="https://github.com/{{.Login}}" class="button">View on GitHub</a>
<a rel="noreferrer" href="https://github.com/{{.Login}}" class="button"
>View on GitHub</a
>
</div>
<div class="user-profile">
<img