Skip to content

Commit

Permalink
add lifts to index and remove some default ui
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepmunroe committed Feb 21, 2014
1 parent 5e11f6a commit 3dc5190
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
13 changes: 13 additions & 0 deletions app/scripts/controllers/lift.js
@@ -0,0 +1,13 @@
'use strict';

angular.module('fitrecordMeanApp')
.controller('LiftCtrl', function ($scope) {
$scope.lifts = [
{'name': 'Back Squat'},
{'name': 'Front Squat'},
{'name': 'Clean'},
{'name': 'Clean & Jerk'},
{'name': 'Deadlift'},
{'name': 'Snatch'}
];
});
1 change: 1 addition & 0 deletions app/views/index.html
Expand Up @@ -65,6 +65,7 @@
<script src="scripts/services/session.js"></script>
<script src="scripts/services/user.js"></script>
<script src="scripts/directives/mongooseError.js"></script>
<script src="scripts/controllers/lift.js"></script>
<!-- endbuild -->
</body>
</html>
15 changes: 8 additions & 7 deletions app/views/partials/main.html
@@ -1,12 +1,13 @@
<div ng-include="'partials/navbar'"></div>

<div class="jumbotron">
<h1>'Allo, 'Allo <span ng-show="currentUser">{{ currentUser.name }}</span>!</h1>
<p class="lead">
<img src="images/yeoman.png" alt="I'm Yeoman"><br>
Always a pleasure scaffolding your apps.
</p>
<p><a class="btn btn-lg btn-success" ng-href="#">Splendid!</a></p>
<h1>Hello <span ng-show="currentUser">{{ currentUser.name }}</span>!</h1>

<div ng-controller="LiftCtrl">
<ul>
<li ng-repeat="lift in lifts">
{{lift.name}}
</li>
</ul>
</div>

<div class="row marketing">
Expand Down

0 comments on commit 3dc5190

Please sign in to comment.