From: Christian Weiske Date: Tue, 3 Feb 2015 19:41:59 +0000 (+0100) Subject: fix embed style inclusion and embed overflow handling X-Git-Tag: v0.5.0^0 X-Git-Url: https://git.cweiske.de/phorkie.git/commitdiff_plain/966b9033d71b5226a3209658b81cec21024bd0b6 fix embed style inclusion and embed overflow handling --- diff --git a/data/templates/embed.htm b/data/templates/embed.htm index 22c9b19..fcbd2cc 100644 --- a/data/templates/embed.htm +++ b/data/templates/embed.htm @@ -1,8 +1,9 @@ /* embedding all files of {{repo.getLink('display', null, true)}} */ var me = document.getElementById('phork-script-{{repo.id}}'); -me.insertAdjacentHTML('afterend', ''); -me.insertAdjacentHTML('afterend', - '
' +me.insertAdjacentHTML( + 'afterend', + '' + + '
' {% for file in repo.getFiles %} + {% filter json_encode(constant('JSON_UNESCAPED_SLASHES'))|raw -%}{% include 'embed-part-file.htm' %}{%- endfilter %} {% endfor %} diff --git a/www/css/embed.css b/www/css/embed.css index 4d5c050..11839a9 100644 --- a/www/css/embed.css +++ b/www/css/embed.css @@ -10,7 +10,7 @@ .phork-content { padding: 0.6ex; } -.phork-file > .code { +.phork-content > .code { overflow-x: auto; } .phork-file .code pre {