Skip to content

Commit 716948f

Browse files
authored
Merge pull request #41 from appirio-tech/dev
Dev to prod - create date and profile links
2 parents 266b4bb + 5866436 commit 716948f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/app/work/projects.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ <h2>Projects</h2>
119119
<th>Type</th>
120120
<th>Owner</th>
121121
<th>Copilot</th>
122+
<th data-type="date">Created Date</th>
122123
<th data-type="date">Submit Date</th>
123124
<th>Current Status</th>
124125
<th>Current Work Step</th>
@@ -137,6 +138,7 @@ <h2>Projects</h2>
137138
<td>{{proj.id}}</td>
138139
<td>{{proj.projectType }}</td>
139140
<td>
141+
<!-- link to private profiles -->
140142
<a ng-href="{{ proj.owner.handle | tcPrivateProfileLink }}">
141143
<!-- In case the owner's member object has not been found,
142144
we show his ID as the fallback. -->
@@ -145,6 +147,7 @@ <h2>Projects</h2>
145147
</a>
146148
</td>
147149
<td>
150+
<!-- link to private profiles -->
148151
<a data-ng-if="proj.copilotId && proj.copilotId !== 'unassigned'" ng-href="{{ proj.copilot.handle | tcPrivateProfileLink}}">
149152
<!-- In case the copilot's member object has not been
150153
found, we show his ID as the fallback. -->
@@ -153,6 +156,10 @@ <h2>Projects</h2>
153156
</a>
154157
{{proj.copilotId === 'unassigned' ? proj.copilotId : ''}}
155158
</td>
159+
<td>
160+
<!-- add 'created date' column -->
161+
{{ proj.createdAt | fmtDate: true }}
162+
</td>
156163
<td>
157164
<!-- display submitted date column
158165
don't supply `true` to fmtDate as second argument, if you want previous behavior

src/app/work/work.details.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
<dd>
1717
<dt>Owner</dt>
1818
<dd>
19-
<a data-ng-if="workObj.ownerId" ng-href="{{ workObj.ownerId | tcProfileLink}}">
19+
<!-- link to private profiles -->
20+
<a data-ng-if="workObj.ownerId" ng-href="{{ workObj.owner.handle | tcPrivateProfileLink}}">
2021
<!-- In case the owner's member object has not been found,
2122
we show his ID as the fallback. -->
2223
{{workObj.owner ? workObj.owner.handle : workObj.ownerId }}
@@ -28,7 +29,8 @@
2829
</dd>
2930
<dt>Copilot</dt>
3031
<dd>
31-
<a data-ng-if="workObj.copilotId && workObj.copilotId !== 'unassigned'" ng-href="{{ workObj.copilotId | tcProfileLink}}">
32+
<!-- link to private profiles -->
33+
<a data-ng-if="workObj.copilotId && workObj.copilotId !== 'unassigned'" ng-href="{{ workObj.copilot.handle | tcPrivateProfileLink}}">
3234
<!-- In case the owner's member object has not been found,
3335
we show his ID as the fallback. -->
3436
{{workObj.copilot ? workObj.copilot.handle : workObj.copilotId}}

0 commit comments

Comments
 (0)