treasuredb/templates/layouts/default.html.ep

50 lines
1.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, minimum-scale=1" />
<title>TrsrDB<% if (my $t = title) { %>: <%= $t %><% } %></title>
<link rel="stylesheet" type="text/css"
href="/style.css" media="screen,projection">
% my $scripts = stash 'addScripts';
% for my $script ( @$scripts ) {
<script src="/scripts/<%= $script %>.js"></script>
% }
</head>
<body>
% if ( my $t = title ) {
<h1>Treasure DB: <%= $t %></h1>
% }
<%= content %>
<p id="bottommenu"><a href="<%= url_for "home" %>">Overview</a>
% if ( my $links = stash 'links' ) {
% while ( my ($link, $text) = splice @$links, 0, 2 ) {
| <a href="<%= url_for $link %>"><%= $text %></a>
% }
% }
% my $help = stash 'help';
% if ( defined $help ) {
| <a href="#help">Help</a>
% }
% my $sql = sql_trace;
% if ( defined $$sql ) {
| <a href="#sql">SQL</a>
% }
</p>
% if ( defined $help ) {
<div class="targettable" id="help">
%== $help->()
</div>
% }
% if ( defined $sql ) {
<div class="targettable" id="sql">
<p>Please note that, to run the SQL commands directly in another tool, you might need to resolve the prepared statements manually. Just replace all question marks by the values listed after the colon in each line.</p>
<textarea rows="5" style="width:100%;border:1px inset lightgrey;" readonly="readonly">
%== $$sql
</textarea></div>
% }
<p id="footer">Copyright 2016 Florian L. Heß | Treasure DB licensed under General Public License, version 3 | <a href="https://github.com/flowdy/treasuredb">Fork me on GitHub</a></p>
</body></html>