Skip to content

Commit

Permalink
Merge pull request #48 from deepesh-verma/feature/configure-recent-up…
Browse files Browse the repository at this point in the history
…dates-count

Format release-summary
  • Loading branch information
arsulegai authored Jan 9, 2022
2 parents cb38c97 + 2ef5371 commit fe68e8f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 7 deletions.
29 changes: 29 additions & 0 deletions assets/html/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
17 changes: 10 additions & 7 deletions assets/html/template/release-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,17 @@ <h2>
<ol class="pr-list">
{{range .Releases}}
<li>
<h3>{{.Name}}</h3>
<div>Author: {{.Author.Login}}</div>
<img src="{{.Author.AvatarURL}}"/>
<div>Created At: {{.CreatedAt}}</div>
<div>Published At: {{.PublishedAt}}</div>
<div>Summary:</div>
<h1>{{.Name}}</h1>
<div class="thumbnail-container">
<div class="thumbnail">
<img src="{{.Author.AvatarURL}}"/>
</div>
<span class="label">{{.Author.Login}} </span> published this at
<span class="label"> {{.PublishedAt}}</span>
</div>
<h4>Summary:</h4>
<p>{{.Body}}</p>
<div><a href={{.HTMLURL}}>{{.TagName}}</a></div>
<div>More details at: <a href={{.HTMLURL}}>{{.TagName}}</a></div>
</li>
<br />
{{end}}
Expand Down

0 comments on commit fe68e8f

Please sign in to comment.