Skip to content
Browse files

Added a top navigation

  • Loading branch information...
1 parent f6c5048 commit 434b99edb499aa052360f6ae94d631a0ae6598b1 @phillipkregg committed
View
4 app/assets/javascripts/app/app.js
@@ -5,8 +5,8 @@
angular.module('contactapp', ['ngResource']).
config(['$routeProvider', function($routeProvider) {
$routeProvider.
- when('/contacts', {template: 'assets/app/partials/contact-list.html', controller: ContactListCtrl}).
- when('/contacts/new', {template: 'assets/app/partials/new-contact.html', controller: ContactListCtrl}).
+ when('/contacts', {template: 'assets/app/partials/contact-list.html', controller: ContactListCtrl}).
+ when('/contacts/new', {template: 'assets/app/partials/new-contact.html', controller: ContactListCtrl}).
when('/contacts/:contact_id', {template: 'assets/app/partials/contact-detail.html', controller: ContactDetailCtrl}).
otherwise({redirectTo: '/contacts'});
}]);
View
5 app/assets/javascripts/app/partials/contact-list.html.erb
@@ -1,7 +1,10 @@
<div class="container-fluid">
<div class="span10">
- <a href="/#/contacts/new" class="btn btn-large btn-primary" >Add New Contact</a>
+ <a href="/#/contacts/new" class="btn btn-large btn-primary" >
+ <i class="icon-plus-sign icon-white"></i>
+ Add New Contact
+ </a>
<!--Body content-->
View
4 app/views/home/index.html.erb
@@ -6,10 +6,10 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
- <a class="brand" href="#">Project name</a>
+ <a class="brand" href="#">Contact Management</a>
<div class="nav-collapse">
<ul class="nav">
- <li class="active"><a href="/#/contacts">Contacts List</a></li>
+ <li class="active"><a href="/">Contacts List</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>

0 comments on commit 434b99e

Please sign in to comment.
Something went wrong with that request. Please try again.