Skip to content

Commit

Permalink
adding many to many project managers relationship to phase
Browse files Browse the repository at this point in the history
  • Loading branch information
ArunaTebel committed Oct 5, 2019
1 parent d7d5dee commit 5680373
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ class HomeComponent extends Component {
redirectTo: '/phase/' + phase.id + '/estimates/'
});
};

// 8258007295
// Anuradhi Ineka Wickramasinghe
getPhaseInfoListItem(phase) {
let managersNames = _.map(phase.managers, (manager) => manager.full_name).join(', ');
return (
<ListGroup.Item key={phase.id}>
<div>
Expand All @@ -97,7 +99,7 @@ class HomeComponent extends Component {
</div>
<div>
<footer className="blockquote-footer">
From <cite>{phase.start_date}</cite> To <cite>{phase.end_date}.</cite> Manager: <cite>{phase.manager.full_name}</cite>
From <cite>{phase.start_date}</cite> To <cite>{phase.end_date}.</cite> Managers: <cite>{managersNames}</cite>
</footer>
</div>
<Badge variant="info">{phase.project.customer.name}</Badge>
Expand Down

0 comments on commit 5680373

Please sign in to comment.