diff options
Diffstat (limited to 'templates/repo/single_file.tmpl')
-rw-r--r-- | templates/repo/single_file.tmpl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/repo/single_file.tmpl b/templates/repo/single_file.tmpl index 0c1c3713f6..7bca626aaa 100644 --- a/templates/repo/single_file.tmpl +++ b/templates/repo/single_file.tmpl @@ -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}} |