templates/githubpullrequest.mustache in onebox-1.9.15 vs templates/githubpullrequest.mustache in onebox-1.9.16
- old
+ new
@@ -1,22 +1,36 @@
-<svg width="60" height="60" class="github-icon" viewBox="0 0 12 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path></svg>
+<div class="github-row">
+ <div class="github-icon-container" title="Pull Request">
+ <svg width="60" height="60" class="github-icon" viewBox="0 0 12 16" version="1.1" aria-hidden="true"><path fill-rule="evenodd" d="M11 11.28V5c-.03-.78-.34-1.47-.94-2.06C9.46 2.35 8.78 2.03 8 2H7V0L4 3l3 3V4h1c.27.02.48.11.69.31.21.2.3.42.31.69v6.28A1.993 1.993 0 0 0 10 15a1.993 1.993 0 0 0 1-3.72zm-1 2.92c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zM4 3c0-1.11-.89-2-2-2a1.993 1.993 0 0 0-1 3.72v6.56A1.993 1.993 0 0 0 2 15a1.993 1.993 0 0 0 1-3.72V4.72c.59-.34 1-.98 1-1.72zm-.8 10c0 .66-.55 1.2-1.2 1.2-.65 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path></svg>
+ </div>
-<h4>
- {{#user.avatar_url}}
- <a href="{{user.html_url}}" target="_blank">
- <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
- </a>
- {{/user.avatar_url}}
- <a href="{{html_url}}" target="_blank">{{title}}</a>
-</h4>
+ <div class="github-info-container">
+ <h4>
+ <a href="{{html_url}}" target="_blank">{{title}}</a>
+ </h4>
-<div class="date">
- pull request by <a href="{{user.html_url}}" target="_blank">{{user.login}}</a>
- on <a href="{{html_url}}" target="_blank">{{created_at}}</a>
-</div>
+ <div class="branches">
+ <code>{{base.label}}</code> ← <code>{{head.label}}</code>
+ </div>
-<div class="github-commit-stats">
- <strong>{{commits}} commits</strong>
- changed <strong>{{changed_files}} files</strong>
- with <strong>{{additions}} additions</strong>
- and <strong>{{deletions}} deletions</strong>.
-</div>
+ <div class="github-info">
+ <div class="date">
+ opened <span class="discourse-local-date" data-format='ll' data-date="{{created_at_date}}" data-time="{{created_at_time}}" data-timezone="UTC">{{created_at}}</span>
+ </div>
+
+ <div class="user">
+ <a href="{{user.html_url}}" target="_blank">
+ <img alt="{{user.login}}" src="{{user.avatar_url}}" class="onebox-avatar-inline" width="20" height="20">
+ {{user.login}}
+ </a>
+ </div>
+
+ <div class="lines" title="{{commits}} commits changed {{changed_files}} files with {{additions}} additions and {{deletions}} deletions">
+ <a href="{{html_url}}/files" target="_blank">
+ <span class="added">+{{additions}}</span>
+ <span class="removed">-{{deletions}}</span>
+ </a>
+ </div>
+ </div>
+
+ </div>
+</div>
\ No newline at end of file