Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-include="'components/navbar/navbar.html'"></div>
<navbar></navbar>

<div class="container">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div(ng-include='"components/navbar/navbar.html"')
navbar
.container
.row
.col-sm-12
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-include="'components/navbar/navbar.html'"></div>
<navbar></navbar>

<div class="container">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div(ng-include='"components/navbar/navbar.html"')
navbar
.container
.row
.col-sm-12
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-include="'components/navbar/navbar.html'"></div>
<navbar></navbar>

<div class="container">
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div(ng-include='"components/navbar/navbar.html"')
navbar
.container
.row
.col-sm-12
Expand Down
2 changes: 1 addition & 1 deletion app/templates/client/app/admin(auth)/admin(html).html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-include="'components/navbar/navbar.html'"></div>
<navbar></navbar>

<div class="container">
<p>The delete user and user index api routes are restricted to users with the 'admin' role.</p>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/client/app/admin(auth)/admin(jade).jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div(ng-include='"components/navbar/navbar.html"')
navbar
.container
p
| The delete user and user index api routes are restricted to users with the 'admin' role.
Expand All @@ -8,4 +8,4 @@ div(ng-include='"components/navbar/navbar.html"')
br
span.text-muted {{user.email}}
a.trash(ng-click='delete(user)')
span.glyphicon.glyphicon-trash.pull-right
span.glyphicon.glyphicon-trash.pull-right
2 changes: 1 addition & 1 deletion app/templates/client/app/main/main(html).html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-include="'components/navbar/navbar.html'"></div>
<navbar></navbar>

<header class="hero-unit" id="banner">
<div class="container">
Expand Down
4 changes: 2 additions & 2 deletions app/templates/client/app/main/main(jade).jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
div(ng-include='"components/navbar/navbar.html"')
navbar

header#banner.hero-unit
.container
Expand Down Expand Up @@ -30,4 +30,4 @@ footer.footer
= ' | '
a(href='https://twitter.com/tyhenkel') @tyhenkel
= ' | '
a(href='https://github.com/DaftMonk/generator-angular-fullstack/issues?state=open') Issues
a(href='https://github.com/DaftMonk/generator-angular-fullstack/issues?state=open') Issues
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict'

angular.module '<%= scriptAppName %>'
.directive 'navbar', ->
templateUrl: 'components/navbar/navbar.html'
restrict: 'E'
controller: 'NavbarCtrl'
10 changes: 10 additions & 0 deletions app/templates/client/components/navbar/navbar.directive(js).js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

angular.module('<%= scriptAppName %>')
.directive('navbar', function () {
return {
templateUrl: 'components/navbar/navbar.html',
restrict: 'E',
controller: 'NavbarCtrl'
};
});
1 change: 1 addition & 0 deletions test/test-file-creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ describe('angular-fullstack generator', function () {
'client/assets/images/yeoman.png',
'client/components/navbar/navbar.' + markup,
'client/components/navbar/navbar.controller.' + script,
'client/components/navbar/navbar.directive.' + script,
'server/.jshintrc',
'server/.jshintrc-spec',
'server/app.js',
Expand Down