mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
linenums
This commit is contained in:
@@ -16,8 +16,15 @@
|
||||
{{.FileContent|str2html}}
|
||||
</div>
|
||||
{{else}}
|
||||
<div class="panel-body file-body file-code markdown">
|
||||
<pre class="linenums"><code>{{.FileContent}}</code></pre>
|
||||
<div class="panel-body file-body file-code">
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="lines-num"></td>
|
||||
<td class="lines-code markdown"><pre class="linenums lang-{{.FileExt}}"><code>{{.FileContent}}</code></pre></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
|
Reference in New Issue
Block a user