1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00

Improve edit info banner for shadow tiddlers

Add the name of the plugin that contains the shadow tiddler
This commit is contained in:
Jermolene 2015-11-05 12:30:42 +00:00
parent d59d9238f7
commit d0ca776edb
2 changed files with 21 additions and 2 deletions

View File

@ -13,8 +13,8 @@ Fields/Add/Prompt: Add a new field:
Fields/Add/Value/Placeholder: field value Fields/Add/Value/Placeholder: field value
Fields/Add/Dropdown/System: System fields Fields/Add/Dropdown/System: System fields
Fields/Add/Dropdown/User: User fields Fields/Add/Dropdown/User: User fields
Shadow/Warning: This is a shadow tiddler. Any changes will override the default version Shadow/Warning: This is a shadow tiddler. Any changes you make will override the default version from the plugin <<pluginLink>>
Shadow/OverriddenWarning: This is a modified shadow tiddler. You can revert to the default version by deleting this tiddler Shadow/OverriddenWarning: This is a modified shadow tiddler. You can revert to the default version in the plugin <<pluginLink>> by deleting this tiddler
Tags/Add/Button: add Tags/Add/Button: add
Tags/Add/Placeholder: tag name Tags/Add/Placeholder: tag name
Tags/Dropdown/Caption: tag list Tags/Dropdown/Caption: tag list

View File

@ -2,18 +2,37 @@ title: $:/core/ui/EditTemplate/shadow
tags: $:/tags/EditTemplate tags: $:/tags/EditTemplate
\define lingo-base() $:/language/EditTemplate/Shadow/ \define lingo-base() $:/language/EditTemplate/Shadow/
\define pluginLinkBody()
<$link to="""$(pluginTitle)$""">
<$text text="""$(pluginTitle)$"""/>
</$link>
\end
<$list filter="[all[current]get[draft.of]is[shadow]!is[tiddler]]"> <$list filter="[all[current]get[draft.of]is[shadow]!is[tiddler]]">
<$list filter="[all[current]shadowsource[]]" variable="pluginTitle">
<$set name="pluginLink" value=<<pluginLinkBody>>>
<div class="tc-message-box"> <div class="tc-message-box">
<<lingo Warning>> <<lingo Warning>>
</div> </div>
</$set>
</$list>
</$list> </$list>
<$list filter="[all[current]get[draft.of]is[shadow]is[tiddler]]"> <$list filter="[all[current]get[draft.of]is[shadow]is[tiddler]]">
<$list filter="[all[current]shadowsource[]]" variable="pluginTitle">
<$set name="pluginLink" value=<<pluginLinkBody>>>
<div class="tc-message-box"> <div class="tc-message-box">
<<lingo OverriddenWarning>> <<lingo OverriddenWarning>>
</div> </div>
</$list> </$list>
</$list>
</$list>