First pass at upgrade mechanism

This commit is contained in:
Jermolene
2014-07-12 09:09:36 +01:00
parent f08f57c5d2
commit 1f6e16318a
11 changed files with 356 additions and 34 deletions
+10
View File
@@ -3,10 +3,20 @@ tags: $:/tags/ViewTemplate
<div class="body">
<$list filter="[all[current]has[plugin-type]] -[all[current]field:plugin-type[import]]">
This tiddler is a plugin
</$list>
<$list filter="[all[current]!has[plugin-type]]">
<$transclude>
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
</$transclude>
</$list>
</div>
+53
View File
@@ -0,0 +1,53 @@
title: $:/core/ui/ViewTemplate/import
tags: $:/tags/ViewTemplate
\define lingo-base() $:/language/Import/
\define messageField()
message-$(currentTiddler)$
\end
\define selectionField()
selection-$(currentTiddler)$
\end
<$list filter="[all[current]field:plugin-type[import]]">
<div class="tw-import">
<<lingo Listing/Hint>>
<table>
<tbody>
<tr>
<th>
<<lingo Listing/Select/Caption>>
</th>
<th>
<<lingo Listing/Title/Caption>>
</th>
<th>
<<lingo Listing/Status/Caption>>
</th>
</tr>
<$list filter="[all[current]plugintiddlers[]sort[title]]">
<tr>
<td>
<$checkbox tiddler=<<storyTiddler>> field=<<selectionField>> checked="checked" unchecked="unchecked" default="checked"/>
</td>
<td>
<$link to={{!!title}}>
<$view field="title"/>
</$link>
</td>
<td>
<$view tiddler=<<storyTiddler>> field=<<messageField>>/>
</td>
</tr>
</$list>
</tbody>
</table>
<$button message="tw-delete-tiddler" param=<<currentTiddler>>><<lingo Listing/Cancel/Caption>></$button>
<$button message="tw-perform-import" param=<<currentTiddler>>><<lingo Listing/Import/Caption>></$button>
</div>
</$list>