Skip to content

Commit

Permalink
UI changes
Browse files Browse the repository at this point in the history
Updated the UI to make it more user-friendly.
  • Loading branch information
dhvander committed Sep 11, 2024
1 parent 9e6776b commit fba6e57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2>Full event history</h2>
<tr>
<th scope="col">{% trans 'Date/time' %}</th>
<th scope="col">{% trans 'User' %}</th>
<th scope="col">{% trans 'Change fields' %}</th>
<th scope="col">{% trans 'Changed Fields' %}</th>
</tr>
</thead>
<tbody>
Expand All @@ -47,7 +47,7 @@ <h2>Full event history</h2>
{% endif %}
</td>
<td>
<i>{{ action | changed_fields }}</i>
{{ action | changed_fields }}
</td>
</tr>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
</style>

<h2>{% blocktrans %} Status change history{% endblocktrans %}</h2>
<h2>Status change history</h2>
<table id="change-history-summary" class="table table-bordered table-striped full_width">
<thead>
<tr>
Expand Down Expand Up @@ -65,7 +65,7 @@ <h2>Full event history</h2>
<tr>
<th scope="col">{% trans 'Date/time' %}</th>
<th scope="col">{% trans 'User' %}</th>
<th scope="col">{% trans 'Change fields' %}</th>
<th scope="col">{% trans 'Changed Fields' %}</th>
</tr>
</thead>
<tbody>
Expand Down
4 changes: 2 additions & 2 deletions request_a_govuk_domain/request/templatetags/admin_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def changed_fields(obj):
if obj.prev_record:
delta = obj.diff_against(obj.prev_record)
changes = list(filter(lambda x: x != "last_updated_by", delta.changed_fields))
return changes if changes else "--"
return "-"
return ", ".join(changes) if changes else "No Changes"
return "Initial Data"


@register.filter
Expand Down

0 comments on commit fba6e57

Please sign in to comment.