mirror of
/repos/Prototyper.git
synced 2025-12-30 06:31:32 +01:00
added icons to navigation
This commit is contained in:
parent
857dc16cda
commit
4fa53fcd01
@ -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>
|
||||
|
||||
@ -8,10 +8,15 @@
|
||||
"url": "http://github.com/aikomastboom/Prototyper",
|
||||
"icon_class": "icon-home"
|
||||
},
|
||||
{
|
||||
"title": "Index",
|
||||
"url": "/",
|
||||
"icon_class": "icon-home"
|
||||
},
|
||||
{
|
||||
"title": "Editor",
|
||||
"url": "/page/app/main.index.html",
|
||||
"icon_class": "icon-home"
|
||||
"icon_class": "icon-pencil"
|
||||
},
|
||||
{
|
||||
"title": "Import index",
|
||||
@ -34,6 +39,11 @@
|
||||
{
|
||||
"title": "Bootstrap",
|
||||
"links": [
|
||||
{
|
||||
"title": "Homepage",
|
||||
"url": "http://twitter.github.io/bootstrap/",
|
||||
"icon_class": "icon-home"
|
||||
},
|
||||
{
|
||||
"title": "Button Generator",
|
||||
"url": "http://www.plugolabs.com/twitter-bootstrap-button-generator/"
|
||||
@ -123,6 +133,10 @@
|
||||
{
|
||||
"title": "MongoDB",
|
||||
"links": [
|
||||
{
|
||||
"title": "MongoDB Manual",
|
||||
"url": "http://docs.mongodb.org/manual/contents/"
|
||||
},
|
||||
{
|
||||
"title": "MongoDB Node.JS Driver",
|
||||
"url": "http://mongodb.github.io/node-mongodb-native/contents.html"
|
||||
@ -137,11 +151,15 @@
|
||||
"title": "Underscore",
|
||||
"url": "http://underscorejs.org/",
|
||||
"icon_class": "icon-home"
|
||||
},
|
||||
{
|
||||
"title": "MarkdownJS",
|
||||
"url": "https://github.com/evilstreak/markdown-js",
|
||||
"icon_class": "icon-home"
|
||||
}
|
||||
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user