run prettier on html files

This commit is contained in:
Arya Kiran
2023-03-23 16:45:27 +05:30
parent d2ce5edc52
commit 082b7783d9
4 changed files with 17 additions and 12 deletions
+7 -8
View File
@@ -14,15 +14,14 @@
<h1>{{.CommitHashShortened}} | {{.CommitName}}</h1>
</div>
<div class="userReadme">
{{.CommitName}} <pre>{{.CommitDesc}}</pre> {{.CommitHashShortened}} {{.CommitDate}} {{.Commiter}} {{.CommitToBranch}} {{.PreviousCommit}}
Members: {{range .Commiter}}
<a href="/{{.}}" target="_blank">@{{.}}</a>
{{ end }}
{{.CommitName}}
<pre>{{.CommitDesc}}</pre>
{{.CommitHashShortened}} {{.CommitDate}} {{.Commiter}} {{.CommitToBranch}}
{{.PreviousCommit}} Members: {{range .Commiter}}
<a href="/{{.}}" target="_blank">@{{.}}</a>
{{ end }}
</div>
{{end}}
{{ .file}}
{{ else }}
{{end}} {{ .file}} {{ else }}
<h2>Directory not found</h2>
<p>That directory doesn't exist.</p>
{{ end }}
+5 -2
View File
@@ -3,10 +3,13 @@
<main>
{{ if .dir }} {{ range $key, $value := .dir}}
<div class="buttonParent">
<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 -1
View File
@@ -12,7 +12,8 @@
<a href="https://codeberg.org/gothub/gothub/issues" target="_blank"
>Create an issue on Codeberg.</a
>
Or view this page on <a rel="noreferrer" href="https://github.com{{.link}}">GitHub</a>
Or view this page on
<a rel="noreferrer" href="https://github.com{{.link}}">GitHub</a>
</h3>
</div>
</main>
+3 -1
View File
@@ -3,7 +3,9 @@
<main>
{{ if .user }} {{ range $key, $value := .user}}
<div class="buttonParent">
<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="userProfile">
<img