Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Show mobile nav by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjasonweaver committed Oct 20, 2013
1 parent 0773d24 commit 4f4d133
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/views/includes/foot.jade
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ script(type='text/javascript', src='/lib/angular-resource/angular-resource.js')

//Angular UI
script(type='text/javascript', src='/lib/angular-bootstrap/ui-bootstrap-tpls.js')
script(type='text/javascript', src='/lib/angular-bootstrap/ui-bootstrap.js')
script(type='text/javascript', src='/lib/angular-ui-utils/modules/route/route.js')

//Application Init
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/default.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
html(lang='en', xmlns='http://www.w3.org/1999/xhtml', xmlns:fb='https://www.facebook.com/2008/fbml', itemscope='itemscope', itemtype='http://schema.org/Product')
include ../includes/head
body
.navbar.navbar-inverse.navbar-fixed-top(data-ng-include="'views/header.html'", data-role="navigation")
.navbar.navbar-inverse(data-ng-include="'views/header.html'", data-role="navigation")
section.content
section.container
block content
Expand Down
2 changes: 2 additions & 0 deletions public/js/controllers/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ angular.module('mean.system').controller('HeaderController', ['$scope', 'Global'
"title": "Create New Article",
"link": "articles/create"
}];

$scope.isCollapsed = false;
}]);
6 changes: 3 additions & 3 deletions public/views/header.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="container" data-ng-controller="HeaderController">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<!-- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</button> -->
<a class="navbar-brand" href="/">MEAN - A Modern Stack</a>
</div>
<div class="navbar-collapse collapse">
<div class="navbar-collapse collapse in">
<ul class="nav navbar-nav">
<li data-ng-repeat="item in menu" data-ng-show="global.user" ui-route="/{{item.link}}" ng-class="{active: $uiRoute}">
<a href="#!/{{item.link}}">{{item.title}}</a>
Expand Down

0 comments on commit 4f4d133

Please sign in to comment.