diff --git a/apps/transport/lib/db/resource.ex b/apps/transport/lib/db/resource.ex index 93cf5c4b9f..cbdc76bca0 100644 --- a/apps/transport/lib/db/resource.ex +++ b/apps/transport/lib/db/resource.ex @@ -90,9 +90,6 @@ defmodule DB.Resource do query |> where([resource: r], r.dataset_id == ^dataset_id) end - @spec endpoint() :: binary() - def endpoint, do: Application.fetch_env!(:transport, :gtfs_validator_url) <> "/validate" - def changeset(resource, params) do resource |> cast( diff --git a/apps/transport/lib/transport_web/templates/resource/_coordinates_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_coordinates_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_coordinates_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_coordinates_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_duplicate_stop_sequence_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_duplicate_stop_sequence_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_duplicate_stop_sequence_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_duplicate_stop_sequence_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_duplicate_stops_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_duplicate_stops_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_duplicate_stops_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_duplicate_stops_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_extra_file_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_extra_file_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_extra_file_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_extra_file_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_generic_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_generic_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_generic_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_generic_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_invalid_shape_id_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_invalid_shape_id_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_invalid_shape_id_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_invalid_shape_id_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_missing_file_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_missing_file_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_missing_file_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_missing_file_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_missing_id_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_missing_id_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_missing_id_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_missing_id_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_missing_name_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_missing_name_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_missing_name_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_missing_name_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_negative_stop_duration_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_negative_stop_duration_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_negative_stop_duration_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_negative_stop_duration_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_speed_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_speed_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_speed_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_speed_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_subfolder_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_subfolder_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_subfolder_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_subfolder_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_unloadable_model_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_unloadable_model_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_unloadable_model_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_unloadable_model_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_unused_shape_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_unused_shape_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_unused_shape_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_unused_shape_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/_unused_stop_issue.html.heex b/apps/transport/lib/transport_web/templates/resource/_gtfs_unused_stop_issue.html.heex similarity index 100% rename from apps/transport/lib/transport_web/templates/resource/_unused_stop_issue.html.heex rename to apps/transport/lib/transport_web/templates/resource/_gtfs_unused_stop_issue.html.heex diff --git a/apps/transport/lib/transport_web/templates/resource/gtfs_details.html.heex b/apps/transport/lib/transport_web/templates/resource/gtfs_details.html.heex index 0289ffe5de..b7099eaf3a 100644 --- a/apps/transport/lib/transport_web/templates/resource/gtfs_details.html.heex +++ b/apps/transport/lib/transport_web/templates/resource/gtfs_details.html.heex @@ -112,7 +112,7 @@ associated_netex = get_associated_netex(@related_files) %> path: &resource_path/4, action: :details ) %> - <%= render(template(@issues), issues: @issues || [], conn: @conn) %> + <%= render(gtfs_template(@issues), issues: @issues || [], conn: @conn) %> <% end %>
diff --git a/apps/transport/lib/transport_web/templates/validation/show.html.heex b/apps/transport/lib/transport_web/templates/validation/show.html.heex index 29c713a3ec..d3ad86ac72 100644 --- a/apps/transport/lib/transport_web/templates/validation/show.html.heex +++ b/apps/transport/lib/transport_web/templates/validation/show.html.heex @@ -40,7 +40,7 @@ path: &validation_path/4, action: :show ) %> - <%= render(template(@issues), issues: @issues || [], conn: @conn) %> + <%= render(gtfs_template(@issues), issues: @issues || [], conn: @conn) %>