~hokiegeek/tw5-checklist

39a69fa600872d2678080a4d35c6aa6e5ac60789 — HokieGeek 1 year, 1 month ago 98c33d8 1.4.0
Added ability to link to an image when a "source" field is also provided
2 files changed, 13 insertions(+), 4 deletions(-)

M ShoppingList/item_view.tid
M plugin.info
M ShoppingList/item_view.tid => ShoppingList/item_view.tid +12 -3
@@ 1,4 1,4 @@
modified: 20190501003416000
modified: 20191028002304000
created: 20190501003416000
creator: hokiegeek
title: $:/plugins/hokiegeek/checklist/ShoppingList/Item/View


@@ 6,7 6,16 @@ tags: $:/tags/ViewTemplate
type: text/vnd.tiddlywiki

<$list filter="[all[current]is[tiddler]!is[system]tag{$:/plugins/hokiegeek/checklist/ShoppingList/config/Item/tag}]">
<$reveal type='nomatch' state='!!image' text=''>
  <$image source={{!!image}} width="auto" class="darkBorder" /><br/>
<$reveal type='nomatch' state='!!source' text=''>
    <$reveal type='nomatch' state='!!image' text=''>
        <a href={{!!source}}>
            <$image source={{!!image}} width="auto" class="darkBorder" /><br/>
        </a>
    </$reveal>
</$reveal>
<$reveal type='match' state='!!source' text=''>
    <$reveal type='nomatch' state='!!image' text=''>
        <$image source={{!!image}} width="auto" class="darkBorder" /><br/>
    </$reveal>
</$reveal>
</$list>

M plugin.info => plugin.info +1 -1
@@ 2,7 2,7 @@
    "title": "$:/plugins/hokiegeek/checklist",
    "description": "A bit of a template for creating various checklists",
    "author": "hokiegeek",
    "version": "1.3.0",
    "version": "1.4.0",
    "core-version": ">=5.1.17",
    "source": "https://gitlab.com/HokieGeek/tw5-checklist",
    "plugin-type": "plugin",