Skip to content

Commit

Permalink
Merge pull request #30 from mollyfish/bugfix
Browse files Browse the repository at this point in the history
Fix filename typo in post_detail.html
  • Loading branch information
Zachary Gordon committed Oct 9, 2015
2 parents c93cbbc + bf99c99 commit 4ced0da
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion public/views/post/post_form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form class="post-form" ng-submit="vm.save()" ng-controller="DateCtrl">
<input type="text" ng-model="vm.post.title" placeholder="Title" />
<input type="text" ng-model="vm.post.author" placeholder="Author" />
<input id="date-birth" class="form-control" type="date" ng-model="vm.post.date">
<input class="form-control" type="date" ng-model="vm.post.date">
<textarea ng-model="vm.post.content" form="post-form" rows="15"></textarea>
<input type="number" ng-model="vm.post.comments" placeholder="how many comments" />
<button type="submit" name="Submit" class="btn btn__text btn--light">Submit</button>
Expand Down
3 changes: 2 additions & 1 deletion src/app/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('angular');
require('angular-route');

(function () {
"use strict";
Expand Down Expand Up @@ -33,5 +34,5 @@ require('angular');
]);
}());

require('angular-route');

require('./index.js');
10 changes: 10 additions & 0 deletions src/app/post/post_detail.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<article class="post-detail">
<h1>{{vm.post.title}}</h1>
<ul class="post-data">
<li>By {{vm.post.author}}</li>
<li>{{vm.post.date | date: 'MMM dd, yyyy'}}</li>
<li>{{vm.post.comments}} comments</li>
</ul>
<p>{{vm.post.content}}</p>
<a class="btn btn__text btn--light" href="#/posts/{{vm.post._id}}/edit">edit this post</a>
</article>
2 changes: 1 addition & 1 deletion src/app/post/post_form.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<form class="post-form" ng-submit="vm.save()" ng-controller="DateCtrl">
<input type="text" ng-model="vm.post.title" placeholder="Title" />
<input type="text" ng-model="vm.post.author" placeholder="Author" />
<input id="date-birth" class="form-control" type="date" ng-model="vm.post.date">
<input class="form-control" type="date" ng-model="vm.post.date">
<textarea ng-model="vm.post.content" form="post-form" rows="15"></textarea>
<input type="number" ng-model="vm.post.comments" placeholder="how many comments" />
<button type="submit" name="Submit" class="btn btn__text btn--light">Submit</button>
Expand Down

0 comments on commit 4ced0da

Please sign in to comment.