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

View File

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