1
0
mirror of /repos/Prototyper.git synced 2026-02-27 16:12:00 +01:00

added icons to navigation

This commit is contained in:
Aiko Mastboom
2013-04-28 13:07:31 +02:00
parent 857dc16cda
commit 4fa53fcd01
2 changed files with 26 additions and 5 deletions

View File

@@ -76,10 +76,13 @@
<script type="text/html" id="links_nav_sub">
<li data-bind="css: { 'dropdown-submenu': $data.hasOwnProperty('links')}">
<!-- ko ifnot: $data.hasOwnProperty('links') -->
<a href="#" data-bind="attr: { href: $data.url(), title: $data.title() }, click: $root._openLink, text: $data.title()"></a>
<a href="#" data-bind="attr: { href: $data.url(), title: $data.title() }, click: $root._openLink">
<span data-bind="attr: { class: $data.icon_class && $data.icon_class() || 'icon-eye-open' }"></span>
<span data-bind="text: $data.title()"></span>
</a>
<!-- /ko --><!-- ko if: $data.hasOwnProperty('links') -->
<a href="#" data-bind="text: $data.title()"></a>
<ul data-bind="attr: { 'class': 'dropdown-menu' }, template: {name: 'links_nav_sub', foreach: links }"></ul>
<ul class="dropdown-menu" data-bind="template: {name: 'links_nav_sub', foreach: links }"></ul>
<!-- /ko -->
</li>
</script>