Upgrade diffDOM dependency

Features:

- Expose Diff object

Fixes:

- Reverse actions for modifyComment/Text
- Simplify diff on some text only diffs
- Simplify diff on single element removal
This commit is contained in:
Chris Hill-Scott
2016-09-01 11:07:00 +01:00
parent 8c8f321a11
commit b98b328d9b
2 changed files with 36 additions and 34 deletions

View File

@@ -2,37 +2,39 @@
{% from "components/big-number.html" import big_number %}
{% from "components/show-more.html" import show_more %}
{% if scheduled_jobs %}
<div class='dashboard-table'>
<h2 class="heading-medium">
In the next 24 hours
</h2>
{% call(item, row_number) list_table(
scheduled_jobs,
caption="In the next 24 hours",
caption_visible=False,
empty_message='Nothing to see here',
field_headings=[
'File',
'Messages to be sent'
],
field_headings_visible=True
) %}
{% call row_heading() %}
<div class="file-list">
<a class="file-list-filename" href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
<span class="file-list-hint">
Sending at {{ item.scheduled_for|format_time }}
</span>
</div>
<div class="ajax-block-container">
{% if scheduled_jobs %}
<div class='dashboard-table'>
<h2 class="heading-medium">
In the next 24 hours
</h2>
{% call(item, row_number) list_table(
scheduled_jobs,
caption="In the next 24 hours",
caption_visible=False,
empty_message='Nothing to see here',
field_headings=[
'File',
'Messages to be sent'
],
field_headings_visible=True
) %}
{% call row_heading() %}
<div class="file-list">
<a class="file-list-filename" href="{{ url_for('.view_job', service_id=current_service.id, job_id=item.id) }}">{{ item.original_file_name }}</a>
<span class="file-list-hint">
Sending at {{ item.scheduled_for|format_time }}
</span>
</div>
{% endcall %}
{% call field() %}
{{ big_number(
item.notification_count,
smallest=True
) }}
{% endcall %}
{% endcall %}
{% call field() %}
{{ big_number(
item.notification_count,
smallest=True
) }}
{% endcall %}
{% endcall %}
{{ show_more() }}
</div>
{% endif %}
{{ show_more() }}
</div>
{% endif %}
</div>

View File

@@ -20,7 +20,7 @@
"dependencies": {
"babel-core": "6.3.26",
"babel-preset-es2015": "6.3.13",
"diff-dom": "2.0.3",
"diff-dom": "2.1.0",
"govuk-elements-sass": "1.1.1",
"govuk_frontend_toolkit": "4.6.0",
"govuk_template_jinja": "https://github.com/alphagov/govuk_template/releases/download/v0.18.0/jinja_govuk_template-0.18.0.tgz",