Skip to content

Commit

Permalink
a light weight change the keeps the sparklines but hides them for the…
Browse files Browse the repository at this point in the history
… time being and replaces them with 2 extra rows refs #700
  • Loading branch information
fredkingham committed Feb 22, 2019
1 parent 752af82 commit 98806cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion elcid/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def serialise_lab_tests(self, patient):

recent_dates = sorted(list(all_dates))
recent_dates.reverse()
recent_dates = recent_dates[:3]
recent_dates = recent_dates[:5]
obs_values = sorted(serialised_obvs, key=self.sort_observations)
result = dict(
obs_values=obs_values,
Expand Down
4 changes: 4 additions & 0 deletions elcid/templates/partials/lab_test_sparklines.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ <h2 class="text-center no-results">No results found</h2>
<th class="text-center hidden-xs" ng-repeat="date in data.recent_dates">
[[ date | shortDate ]]
</th>
{% comment %}
<th class="text-center">
3 week trend
</th>
{% endcomment %}
</tr>
</thead>
<tbody>
Expand All @@ -34,9 +36,11 @@ <h2 class="text-center no-results">No results found</h2>
<td class="text-center hidden-xs" ng-repeat="date in data.recent_dates">
[[ item.latest_results[date] ]]
</td>
{% comment %}
<td class="text-center">
<div spark-line="item.graph_values"></div>
</td>
{% endcomment %}
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 98806cd

Please sign in to comment.