mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 05:43:44 +08:00
f5cbc3e3b8
Followup 560e8aff75
The linked commit allowed oneboxing private GitHub PRs,
issues, commits, and so on, but it didn't actually allow
oneboxing the root repo e.g https://github.com/discourse/discourse-reactions
We didn't have an engine for this, we were relying on OpenGraph
tags on the HTML rendering of the page like we do with other
oneboxes.
To fix this, we needed a new github engine for repos specifically.
Also, this commit adds a `data-github-private-repo` attribute to
PR, issue, and repo onebox HTML so we have an indicator of
whether the repo was private, which can be used for theme components
and so on.
10 lines
345 B
Plaintext
10 lines
345 B
Plaintext
<div class="github-row" data-github-private-repo="{{is_private}}">
|
|
<img width="695" height="347" src="{{thumbnail}}" class="thumbnail">
|
|
|
|
<h3><a href="{{link}}" target="_blank" rel="noopener ugc noopener">{{title}}</a></h3>
|
|
|
|
{{#description}}
|
|
<p><span class="github-repo-description">{{description}}</span></p>
|
|
{{/description}}
|
|
</div>
|