1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-10-10 15:10:33 +00:00

Return pasties into a proper html page.

I don't think html escaping is needed, since pasties
go through the colorizer first.

I don't really like the workaround to not call on_send() when
I don't want the html output, it's a bit omg what's going on
there... I'll have to rewrite that bit.
This commit is contained in:
King_DuckZ 2017-04-25 22:56:19 +01:00
commit 06920f8d84
6 changed files with 55 additions and 20 deletions

20
html/text.html.mstch Normal file
View file

@ -0,0 +1,20 @@
{{>head}}
<body>
<div id="topbar">
<p id="version">tawashi 1.0.0</p>
<a href="index.html"><img src="Pictures/tawashi-icon-new.png" alt="tawashi icon" class="icon"></a>
<a href="save.html"><input type="image" src="Pictures/save-ink-t.png" alt="Submit" class="icon-green" title="Save"/></a>
<a href="index.html"><img src="Pictures/new-ink-t.png" alt="new icon" class="icon-green" title="New"/></a>
<a href=""><img src="Pictures/edit-ink-t.png" alt="duplicate and edit icon" class="icon-green" title="Duplicate and Edit"/></a>
<a href=""><img src="Pictures/text-ink-t.png" alt="text icon" class="icon-green" title="Text only"/></a>
<img src="Pictures/C++-icon.jpeg" alt="c++ icon" class="icon-right"/>
<a href=""><img src="Pictures/github-icon.jpeg" alt="github icon" class="icon-right" /></a>
</div>
<div id="content">
<p>{{pastie}}</p>
</div>
</body>
</html>