mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-06 22:04:19 +00:00
Add bag and recipe favicons to dashboard
This commit is contained in:
parent
11ecaff7db
commit
f7914db019
@ -47,40 +47,42 @@ title: MultiWikiServer Administration
|
|||||||
\end createRecipeButton
|
\end createRecipeButton
|
||||||
|
|
||||||
<div class="mws-admin-container">
|
<div class="mws-admin-container">
|
||||||
<h1>Recipes</h1>
|
<h1>Recipes</h1>
|
||||||
<ul>
|
<ul>
|
||||||
<$list filter="[prefix[$:/state/multiwikiserver/recipes/]]">
|
<$list filter="[prefix[$:/state/multiwikiserver/recipes/]]">
|
||||||
<li>
|
<li>
|
||||||
<a href=`/wiki/${ [{!!recipe-name}encodeuricomponent[]] }$` rel="noopener noreferrer" target="_blank">
|
<a href=`/wiki/${ [{!!recipe-name}encodeuricomponent[]] }$` rel="noopener noreferrer" target="_blank">
|
||||||
<$text text={{!!recipe-name}}/>
|
<img src=`/wiki/${ [{!!recipe-name}encodeuricomponent[]] }$/recipes/${ [{!!recipe-name}encodeuricomponent[]] }$/tiddlers/%24%3A%2Ffavicon.ico` class="mws-favicon"/>
|
||||||
</a>
|
<$text text={{!!recipe-name}}/>
|
||||||
<ol>
|
</a>
|
||||||
<$list filter="[list<currentTiddler>]">
|
<ol>
|
||||||
<li>
|
<$list filter="[list<currentTiddler>]">
|
||||||
<$text text=<<currentTiddler>>/>
|
<li>
|
||||||
</li>
|
<$text text=<<currentTiddler>>/>
|
||||||
</$list>
|
</li>
|
||||||
</ol>
|
</$list>
|
||||||
</li>
|
</ol>
|
||||||
</$list>
|
</li>
|
||||||
</ul>
|
</$list>
|
||||||
<div>
|
</ul>
|
||||||
<<createRecipeButton>>
|
<div>
|
||||||
|
<<createRecipeButton>>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
Higher numbered bags take priority if a tiddler with the same title is in more than one bag
|
||||||
|
</div>
|
||||||
|
<h1>Bags</h1>
|
||||||
|
<ul>
|
||||||
|
<$list filter="[prefix[$:/state/multiwikiserver/bags/]]">
|
||||||
|
<li>
|
||||||
|
<a href=`/wiki/${ [{!!bag-name}encodeuricomponent[]] }$/bags/${ [{!!bag-name}encodeuricomponent[]] }$` rel="noopener noreferrer" target="_blank">
|
||||||
|
<img src=`/wiki/${ [{!!bag-name}encodeuricomponent[]] }$/bags/${ [{!!bag-name}encodeuricomponent[]] }$/tiddlers/%24%3A%2Ffavicon.ico` class="mws-favicon"/>
|
||||||
|
<$text text={{!!bag-name}}/>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</$list>
|
||||||
|
</ul>
|
||||||
|
<div>
|
||||||
|
<<createBagButton>>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
Higher numbered bags take priority if a tiddler with the same title is in more than one bag
|
|
||||||
</div>
|
|
||||||
<h1>Bags</h1>
|
|
||||||
<ul>
|
|
||||||
<$list filter="[prefix[$:/state/multiwikiserver/bags/]]">
|
|
||||||
<li>
|
|
||||||
<a href=`/wiki/${ [{!!bag-name}encodeuricomponent[]] }$/bags/${ [{!!bag-name}encodeuricomponent[]] }$` rel="noopener noreferrer" target="_blank">
|
|
||||||
<$text text={{!!bag-name}}/>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</$list>
|
|
||||||
</ul>
|
|
||||||
<div>
|
|
||||||
<<createBagButton>>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
@ -10,3 +10,8 @@ Styles specific to the full screen layout
|
|||||||
.mws-admin-layout {
|
.mws-admin-layout {
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mws-favicon {
|
||||||
|
max-width: 2em;
|
||||||
|
max-height: 2em;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user