Skip to content

Commit

Permalink
adds created/updated by to the modal foorter refs #1574
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed Jul 20, 2018
1 parent fd1feb9 commit 2e73050
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions opal/templates/base_templates/form_modal_base.html
Expand Up @@ -5,6 +5,7 @@
{% include column.get_form_template %}
{% endblock form %}
</form>
{% include "partials/_item_created_updated_by.html" %}
{% endblock %}
{% block modal_save %}
<span ng-show="form">
Expand Down
16 changes: 16 additions & 0 deletions opal/templates/partials/_item_created_updated_by.html
@@ -0,0 +1,16 @@
<div ng-show="item.created" class="content-offset-20">
<p class="text-muted text-center">
<span ng-hide="item.updated">
<img class="text-avatar" avatar-for-user="[[ item.created_by_id ]]">
Created <span ng-show="item.created_by_id">by</span>
<span full-name-for-user="[[ item.created_by_id ]]"></span>
[[ item.created | shortDate]]
</span>
<span ng-show="item.updated">
<img class="text-avatar" avatar-for-user="[[ item.updated_by_id ]]">
Last updated <span ng-show="item.created_by_id">by</span>
<span full-name-for-user="[[ item.updated_by_id ]]"></span>
[[ item.updated | shortDate]]
</span>
</p>
</div>

0 comments on commit 2e73050

Please sign in to comment.