make mobile nav customisable too

This commit is contained in:
Sacha Greif 2014-08-13 17:34:56 +09:00
parent c0e1d8e39c
commit 87ab07ecf3
4 changed files with 9 additions and 6 deletions

View file

@ -11,7 +11,7 @@
{{/if}} {{/if}}
{{#each navItems}} {{#each navItems}}
<li> <li>
{{> UI.dynamic template=this}} {{> UI.dynamic template=getTemplate}}
</li> </li>
{{/each}} {{/each}}
{{#if canPost}} {{#if canPost}}

View file

@ -2,6 +2,9 @@ Template[getTemplate('mobile_nav')].helpers({
navItems: function () { navItems: function () {
return navItems; return navItems;
}, },
getTemplate: function () {
return getTemplate(this);
},
canPost: function(){ canPost: function(){
return canPost(Meteor.user()); return canPost(Meteor.user());
}, },

View file

@ -1,4 +1,4 @@
<template name="category_item"> <template name="categoryItem">
<li> <li>
<form> <form>
<div class="control-group inline"> <div class="control-group inline">

View file

@ -70,8 +70,8 @@
}, },
"bootstrap3-datepicker": { "bootstrap3-datepicker": {
"git": "https://github.com/rajit/bootstrap3-datepicker.git", "git": "https://github.com/rajit/bootstrap3-datepicker.git",
"tag": "v0.2.1", "tag": "v1.3.0-1",
"commit": "442484eb1c8eb00c6b9e0e9c88accc934cf8f04a" "commit": "d28f9193f294890eb8d49f5f3b24e2f2a628e1fa"
}, },
"subs-manager": { "subs-manager": {
"git": "https://github.com/meteorhacks/subs-manager.git", "git": "https://github.com/meteorhacks/subs-manager.git",
@ -110,8 +110,8 @@
}, },
"telescope-newsletter": { "telescope-newsletter": {
"git": "https://github.com/TelescopeJS/telescope-newsletter.git", "git": "https://github.com/TelescopeJS/telescope-newsletter.git",
"tag": "v0.1.7", "tag": "v0.1.8",
"commit": "5f97c9cc3ed9d89c53a604a6fdf2ae07aa9f0f41" "commit": "dc8c72ee2879e95e511d836b923eebbe6e5d97b5"
}, },
"accounts-entry": { "accounts-entry": {
"git": "https://github.com/Differential/accounts-entry.git", "git": "https://github.com/Differential/accounts-entry.git",