diff options
author | Florian Klink <flokli@flokli.de> | 2019-11-27T10·34+0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2019-11-27T10·35+0100 |
commit | 1b249600e565d9b6bd28ecd6a743ebc425f02130 (patch) | |
tree | 978c75c1afade4f79831b37f262de9f573442c41 /public/changeset.tmpl.html | |
parent | 97eb1fae387dcfa9ceb121167aa977d430c11dde (diff) |
render changeset via a separate block
Diffstat (limited to 'public/changeset.tmpl.html')
-rw-r--r-- | public/changeset.tmpl.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/public/changeset.tmpl.html b/public/changeset.tmpl.html new file mode 100644 index 000000000000..5d3997885c73 --- /dev/null +++ b/public/changeset.tmpl.html @@ -0,0 +1,15 @@ +{{ define "changeset" }} +<tr> + <td>{{ .OwnerName }}</td> + <td> + <strong>{{ .Subject }}</strong> (<a href="{{ changesetURL . }}" target="_blank">#{{ .Number }}</a>)<br /> + <small><code>{{ .CommitID }}</code></small> + </td> + <td> + <span> + {{ if .IsVerified }}<span class="badge badge-success badge-pill">+1 (CI)</span>{{ end }} + {{ if .IsCodeReviewed }}<span class="badge badge-info badge-pill">+2 (CR)</span>{{ end }} + </span> + </td> +</tr> +{{ end }} \ No newline at end of file |