docbrown/app/views/liquids/_github_issue.html.erb
rhymes ae8a58fec2
[deploy] Decouple GitHub authentication from fetching GitHub issues (#7660)
* Improve error handling

* Add tests for Github::Client

* Add GithubIssue validation

* Refactor GithubIssue and fix bug with pull requests

* Improve tests

* Fix PR API URL generation

* Improve logic and get rid of the issue fragment

* Fix disappeared avatar

* Improve rendering

* Activate client side caching using Redis

* Remove unnecessary file

* Add RemoveGithubIssues data update script

* Fix comma

* Forgot to disable the approvals verify text

* Apply PR feedback
2020-05-04 16:17:16 -04:00

29 lines
1.1 KiB
Text

<div class="ltag_github-liquid-tag">
<h1>
<a href="<%= html_url %>">
<img class="github-logo" alt="GitHub logo" src="<%= ActionController::Base.helpers.asset_path('github-logo.svg') %>">
<span class="issue-title">
<%= title %>
</span>
<span class="issue-number">#<%= issue_number %></span>
</a>
</h1>
<div class="github-thread">
<div class="timeline-comment-header">
<a href="<%= user_html_url %>">
<img class="github-liquid-tag-img" src="<%= user_avatar_url %>" alt="<%= username %> avatar">
</a>
<span class="arrow-left-outer"></span>
<span class="arrow-left-inner"></span>
<div class="timeline-comment-header-text">
<strong>
<a href="<%= user_html_url %>"><%= username %></a>
</strong> <%= tagline %> <a href="<%= html_url %>"><time datetime="<%= created_at %>"><%= date %></time></a>
</div>
</div>
<div class="ltag-github-body">
<%= body %>
</div>
<div class="gh-btn-container"><a class="gh-btn" href="<%= html_url %>">View on GitHub</a></div>
</div>
</div>