summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 20:00:19 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-18 20:00:19 +0530
commitd0d636aa89bf194185abf01e05b190386d0e8b23 (patch)
tree53f44e98b081e8fbd6823f9e7329fa3f7185ad82 /templates
parent2e3c3103c48c748ccc8fa6b3607d51f112a9400f (diff)
downloadlegit-d0d636aa89bf194185abf01e05b190386d0e8b23.tar.gz
legit-d0d636aa89bf194185abf01e05b190386d0e8b23.tar.bz2
legit-d0d636aa89bf194185abf01e05b190386d0e8b23.zip
all: go-import, clone url
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>