mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 04:36:05 +08:00
add top page
This commit is contained in:
19
lib/oneboxer/templates/github_blob_onebox.handlebars
Normal file
19
lib/oneboxer/templates/github_blob_onebox.handlebars
Normal file
@ -0,0 +1,19 @@
|
||||
<div class='onebox-result'>
|
||||
{{#host}}
|
||||
<div class="source">
|
||||
<div class="info">
|
||||
<a href='{{original_url}}' class='source track-link' target="_blank">
|
||||
{{#favicon}}<img class='favicon' src="{{favicon}}"> {{/favicon}}{{host}}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{{/host}}
|
||||
<div class='onebox-result-body'>
|
||||
<h4><a href="{{original_url}}" target="_blank">{{original_url}}</a></h4>
|
||||
<pre><code class='{{lang}}'>{{content}}</code></pre>
|
||||
|
||||
{{#truncated}}
|
||||
This file has been truncated. <a href="{{original_url}}" target="_blank">show original</a>
|
||||
{{/truncated}}
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user