1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Replace separate 'untagged' tab with new entry at the bottom of the 'tags' tab

An excellent idea by @tobibeer
This commit is contained in:
Jeremy Ruston 2013-09-22 21:34:22 +01:00
parent d1e1806845
commit 54ffb9e6cc
3 changed files with 14 additions and 5 deletions

View File

@ -8,8 +8,6 @@ title: $:/core/ui/MoreSideBar
<$button type="set" set="$:/state/moreSideBarTabSet" setTo="tagsTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Tags</$button>
<$button type="set" set="$:/state/moreSideBarTabSet" setTo="untaggedTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Untagged</$button>
<$button type="set" set="$:/state/moreSideBarTabSet" setTo="missingTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Missing</$button>
<$button type="set" set="$:/state/moreSideBarTabSet" setTo="draftsTab" qualifyTiddlerTitles="yes" selectedClass="tw-tab-selected">Drafts</$button>
@ -33,9 +31,8 @@ title: $:/core/ui/MoreSideBar
<$list filter="[tags[]sort[title]]" itemClass="tw-menu-list-item">
<$transclude title="$:/core/ui/TagTemplate"/> <small class="tw-menu-list-count"><$count filter="[is[current]tagging[]]"/></small>
</$list>
</$reveal>
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="untaggedTab" qualifyTiddlerTitles="yes">
<$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" itemClass="tw-menu-list-item"/>
----
{{$:/core/ui/UntaggedTemplate}} <small class="tw-menu-list-count"><$count filter="[untagged[]!is[system]] -[tags[]]"/></small>
</$reveal>
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="missingTab" qualifyTiddlerTitles="yes">
<$list filter="[is[missing]sort[title]]" itemClass="tw-menu-list-item" template="$:/core/ui/MissingTemplate"/>

View File

@ -0,0 +1,8 @@
title: $:/core/ui/UntaggedTemplate
<$button popup="$:/state/tagpopup" qualifyTiddlerTitles="yes" class="btn-invisible tw-untagged-label tw-tag-label">untagged</$button>
<$reveal state="$:/state/tagpopup" type="popup" position="below" qualifyTiddlerTitles="yes" ><div class="tw-drop-down">
<$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]">
<$view field="title" format="link" />
</$list>
</div></$reveal>

View File

@ -289,6 +289,10 @@ a.tw-tiddlylink-external {
<<border-radius 8px>>
}
.tw-untagged-label {
background-color: #999;
}
.tw-tag-label svg {
height: 1em;
width: 1em;