summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/commit.html7
-rw-r--r--templates/head.html3
-rw-r--r--templates/repo.html12
3 files changed, 18 insertions, 4 deletions
diff --git a/templates/commit.html b/templates/commit.html
index 9ab945a..1b4a8d9 100644
--- a/templates/commit.html
+++ b/templates/commit.html
@@ -10,8 +10,11 @@
<pre>
{{- .commit.Message -}}
</pre>
- <p>{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</p>
- <p>{{ .commit.Author.Name }} <span class="commit-email">{{ .commit.Author.Email}}</span></p>
+ <div class="commit-info">
+ {{ .commit.Author.Name }} <span class="commit-email">{{ .commit.Author.Email}}</span>
+ <div>{{ .commit.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</div>
+ </div>
+
<p>commit: <a href="/{{ .name }}/commit/{{ .commit.This }}">
{{ .commit.This }}
</a>
diff --git a/templates/head.html b/templates/head.html
index 81ee777..0bde52e 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -4,6 +4,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/static/style.css" type="text/css">
<link rel="stylesheet" href="https://cdn.icyphox.sh/fonts/inter.css" type="text/css">
+ {{ if .goimport }}
+ {{ .goimport }}
+ {{ end }}
<!-- other meta tags here -->
</head>
{{ end }}
diff --git a/templates/repo.html b/templates/repo.html
index 687cafe..8dc5f54 100644
--- a/templates/repo.html
+++ b/templates/repo.html
@@ -25,12 +25,20 @@
</div>
{{ end }}
</div>
-
+{{- if .readme }}
<article class="readme">
<pre>
- {{- if .readme }}{{ .readme }}{{- end -}}
+ {{- .readme -}}
</pre>
</article>
+{{- end -}}
+
+ <div class="clone-url">
+ <strong>clone</strong>
+ <pre>
+git clone {{ .clone -}}
+ </pre>
+ </div>
</main>
</body>
</html>