mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +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:
parent
d1e1806845
commit
54ffb9e6cc
@ -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="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="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>
|
<$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">
|
<$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>
|
<$transclude title="$:/core/ui/TagTemplate"/> <small class="tw-menu-list-count"><$count filter="[is[current]tagging[]]"/></small>
|
||||||
</$list>
|
</$list>
|
||||||
</$reveal>
|
----
|
||||||
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="untaggedTab" qualifyTiddlerTitles="yes">
|
{{$:/core/ui/UntaggedTemplate}} <small class="tw-menu-list-count"><$count filter="[untagged[]!is[system]] -[tags[]]"/></small>
|
||||||
<$list filter="[untagged[]!is[system]] -[tags[]] +[sort[title]]" itemClass="tw-menu-list-item"/>
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
<$reveal type="match" state="$:/state/moreSideBarTabSet" text="missingTab" qualifyTiddlerTitles="yes">
|
<$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"/>
|
<$list filter="[is[missing]sort[title]]" itemClass="tw-menu-list-item" template="$:/core/ui/MissingTemplate"/>
|
||||||
|
8
core/ui/UntaggedTemplate.tid
Normal file
8
core/ui/UntaggedTemplate.tid
Normal 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>
|
@ -289,6 +289,10 @@ a.tw-tiddlylink-external {
|
|||||||
<<border-radius 8px>>
|
<<border-radius 8px>>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tw-untagged-label {
|
||||||
|
background-color: #999;
|
||||||
|
}
|
||||||
|
|
||||||
.tw-tag-label svg {
|
.tw-tag-label svg {
|
||||||
height: 1em;
|
height: 1em;
|
||||||
width: 1em;
|
width: 1em;
|
||||||
|
Loading…
Reference in New Issue
Block a user