feat: functioning category dropdown in recent/unread/etc without js (#483)
* 10.1.0 * feat: WIP nojs category dropdown in recent * feat: allowing new topic button to be clicked without js It now opens a category dropdown which then sends user to the discrete composer page. WARNING: Does not work on tag.tpl. Needs core update to send categories data through... * fix: removed unneeded data-toggle attributemain
parent
d54c265fd5
commit
69f4248f72
@ -0,0 +1,15 @@
|
||||
<noscript><div class="dropdown" component="category-selector"></noscript>
|
||||
<label component="category/post" for="category-dropdown-check" class="btn btn-primary" id="new_topic">
|
||||
[[category:new_topic_button]]
|
||||
</label>
|
||||
<noscript>
|
||||
<input type="checkbox" class="hidden" id="category-dropdown-check" aria-hidden="true">
|
||||
<ul component="category/list" class="dropdown-menu category-dropdown-menu" role="menu">
|
||||
{{{each categories}}}
|
||||
<li role="presentation" class="category {{{if categories.disabledClass}}}disabled{{{end}}}">
|
||||
<a role="menu-item" href="{config.relative_path}/compose?cid={categories.cid}">{categories.level}<span component="category-markup">{{{if categories.icon}}}<span class="fa-stack" style="{function.generateCategoryBackground}"><i style="color: {categories.color};" class="fa fa-stack-1x fa-fw {categories.icon}"></i></span>{{{end}}} {categories.name}</span></a>
|
||||
</li>
|
||||
{{{end}}}
|
||||
</ul>
|
||||
</div>
|
||||
</noscript>
|
Loading…
Reference in New Issue