diff options
author | slene <vslene@gmail.com> | 2014-03-20 21:10:37 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-20 21:10:37 +0800 |
commit | de956c477684f66a9e27ad895efbebae1837b2b1 (patch) | |
tree | 2e18e4a9296b56fb435e517e34975a01075d43e5 /templates | |
parent | c6bd723ce17ae3c0495f84e46a9296b30db5aee1 (diff) | |
download | gitea-de956c477684f66a9e27ad895efbebae1837b2b1.tar.gz gitea-de956c477684f66a9e27ad895efbebae1837b2b1.zip |
linenums
Diffstat (limited to 'templates')
-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}} |