<style py:if="css" type="text/css"> ${css} .invisible { display: none !important; } </style> <script type="text/javascript"> function toggle_linenos() { linenos = getFirstElementByTagAndClassName('TD', 'linenos', 'paste-container'); if (linenos) { toggleElementClass('invisible', linenos); return false; } else { location.href = "${tg.url(['/paste', paste.guid], ln=1)}"; } return true; } </script> </head> <body> <div id="paste-container"> <div class="paste-header"> <h3 py:if="paste.title" py:content="paste.title" /> <p>${paste.format.display_name} paste, added on <span class="paste-date" py:content="dateandtime(paste.created)" /></p> <div py:replace="style_select(value=form_values, **form_params)" /> <p><a href="${tg.url(['/new', paste.guid])}">Copy & Edit</a> ∙ <a href="${tg.url(['/download', paste.guid])}">Download</a> ∙ <a href="${mailto_url}">Send link</a> ∙ <a href="${tg.url(['/paste', paste.guid], ln=lineno)}" onclick="return toggle_linenos();">Toggle line numbers</a> </p> </div> <div id="paste-code" py:content="Markup(pretty_code)" xml:space="preserve" /> </div> </body> </html>