2021-05-26 17:41:35 +08:00
|
|
|
<h4><a href="{{link}}" target="_blank" rel="noopener">{{title}}</a></h4>
|
|
|
|
|
2022-01-19 20:45:36 +08:00
|
|
|
{{^binary}}
|
|
|
|
{{^has_lines}}
|
|
|
|
{{#model_file}}
|
|
|
|
<iframe class="render-viewer" width="{{width}}" height="{{height}}" src="{{content}}" sandbox="allow-scripts allow-same-origin allow-top-navigation ">
|
|
|
|
Viewer requires iframe.
|
|
|
|
</iframe>
|
|
|
|
{{/model_file}}
|
2021-05-26 17:41:35 +08:00
|
|
|
|
2022-01-19 20:45:36 +08:00
|
|
|
{{^model_file}}
|
|
|
|
<pre><code class="{{lang}}">{{content}}</code></pre>
|
|
|
|
{{/model_file}}
|
|
|
|
{{/has_lines}}
|
2021-05-26 17:41:35 +08:00
|
|
|
|
2022-01-19 20:45:36 +08:00
|
|
|
{{#has_lines}}
|
|
|
|
{{! This is a template comment | Sample rules for this box
|
|
|
|
<style>
|
|
|
|
pre.onebox code ol{
|
|
|
|
margin-left:0px;
|
|
|
|
}
|
|
|
|
pre.onebox code ol .lines{
|
|
|
|
margin-left:30px;
|
|
|
|
}
|
|
|
|
pre.onebox code ol.lines li {
|
|
|
|
list-style-type: decimal;
|
|
|
|
margin-left:45px;
|
|
|
|
}
|
|
|
|
pre.onebox code li{
|
|
|
|
list-style-type: none;
|
|
|
|
background-color:#fff;
|
|
|
|
border-bottom:1px solid #F0F0F0;
|
|
|
|
padding-left:5px;
|
2021-05-26 17:41:35 +08:00
|
|
|
|
2022-01-19 20:45:36 +08:00
|
|
|
}
|
|
|
|
pre.onebox code li.selected{
|
|
|
|
background-color:#cfc
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
}}
|
2021-05-26 17:41:35 +08:00
|
|
|
|
2022-06-17 09:09:45 +08:00
|
|
|
{{!-- pre and code are intentionally on the same line to control whitespace --}}
|
|
|
|
<pre class="onebox"><code class="{{lang}}">
|
|
|
|
<ol class="start lines" start="{{cr_results.from}}" style="counter-reset: li-counter {{cr_results.from_minus_one}} ;">
|
|
|
|
{{#lines}}
|
|
|
|
<li{{#selected}} class="selected"{{/selected}}>{{data}}</li>
|
|
|
|
{{/lines}}
|
|
|
|
</ol>
|
|
|
|
</code></pre>
|
2022-01-19 20:45:36 +08:00
|
|
|
{{/has_lines}}
|
|
|
|
{{/binary}}
|
|
|
|
|
|
|
|
{{#binary}}
|
|
|
|
This file is binary. <a href="{{link}}" target="_blank" rel="noopener">show original</a>
|
|
|
|
{{/binary}}
|
2021-05-26 17:41:35 +08:00
|
|
|
|
|
|
|
{{#truncated}}
|
|
|
|
This file has been truncated. <a href="{{link}}" target="_blank" rel="noopener">show original</a>
|
|
|
|
{{/truncated}}
|