Skip to content

Commit

Permalink
new object
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasFont3721 committed Mar 31, 2020
1 parent d266da3 commit 4dac67e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/developer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default Model.extend({
ownerProjects: DS.hasMany('project', {inverse: 'owner'}),
projects: DS.hasMany('project', {inverse: 'developers'}),
stories: DS.hasMany('story'),
follow: DS.hasMany('developer'),
fullName: computed('name', 'fname', function () {
return this.get('name')+" "+this.get('fname');
})
Expand Down
1 change: 1 addition & 0 deletions app/models/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export default Model.extend({
description: DS.attr(),
startDate: DS.attr('utc'),
endDate: DS.attr('utc'),
modificationDate: DS.attr('utc'),
stories: DS.hasMany('story'),
owner: DS.belongsTo('developer'),
developers: DS.hasMany('developer'),
Expand Down
3 changes: 3 additions & 0 deletions app/models/story.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default Model.extend({
tasks: DS.hasMany('task'),
step: DS.belongsTo('step'),
estimate: DS.attr('number'),
createDate: DS.attr('utc'),
endDate: DS.attr('utc'),
modificationDate: DS.attr('utc'),
ratioTasks: computed('[email protected]', function () {
let tasks = this.get('tasks');
var finished = 0;
Expand Down
5 changes: 5 additions & 0 deletions app/templates/projects.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
<h5>
{{project.description}}
</h5>
<div class="ui vertically fitted segment">
<p>
Vertically fitted segment
</p>
</div>
<div class="ui label">
<i class="icon folder"></i>
{{pluralize project.stories.length "No stories" "1 story" " stories"}}
Expand Down

0 comments on commit 4dac67e

Please sign in to comment.