category-selector-right, use selector on unread
parent
91faefeca9
commit
a8340d0d91
@ -0,0 +1,17 @@
|
|||||||
|
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
||||||
|
<span component="category-selector-selected">{{{ if selectedCategory }}}<span class="fa-stack" style="{function.generateCategoryBackground, selectedCategory}"><i class="fa fa-fw fa-stack-1x {selectedCategory.icon}" style="color: {selectedCategory.color};"></i></span> {selectedCategory.name}{{{ else }}}
|
||||||
|
{{{ if selectCategoryLabel }}}{selectCategoryLabel}{{{ else }}}[[topic:thread_tools.select_category]]{{{ end }}}{{{ end }}}</span> <span class="caret"></span>
|
||||||
|
</button>
|
||||||
|
<div component="category-selector-search" class="hidden">
|
||||||
|
<input type="text" class="form-control" autocomplete="off">
|
||||||
|
</div>
|
||||||
|
<ul component="category/list" class="dropdown-menu category-dropdown-menu {{{if pullRight}}}dropdown-menu-right{{{end}}}" role="menu">
|
||||||
|
<li component="category/no-matches" role="presentation" class="category hidden">
|
||||||
|
<a role="menu-item">[[search:no-matches]]</a>
|
||||||
|
</li>
|
||||||
|
{{{each categoryItems}}}
|
||||||
|
<li role="presentation" class="category {{{ if ../disabledClass }}}disabled {{{ end }}}" data-cid="{../cid}" data-name="{../name}" data-parent-cid="{../parentCid}">
|
||||||
|
<a role="menu-item">{../level}<span component="category-markup" style="{{{ if ../match }}}font-weight: bold;{{{end}}}">{{{ if ./icon }}}<span class="fa-stack" style="{function.generateCategoryBackground}"><i style="color: {../color};" class="fa fa-stack-1x fa-fw {../icon}"></i></span>{{{ end }}} {../name}</span></a>
|
||||||
|
</li>
|
||||||
|
{{{ end }}}
|
||||||
|
</ul>
|
@ -0,0 +1,3 @@
|
|||||||
|
<div component="category-selector" class="btn-group bottom-sheet pull-right">
|
||||||
|
<!-- IMPORT partials/category-selector-content.tpl -->
|
||||||
|
</div>
|
@ -1,19 +1,3 @@
|
|||||||
<div component="category-selector" class="btn-group {{{ if pullRight }}}pull-right{{{ end }}}">
|
<div component="category-selector" class="btn-group bottom-sheet">
|
||||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
|
<!-- IMPORT partials/category-selector-content.tpl -->
|
||||||
<span component="category-selector-selected">{{{ if selectedCategory }}}<span class="fa-stack" style="{function.generateCategoryBackground, selectedCategory}"><i class="fa fa-fw fa-stack-1x {selectedCategory.icon}" style="color: {selectedCategory.color};"></i></span> {selectedCategory.name}{{{ else }}}
|
|
||||||
{{{ if selectCategoryLabel }}}{selectCategoryLabel}{{{ else }}}[[topic:thread_tools.select_category]]{{{ end }}}{{{ end }}}</span> <span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<div component="category-selector-search" class="hidden">
|
|
||||||
<input type="text" class="form-control" autocomplete="off">
|
|
||||||
</div>
|
|
||||||
<ul component="category/list" class="dropdown-menu category-dropdown-menu {{{if pullRight}}}dropdown-menu-right{{{end}}}" role="menu">
|
|
||||||
<li component="category/no-matches" role="presentation" class="category hidden">
|
|
||||||
<a role="menu-item">[[search:no-matches]]</a>
|
|
||||||
</li>
|
|
||||||
{{{each categoryItems}}}
|
|
||||||
<li role="presentation" class="category {{{ if ../disabledClass }}}disabled {{{ end }}}" data-cid="{../cid}" data-name="{../name}" data-parent-cid="{../parentCid}">
|
|
||||||
<a role="menu-item">{../level}<span component="category-markup" style="{{{ if ../match }}}font-weight: bold;{{{end}}}">{{{ if ./icon }}}<span class="fa-stack" style="{function.generateCategoryBackground}"><i style="color: {../color};" class="fa fa-stack-1x fa-fw {../icon}"></i></span>{{{ end }}} {../name}</span></a>
|
|
||||||
</li>
|
|
||||||
{{{ end }}}
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue