mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
Update github commit onebox to match pr onebox
This commit is contained in:
parent
cbec9efc16
commit
7bdb73bcb0
1 changed files with 23 additions and 6 deletions
|
@ -3,18 +3,35 @@
|
|||
<div class="source">
|
||||
<div class="info">
|
||||
<a href="{{html_url}}" class="track-link" target="_blank">
|
||||
{{#favicon}}<img class="favicon" src="{{favicon}}"> {{/favicon}}{{host}}
|
||||
{{#favicon}}
|
||||
<img class="favicon" src="{{favicon}}">
|
||||
{{/favicon}}
|
||||
{{host}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/host}}
|
||||
|
||||
<div class="onebox-result-body">
|
||||
{{#author.avatar_url}}<a href="{{author.html_url}}" target="_blank"><img alt="{{author.login}}" src="{{author.avatar_url}}"></a>{{/author.avatar_url}}
|
||||
<h4><a href="{{author.html_url}}" target="_blank">{{author.login}}</a></h4>
|
||||
{{{commit.message}}}
|
||||
<div class="github-commit-stats">Changed <strong>{{files.length}} files</strong> with <strong>{{stats.additions}} additions</strong> and <strong>{{stats.deletions}} deletions</strong>.</div>
|
||||
{{#author.avatar_url}}
|
||||
<a href="{{author.html_url}}" target="_blank">
|
||||
<img alt="{{author.login}}" src="{{author.avatar_url}}">
|
||||
</a>
|
||||
{{/author.avatar_url}}
|
||||
|
||||
<h4>
|
||||
<a href="{{html_url}}" target="_blank">{{commit.message}}</a>
|
||||
</h4>
|
||||
|
||||
<div class="date">
|
||||
<a href="{{html_url}}" target="_blank">{{commit_date}}</a>
|
||||
by <a href="{{author.html_url}}" target="_blank">{{author.login}}</a>
|
||||
on <a href="{{html_url}}" target="_blank">{{commit_date}}</a>
|
||||
</div>
|
||||
|
||||
<div class="github-commit-stats">
|
||||
changed <strong>{{files.length}} files</strong>
|
||||
with <strong>{{stats.additions}} additions</strong>
|
||||
and <strong>{{stats.deletions}} deletions</strong>.
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
|
|
Loading…
Add table
Reference in a new issue