diff options
| -rw-r--r-- | app/views/line_referentials/show.html.slim | 18 | ||||
| -rw-r--r-- | app/views/stop_area_referentials/show.html.slim | 20 |
2 files changed, 21 insertions, 17 deletions
diff --git a/app/views/line_referentials/show.html.slim b/app/views/line_referentials/show.html.slim index 793acc7bb..152c919a8 100644 --- a/app/views/line_referentials/show.html.slim +++ b/app/views/line_referentials/show.html.slim @@ -25,14 +25,16 @@ h3 Historique des synchronisations ul.list-group width="75%" - - @line_referential.line_referential_syncs.last.line_referential_sync_messages.last.tap do |log| - li - = log.criticity - br - = log.created_at - br - = t("line_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!) - hr + - unless @line_referential.last_sync.line_referential_sync_messages.empty? + - @line_referential.last_sync.line_referential_sync_messages.last.tap do |log| + li + = log.criticity + br + = log.created_at + br + = t("line_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!) + hr + end end - content_for :sidebar do diff --git a/app/views/stop_area_referentials/show.html.slim b/app/views/stop_area_referentials/show.html.slim index 44ed6e4b2..30c7ddd62 100644 --- a/app/views/stop_area_referentials/show.html.slim +++ b/app/views/stop_area_referentials/show.html.slim @@ -13,16 +13,18 @@ h3 Historique des synchronisations ul.list-group width="75%" - - if @stop_area_referential.last_sync.stop_area_referential_sync_messages.empty? - - @stop_area_referential.last_sync.stop_area_referential_sync_messages.last.tap do |log| - li - = log.criticity - br - = log.created_at - br - = t("stop_area_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!) - hr + - unless @stop_area_referential.last_sync.stop_area_referential_sync_messages.empty? + - @stop_area_referential.last_sync.stop_area_referential_sync_messages.last.tap do |log| + li + = log.criticity + br + = log.created_at + br + = t("stop_area_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!) + hr + end end + - content_for :sidebar do ul.actions li = link_to t('stop_area_referentials.actions.sync'), sync_stop_area_referential_path(@stop_area_referential), class: 'sync', method: :post |
