1
0
mirror of /repos/Prototyper.git synced 2025-12-30 06:31:32 +01:00

put README in a modal

This commit is contained in:
Aiko Mastboom 2013-04-28 23:34:41 +02:00
parent cb56c1b259
commit 6255f06770
2 changed files with 14 additions and 1 deletions

View File

@ -61,6 +61,10 @@
</head>
<body>
<!-- Modal -->
<div id="popup" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-body"></div>
</div>
<!-- @@template__app_main_body__context__app_main -->
<!-- @@import__app_main_body_ -->
<div id="header">
@ -81,10 +85,18 @@
<script type="text/html" id="links_nav_sub">
<li data-bind="css: { 'dropdown-submenu': $data.hasOwnProperty('links')}">
<!-- ko ifnot: $data.hasOwnProperty('links') -->
<!-- ko ifnot: $data.hasOwnProperty('modal') -->
<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() || $root.default_icon() }"></span>
<span data-bind="text: $data.title()"></span>
</a>
<!-- /ko --><!-- ko if: $data.hasOwnProperty('modal') -->
<a href="#" data-toggle="modal" data-bind="attr: { href: $data.url(), title: $data.title(), 'data-target': '#' + $data.modal() }">
<span data-bind="attr: { class: $data.icon_class && $data.icon_class() || $root.default_icon() }"></span>
<span data-bind="text: $data.title()"></span>
</a>
<!-- /ko -->
<!--<a data-toggle="modal" href="remote.html" data-target="#modal">click me</a>-->
<!-- /ko --><!-- ko if: $data.hasOwnProperty('links') -->
<a href="#" data-bind="text: $data.title()"></a>
<ul class="dropdown-menu" data-bind="template: {name: 'links_nav_sub', foreach: links }"></ul>

View File

@ -27,7 +27,8 @@
{
"title": "Readme",
"url": "/page/app/main.readme.md",
"icon_class": "icon-info-sign"
"icon_class": "icon-info-sign",
"modal": "popup"
}
]
},