Skip to content

Commit

Permalink
Merged in CHOUETTE-3233-remove-import-resources-controller (pull requ…
Browse files Browse the repository at this point in the history
…est #1523)

CHOUETTE-3233 Remove ImportResourcesController

Approved-by: Luc Donnet
  • Loading branch information
albanpeignier authored and Luc Donnet committed Nov 30, 2023
2 parents 83d5f7a + f97c81d commit 7ca8958
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 220 deletions.
55 changes: 0 additions & 55 deletions app/controllers/import_resources_controller.rb

This file was deleted.

12 changes: 0 additions & 12 deletions app/decorators/import_resources_decorator.rb

This file was deleted.

50 changes: 0 additions & 50 deletions app/views/import_resources/index.html.slim

This file was deleted.

52 changes: 0 additions & 52 deletions app/views/import_resources/show.html.slim

This file was deleted.

16 changes: 2 additions & 14 deletions config/locales/import_resources.en.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
en:
import:
resources: &resources
index:
title: "NeTEx conformity"
table_state: "%{lines_imported} line(s) imported on %{lines_in_zipfile} presents in zip file"
metrics: "%{error_count} errors, %{warning_count} warnings"
import_resources:
<<: *resources
index:
metrics: "%{error_count} errors, %{warning_count} warnings"
activerecord:
models:
import_resource:
zero: "netex conformity"
one: "netex conformity"
other: "netex conformities"
attributes:
import/resource:
name: "Filename"
status: "Status"
resource_type: Resource Type
number_of_resources: Number of resources
21 changes: 2 additions & 19 deletions config/locales/import_resources.fr.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
fr:
import:
resources: &resources
table: &table
table_state: "%{lines_imported} ligne(s) importée(s) sur %{lines_in_zipfile} présente(s) dans l'archive"
index:
<<: *table
title: "Rapport de conformité NeTEx"
metrics: "%{error_count} errors, %{warning_count} warnings"
show:
<<: *table
title: Rapport d'import
import_resources:
<<: *resources
index:
metrics: "%{error_count} errors, %{warning_count} warnings"
activerecord:
models:
import_resource:
zero: "rapport de conformité Netex"
one: "rapport de conformité Netex"
other: "rapports de conformité Netex"
attributes:
import/resource:
name: "Fichier"
status: "État"
number_of_resources: Nombre de ressources
resource_type: Type de ressource
18 changes: 0 additions & 18 deletions spec/controllers/import_resources_controller_spec.rb

This file was deleted.

0 comments on commit 7ca8958

Please sign in to comment.