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

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Aug 3, 2013
2 parents fb38c34 + 4044fdb commit 8009fbe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ See the [config](config/) folder and especially the [config.js](config/config.js
* Visit us at [Linnovate.net](http://www.linnovate.net/).
* Contact amos on any issue via [E-Mail](mailto:mail@amoshaviv.com), [Facebook](http://www.facebook.com/amoshaviv), or [Twitter](http://www.twitter.com/amoshaviv).

## Credits
Inspired by the great work of [Madhusudhan Srinivasa](https://github.com/madhums/)

## License

(The MIT License)
Expand Down
6 changes: 3 additions & 3 deletions app/models/article.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
var mongoose = require('mongoose')
, env = process.env.NODE_ENV || 'development'
, config = require('../../config/config')[env]
, Schema = mongoose.Schema
, Schema = mongoose.Schema;

/**
* Article Schema
Expand All @@ -26,6 +26,6 @@ ArticleSchema.statics = {
load: function (id, cb) {
this.findOne({ _id : id }).populate('user').exec(cb);
}
}
};

mongoose.model('Article', ArticleSchema)
mongoose.model('Article', ArticleSchema);
2 changes: 1 addition & 1 deletion public/views/articles/list.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<section data-ng-controller="ArticlesController" data-ng-init="find()">
<ul>
<ul class="unstyled">
<li data-ng-repeat="article in articles">
<span>{{article.created | date:'medium'}}</span> /
<span>{{article.user.name}}</span>
Expand Down

0 comments on commit 8009fbe

Please sign in to comment.