aboutsummaryrefslogtreecommitdiffstats
path: root/Resources
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-03-10 20:33:51 +0000
committerstuconnolly <stuart02@gmail.com>2010-03-10 20:33:51 +0000
commite92951358fd80fb42f33fe4ce0e33a39939a9bf3 (patch)
tree4826063b6fd9b786a8f461b644a5d954a6bc3a51 /Resources
parentb2f78ecd1395905c8031d4a2a670128c2d06c1e7 (diff)
downloadsequelpro-e92951358fd80fb42f33fe4ce0e33a39939a9bf3.tar.gz
sequelpro-e92951358fd80fb42f33fe4ce0e33a39939a9bf3.tar.bz2
sequelpro-e92951358fd80fb42f33fe4ce0e33a39939a9bf3.zip
Include the current table name in printing support. Fixes issue #501.
Diffstat (limited to 'Resources')
-rw-r--r--Resources/English.lproj/sequel-pro-print-template.html130
1 files changed, 70 insertions, 60 deletions
diff --git a/Resources/English.lproj/sequel-pro-print-template.html b/Resources/English.lproj/sequel-pro-print-template.html
index 9dd2f624..9fe2fe29 100644
--- a/Resources/English.lproj/sequel-pro-print-template.html
+++ b/Resources/English.lproj/sequel-pro-print-template.html
@@ -1,76 +1,86 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
-<title>Sequel Pro</title>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<style type="text/css" media="all">
-html {
- font-size:82%;
-}
-.nowrap {
- white-space:nowrap;
-}
-div.nowrap {
- margin:0;
- padding:0;
-}
-body, table, th, td {
- background-color:#FFFFFF;
- color:#000000;
-}
-table, th, td {
- border:0.1em solid #000000;
-}
+ <title>Sequel Pro</title>
+
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-table {
- border-collapse:collapse;
- border-spacing:0;
- width: 100%;
-}
+ <style type="text/css" media="all">
+ html {
+ font-size: 82%;
+ }
+
+ .nowrap {
+ white-space: nowrap;
+ }
+
+ div.nowrap {
+ margin: 0;
+ padding: 0;
+ }
+
+ body, table, th, td {
+ background-color: #FFFFFF;
+ color: #000000;
+ }
+
+ table, th, td {
+ border: 0.1em solid #000000;
+ }
-th, td {
- padding:0.2em;
-}
+ table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ width: 100%;
+ }
-th {
- background-color:#E5E5E5;
- font-weight:bold;
-}
+ th, td {
+ padding: 0.2em;
+ }
-tr > td {
- text-align: left;
-}
+ th {
+ background-color: #E5E5E5;
+ font-weight: bold;
+ }
-tr.even > td {
- background-color: #EDF3FE;
-}
+ tr > td {
+ text-align: left;
+ }
-tr.odd > td {
- background-color: #FFFFFF;
-}
+ tr.even > td {
+ background-color: #EDF3FE;
+ }
-</style>
+ tr.odd > td {
+ background-color: #FFFFFF;
+ }
+ </style>
</head>
<body>
-<p>
- <b>Connection:</b> {{c.username}}{% if c.username %}@{% /if %}{{c.hostname}}{% if c.port %}:{% /if %}{{c.port}}/{{c.database}}<br>
- <b>Generated on:</b> {% now | date_format: "dd MMM yyyy 'at' HH:mm:ss" %} by {{c.version}}<br>
- {% if c.query %}<b>SQL query:</b> {{c.query}}{% /if %}
- <br>
-</p>
-<table id="table_results" class="data">
-<thead><tr>
-{% for column in columns %}<th>{{ column }}</th>{% /for %}
-</tr></thead>
+ <p>
+ {% if c.table %}<b>Table:</b> {{c.table}}<br>{% /if %}
+ <b>Connection:</b> {{c.username}}{% if c.username %}@{% /if %}{{c.hostname}}{% if c.port %}:{% /if %}{{c.port}}/{{c.database}}<br>
+ <b>Generated on:</b> {% now | date_format: "dd MMM yyyy 'at' HH:mm:ss" %} by {{c.version}}<br>
+ {% if c.query %}<b>SQL query:</b> {{c.query}}{% /if %}
+ <br>
+ </p>
+
+ <table id="table_results" class="data">
+ <thead>
+ <tr>
+ {% for column in columns %}<th>{{ column }}</th>{% /for %}
+ </tr>
+ </thead>
-<tbody>
-{% for row in rows %}
-<tr {% cycle 'class="odd" ' 'class="even" ' %}>
- {% for cell in row %}<td>{{ cell }}</td>{% /for %}
-</tr>
-{% /for %}
-</tbody>
+ <tbody>
+ {% for row in rows %}
+ <tr {% cycle 'class="odd" ' 'class="even" ' %}>
+ {% for cell in row %}<td>{{ cell }}</td>{% /for %}
+ </tr>
+ {% /for %}
+ </tbody>
</table>
-</body></html>
+</body>
+</html>