diff options
author | Runxi Yu <me@runxiyu.org> | 2025-02-15 00:32:39 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-02-15 00:32:39 +0800 |
commit | d5416d850c9b697bc8fb189841e1c1e622494f5e (patch) | |
tree | b877df54a6fbef112b0d32796f514b66177c9976 /templates/repo_commit.html.tmpl | |
parent | Makefile, resources.go: Add vendor directory to serve library source (diff) | |
download | forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.tar.gz forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.tar.zst forge-d5416d850c9b697bc8fb189841e1c1e622494f5e.zip |
templates: *.html.tmpl -> *.tmpl
Diffstat (limited to 'templates/repo_commit.html.tmpl')
-rw-r--r-- | templates/repo_commit.html.tmpl | 91 |
1 files changed, 0 insertions, 91 deletions
diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl deleted file mode 100644 index 8797092..0000000 --- a/templates/repo_commit.html.tmpl +++ /dev/null @@ -1,91 +0,0 @@ -{{- define "repo_commit" -}} -<!DOCTYPE html> -<html lang="en"> - <head> - {{ template "head_common" . }} - <title>{{ .group_name }}/repos/{{ .repo_name }} – {{ .global.forge_title }}</title> - </head> - <body class="repo-commit"> - {{ template "header" . }} - <div class="padding-wrapper scroll"> - <table id="commit-info-table"> - <thead> - <tr class="title-row"> - <th colspan="2">Commit info</th> - </tr> - </thead> - <tbody> - <tr> - <th scope="row">ID</th> - <td>{{ .commit_id }}</td> - </tr> - <tr> - <th scope="row">Author</th> - <td>{{ .commit_object.Author.Name }} <<a href="mailto:{{ .commit_object.Author.Email }}">{{ .commit_object.Author.Email }}</a>></td> - </tr> - <tr> - <th scope="row">Author date</th> - <td>{{ .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</td> - </tr> - <tr> - <th scope="row">Committer</th> - <td>{{ .commit_object.Committer.Name }} <<a href="mailto:{{ .commit_object.Committer.Email }}">{{ .commit_object.Committer.Email }}</a>></td> - </tr> - <tr> - <th scope="row">Committer date</th> - <td>{{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}</td> - </tr> - <tr> - <th scope="row">Message</th> - <td><pre>{{ .commit_object.Message }}</pre></td> - </tr> - <tr> - <th scope="row">Actions</th> - <td><pre><a href="{{ .commit_object.Hash }}.patch">Get patch</a></pre></td> - </tr> - </tbody> - </table> - </div> - <div class="padding-wrapper"> - {{ $parent_commit_hash := .parent_commit_hash }} - {{ $commit_object := .commit_object }} - {{ range .file_patches }} - <div class="file-patch toggle-on-wrapper"> - <input type="checkbox" id="toggle-{{ .From.Hash }}{{ .To.Hash }}" class="file-toggle toggle-on-toggle"> - <label for="toggle-{{ .From.Hash }}{{ .To.Hash }}" class="file-header toggle-on-header"> - <div> - {{ if eq .From.Path "" }} - --- /dev/null - {{ else }} - --- a/<a href="../tree/{{ .From.Path }}?commit={{ $parent_commit_hash }}">{{ .From.Path }}</a> {{ .From.Mode }} - {{ end }} - <br /> - {{ if eq .To.Path "" }} - +++ /dev/null - {{ else }} - +++ b/<a href="../tree/{{ .To.Path }}?commit={{ $commit_object.Hash }}">{{ .To.Path }}</a> {{ .To.Mode }} - {{ end }} - </div> - </label> - <div class="file-content toggle-on-content scroll"> - {{ range .Chunks }} - {{ if eq .Operation 0 }} - <pre class="chunk chunk-unchanged">{{ .Content }}</pre> - {{ else if eq .Operation 1 }} - <pre class="chunk chunk-addition">{{ .Content }}</pre> - {{ else if eq .Operation 2 }} - <pre class="chunk chunk-deletion">{{ .Content }}</pre> - {{ else }} - <pre class="chunk chunk-unknown">{{ .Content }}</pre> - {{ end }} - {{ end }} - </div> - </div> - {{ end }} - </div> - <footer> - {{ template "footer" . }} - </footer> - </body> -</html> -{{- end -}} |