mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-08 19:09:57 +00:00
ae8ef305fa
By adding a `?fallback=url` parameter to tiddler requests
46 lines
1002 B
Plaintext
46 lines
1002 B
Plaintext
title: $:/plugins/tiddlywiki/multiwikiserver/templates/get-bag
|
|
|
|
! <img
|
|
src=`/bags/${ [<bag-name>encodeuricomponent[]] }$/tiddlers/%24%3A%2Ffavicon.ico?fallback=/.system/missing-favicon.png`
|
|
class="mws-favicon-small"
|
|
width="32px"
|
|
/> Bag <$text text={{{ [<bag-name>]}}}/>
|
|
|
|
<form
|
|
method="post"
|
|
action="tiddlers/"
|
|
enctype="multipart/form-data"
|
|
>
|
|
<div>
|
|
<label>
|
|
File to upload:
|
|
</label>
|
|
<input type="file" name="file-to-upload" accept="*/*" />
|
|
</div>
|
|
<div>
|
|
<label>
|
|
Tiddler title:
|
|
</label>
|
|
<input type="text" name="tiddler-field-title" />
|
|
</div>
|
|
<div>
|
|
<label>
|
|
Tiddler tags:
|
|
</label>
|
|
<input type="text" name="tiddler-field-tags" />
|
|
</div>
|
|
<div>
|
|
<input type="submit" value="Upload"/>
|
|
</div>
|
|
</form>
|
|
|
|
<ul>
|
|
<$list filter="[<bag-titles>jsonget[]sort[]]">
|
|
<li>
|
|
<a href=`/bags/${ [<bag-name>encodeuricomponent[]] }$/tiddlers/${ [<currentTiddler>encodeuricomponent[]] }$` rel="noopener noreferrer" target="_blank">
|
|
<$text text=<<currentTiddler>>/>
|
|
</a>
|
|
</li>
|
|
</$list>
|
|
</ul>
|