From 4efe27ba918e3667d54b68d3cf15accac5889fef Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 25 Mar 2025 11:16:56 +0800 Subject: Responsive grid for commit and repo info --- templates/repo_commit.tmpl | 63 ++++++++++++++++++++++------------------------ templates/repo_index.tmpl | 42 +++++++++++++------------------ 2 files changed, 47 insertions(+), 58 deletions(-) (limited to 'templates') diff --git a/templates/repo_commit.tmpl b/templates/repo_commit.tmpl index 8cf106b..46f5478 100644 --- a/templates/repo_commit.tmpl +++ b/templates/repo_commit.tmpl @@ -12,40 +12,37 @@ {{- template "header" . -}}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Commit info
ID{{- .commit_id -}}
Author{{- .commit_object.Author.Name -}} <{{- .commit_object.Author.Email -}}>
Author date{{- .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
Committer{{- .commit_object.Committer.Name -}} <{{- .commit_object.Committer.Email -}}>
Committer date{{- .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
Actions
Get patch
+
+
+
Commit info
+ +
ID
+
{{- .commit_id -}}
+ +
Author
+
+ {{- .commit_object.Author.Name -}} <{{- .commit_object.Author.Email -}}>
+ +
Author date
+
{{- .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
+ +
Committer
+
+ {{- .commit_object.Committer.Name -}} <{{- .commit_object.Committer.Email -}}> +
+ +
Committer date
+
{{- .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" -}}
+ +
Actions
+
+ Get patch +
+
+
+
+
{{- .commit_object.Message -}}
diff --git a/templates/repo_index.tmpl b/templates/repo_index.tmpl index 39e55cf..cf5d1cd 100644 --- a/templates/repo_index.tmpl +++ b/templates/repo_index.tmpl @@ -12,35 +12,27 @@ {{- template "header" . -}}
- - - - - - - - - - - +
+
+
Repo info
+
Name
+
{{- .repo_name -}}
{{- if .repo_description -}} -
- - - +
Description
+
{{- .repo_description -}}
{{- end -}} - - - - +
SSH remote
+
{{- .ssh_clone_url -}}
{{- if .notes -}} - - - - +
Notes
+
+
    + {{- range .notes -}}
  • {{- . -}}
  • {{- end -}} +
+
{{- end -}} - -
Repo info
Name{{- .repo_name -}}
Description{{- .repo_description -}}
SSH remote{{- .ssh_clone_url -}}
Notes
    {{- range .notes -}}
  • {{- . -}}
  • {{- end -}}
+ +
-- cgit v1.2.3