templates/githubblob.mustache in onebox-1.5.0 vs templates/githubblob.mustache in onebox-1.5.1

- old
+ new

@@ -1,7 +1,37 @@ <h4><a href="{{link}}" target="_blank">{{title}}</a></h4> +{{^has_lines}} <pre><code class='{{lang}}'>{{content}}</code></pre> +{{/has_lines}} +{{#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; +} +pre.onebox code li.selected{ + background-color:#cfc +} +</style> +}} +<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> +{{/has_lines}} + {{#truncated}} This file has been truncated. <a href="{{link}}" target="_blank">show original</a> -{{/truncated}} - +{{/truncated}} \ No newline at end of file