Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/app/work/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ <h2>Projects</h2>
<th>Type</th>
<th>Owner</th>
<th>Copilot</th>
<th data-type="date">Created Date</th>
<th data-type="date">Submit Date</th>
<th>Current Status</th>
<th>Current Work Step</th>
Expand All @@ -137,6 +138,7 @@ <h2>Projects</h2>
<td>{{proj.id}}</td>
<td>{{proj.projectType }}</td>
<td>
<!-- link to private profiles -->
<a ng-href="{{ proj.owner.handle | tcPrivateProfileLink }}">
<!-- In case the owner's member object has not been found,
we show his ID as the fallback. -->
Expand All @@ -145,6 +147,7 @@ <h2>Projects</h2>
</a>
</td>
<td>
<!-- link to private profiles -->
<a data-ng-if="proj.copilotId && proj.copilotId !== 'unassigned'" ng-href="{{ proj.copilot.handle | tcPrivateProfileLink}}">
<!-- In case the copilot's member object has not been
found, we show his ID as the fallback. -->
Expand All @@ -153,6 +156,10 @@ <h2>Projects</h2>
</a>
{{proj.copilotId === 'unassigned' ? proj.copilotId : ''}}
</td>
<td>
<!-- add 'created date' column -->
{{ proj.createdAt | fmtDate: true }}
</td>
<td>
<!-- display submitted date column
don't supply `true` to fmtDate as second argument, if you want previous behavior
Expand Down
6 changes: 4 additions & 2 deletions src/app/work/work.details.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<dd>
<dt>Owner</dt>
<dd>
<a data-ng-if="workObj.ownerId" ng-href="{{ workObj.ownerId | tcProfileLink}}">
<!-- link to private profiles -->
<a data-ng-if="workObj.ownerId" ng-href="{{ workObj.owner.handle | tcPrivateProfileLink}}">
<!-- In case the owner's member object has not been found,
we show his ID as the fallback. -->
{{workObj.owner ? workObj.owner.handle : workObj.ownerId }}
Expand All @@ -28,7 +29,8 @@
</dd>
<dt>Copilot</dt>
<dd>
<a data-ng-if="workObj.copilotId && workObj.copilotId !== 'unassigned'" ng-href="{{ workObj.copilotId | tcProfileLink}}">
<!-- link to private profiles -->
<a data-ng-if="workObj.copilotId && workObj.copilotId !== 'unassigned'" ng-href="{{ workObj.copilot.handle | tcPrivateProfileLink}}">
<!-- In case the owner's member object has not been found,
we show his ID as the fallback. -->
{{workObj.copilot ? workObj.copilot.handle : workObj.copilotId}}
Expand Down