32 lines
1 KiB
Text
32 lines
1 KiB
Text
- if @outlisted_articles.any?
|
|
%h2= t '.outlist.title'
|
|
%p
|
|
= t('.outlist.body').html_safe
|
|
%ul
|
|
- for article in @outlisted_articles
|
|
%li
|
|
= hidden_field_tag "outlisted_articles[#{article.id}]", '1'
|
|
= article.name
|
|
- if article.in_open_order
|
|
.alert= t '.outlist.alert_used', article: article.name
|
|
%hr/
|
|
|
|
- if @updated_article_pairs.any?
|
|
%h2= t '.update.title'
|
|
%p
|
|
%i
|
|
= t '.update.update_msg', count: @updated_article_pairs.size
|
|
= t '.update.body'
|
|
= render 'sync_table', articles: @updated_article_pairs, field: 'articles', hidden_fields: %w(shared_updated_on unit_symbol)
|
|
%hr/
|
|
|
|
- if @new_articles.any?
|
|
%h2= t '.upnew.title'
|
|
%p
|
|
%i= t '.upnew.body_count', count: @new_articles.length
|
|
= render 'sync_table', articles: @new_articles, field: 'new_articles', hidden_fields: %w(shared_updated_on order_number availability unit_symbol)
|
|
%hr/
|
|
|
|
- if ignored_article_count > 0
|
|
%p
|
|
%i= t '.outlist.body_ignored', count: ignored_article_count
|