From 708917e8cd369ddcab37356448bb1cba680ff471 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Fri, 1 Jul 2011 16:10:47 +0100 Subject: [PATCH] Add more to the tool tip for the new html composite column subtype --- .../gui2/preferences/create_custom_column.py | 15 +++++++++++++++ .../gui2/preferences/create_custom_column.ui | 3 --- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/preferences/create_custom_column.py b/src/calibre/gui2/preferences/create_custom_column.py index 9238ab3039..b57447bba7 100644 --- a/src/calibre/gui2/preferences/create_custom_column.py +++ b/src/calibre/gui2/preferences/create_custom_column.py @@ -143,6 +143,21 @@ class CreateCustomColumn(QDialog, Ui_QCreateCustomColumn): all_colors = [unicode(s) for s in list(QColor.colorNames())] self.enum_colors_label.setToolTip('
' + ', '.join(all_colors) + '
') + + self.composite_contains_html.setToolTip('' + + _('If checked, this column will be displayed as HTML in ' + 'book details and the content server. This can be used to ' + 'construct links with the template language. For example, ' + 'the template ' + '
<big><b>{title}</b></big>' + '{series:| [|}{series_index:| [|]]}' + 'will create a field displaying the title in bold large ' + 'characters, along with the series, for example
<a href="http://www.beam-ebooks.de/ebook/{identifiers' + ':select(beam)}">Beam book</a>' + 'will generate a link to the book on the Beam ebooks site.') + + '') self.exec_() def shortcut_activated(self, url): diff --git a/src/calibre/gui2/preferences/create_custom_column.ui b/src/calibre/gui2/preferences/create_custom_column.ui index e6729e9657..54fae6a150 100644 --- a/src/calibre/gui2/preferences/create_custom_column.ui +++ b/src/calibre/gui2/preferences/create_custom_column.ui @@ -296,9 +296,6 @@ and end with <code>}</code> You can have text before and after the f