mirror of
https://codeberg.org/gothub/gothub
synced 2024-12-06 19:16:24 +01:00
beatify views
This commit is contained in:
+5
-2
@@ -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
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user