aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorXinhui2016-10-11 12:04:46 +0200
committerXinhui2016-10-11 12:04:46 +0200
commit4655372a601bbdf90d352abe8fefed094b866d69 (patch)
tree6aebf15ad738bc26fb8a3f308a0d58f7b95c4861 /app/views
parent84fffe95839ebc80f99fa14c25e0646cafc11099 (diff)
downloadchouette-core-4655372a601bbdf90d352abe8fefed094b866d69.tar.bz2
Remove cancel sync link
Diffstat (limited to 'app/views')
-rw-r--r--app/views/line_referentials/show.html.slim2
-rw-r--r--app/views/stop_area_referentials/show.html.slim4
2 files changed, 1 insertions, 5 deletions
diff --git a/app/views/line_referentials/show.html.slim b/app/views/line_referentials/show.html.slim
index 0ad88ecc8..3073c3d5a 100644
--- a/app/views/line_referentials/show.html.slim
+++ b/app/views/line_referentials/show.html.slim
@@ -41,5 +41,3 @@
ul.actions
li = link_to t('line_referentials.actions.edit'), edit_line_referential_path(@line_referential), class: 'edit'
li = link_to t('line_referentials.actions.sync'), sync_line_referential_path(@line_referential), class: 'sync', method: :post
- - if @line_referential.last_sync && @line_referential.last_sync.can_be_canceled?
- li = link_to t('line_referentials.actions.cancel_sync'), cancel_sync_line_referential_path(@line_referential), class: 'cancel_sync', method: :post
diff --git a/app/views/stop_area_referentials/show.html.slim b/app/views/stop_area_referentials/show.html.slim
index e9fa17fa6..9cceed5e5 100644
--- a/app/views/stop_area_referentials/show.html.slim
+++ b/app/views/stop_area_referentials/show.html.slim
@@ -22,11 +22,9 @@
/ [:processing_time] unit conversion
- data = log.message_attributs.symbolize_keys!
- data[:processing_time] = distance_of_time_in_words(data[:processing_time].to_i)
-
+
= t("stop_area_referential_sync.message.#{log.message_key}", log.message_attributs.symbolize_keys!)
- 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
- - if @stop_area_referential.last_sync
- li = link_to t('stop_area_referentials.actions.cancel_sync'), cancel_sync_stop_area_referential_path(@stop_area_referential), class: 'cancel_sync', method: :post