From 2ef5371ab5eab797840d0b293723b6f9ed91bdca Mon Sep 17 00:00:00 2001 From: "deepesh.verma" Date: Sun, 9 Jan 2022 23:32:43 +0530 Subject: [PATCH] Format release-summary - Add thumbnail css for avatars - Add custom formatting Signed-off-by: deepesh.verma --- assets/html/css/main.css | 29 ++++++++++++++++++++++ assets/html/template/release-template.html | 17 +++++++------ 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/assets/html/css/main.css b/assets/html/css/main.css index 0d3855d..df6b60f 100644 --- a/assets/html/css/main.css +++ b/assets/html/css/main.css @@ -108,3 +108,32 @@ a { letter-spacing: 1px; margin-top: 12px; } + +.pr-list > li > h1 { + display: inline; +} + +.thumbnail { + display: inline-block; + padding: 2px; + background-color: #fff; + border: 1px solid #ddd; + height: 35px; + width: 35px; + border-radius: 50%; +} + +div.thumbnail-container { + padding-top: 10px; +} + +div.thumbnail img { + height: inherit; + width: inherit; + vertical-align: middle; + border-radius: 50%; +} + +.label { + font-weight: 600 !important; +} diff --git a/assets/html/template/release-template.html b/assets/html/template/release-template.html index 694b564..a9b7456 100644 --- a/assets/html/template/release-template.html +++ b/assets/html/template/release-template.html @@ -39,14 +39,17 @@

    {{range .Releases}}
  1. -

    {{.Name}}

    -
    Author: {{.Author.Login}}
    - -
    Created At: {{.CreatedAt}}
    -
    Published At: {{.PublishedAt}}
    -
    Summary:
    +

    {{.Name}}

    +
    +
    + +
    + {{.Author.Login}} published this at + {{.PublishedAt}} +
    +

    Summary:

    {{.Body}}

    - +
    More details at: {{.TagName}}

  2. {{end}}