diff --git a/src/lib/browse/Filters.svelte b/src/lib/browse/Filters.svelte
deleted file mode 100644
index e3faf4546..000000000
--- a/src/lib/browse/Filters.svelte
+++ /dev/null
@@ -1,277 +0,0 @@
-
-
-
- Length: {prettyPrintMeters(props.length_meters)} -
- {/if} - {#if props.description} -{@html highlightFilter(props.description, $filterInterventionText)}
- {/if} - - {#if props.pipeline} - {@const p = props.pipeline} - {#if p.atf4_type} -- ATF4 type: {p.atf4_type} -
- {/if} - {#if p.accuracy} -- Accuracy: {p.accuracy} -
- {/if} - {#if p.is_alternative} -Represents an alternative route
- {/if} -- Part of scheme: {@html highlightFilter( - scheme.scheme_name ?? "", - $filterSchemeText, - )} ({@html highlightFilter(props.scheme_reference, $filterSchemeText)}) -
-- Authority or region: {scheme.browse?.authority_or_region} -
- {#if scheme.browse?.capital_scheme_id} -- Capital scheme ID: {scheme.browse?.capital_scheme_id} -
- {/if} -- Funding programme: {scheme.browse?.funding_programme} -
- {#if scheme.browse?.current_milestone} -- Current milestone: {scheme.browse?.current_milestone} -
- {/if} - - {#if scheme.pipeline} - {@const p = scheme.pipeline} - {#if p.scheme_type} -- Scheme type: {p.scheme_type} -
- {/if} - {#if p.atf4_lead_type} -- ATF4 lead type: {p.atf4_lead_type} -
- {/if} - {#if p.scheme_description} -Descripton: {p.scheme_description}
- {/if} -Scheme reference: {scheme.scheme_reference}
-Authority or region: {scheme.browse?.authority_or_region}
-Capital scheme ID: {scheme.browse?.capital_scheme_id}
-Funding programme: {scheme.browse?.funding_programme}
- {#if scheme.browse?.current_milestone} -Current milestone: {scheme.browse?.current_milestone}
- {/if} -- Cost: {props.budget.toLocaleString()} + Cost + : {props.budget.toLocaleString()} GBP
{/if} @@ -38,6 +39,7 @@ {#if funding}- Funding sources: {funding} + Funding sources + : {funding}
{/if} diff --git a/src/lib/browse/DescribePipelineTiming.svelte b/src/lib/browse/schemes/DescribePipelineTiming.svelte similarity index 53% rename from src/lib/browse/DescribePipelineTiming.svelte rename to src/lib/browse/schemes/DescribePipelineTiming.svelte index 045980218..866bf1ecf 100644 --- a/src/lib/browse/DescribePipelineTiming.svelte +++ b/src/lib/browse/schemes/DescribePipelineTiming.svelte @@ -6,30 +6,35 @@ {#if props.status}- Status: {props.status} + Status + : {props.status}
{/if} {#if props.timescale}- Timescale: {props.timescale} + Timescale + : {props.timescale}
{/if} {#if props.timescale_year}- Estimated completion year: {props.timescale_year} + Estimated completion year + : {props.timescale_year}
{/if} {#if props.year_published}- Scheme most recently published: {props.year_published} + Scheme most recently published + : {props.year_published}
{/if} {#if props.year_consulted}- Scheme most recently consulted on: {props.year_consulted} + Scheme most recently consulted on + : {props.year_consulted}
{/if} diff --git a/src/lib/browse/schemes/Filters.svelte b/src/lib/browse/schemes/Filters.svelte new file mode 100644 index 000000000..5b36dacc2 --- /dev/null +++ b/src/lib/browse/schemes/Filters.svelte @@ -0,0 +1,291 @@ + + +Showing:
+{props.name}
{props.name}
{props.name}
+ Name + : {@html highlightFilter(props.name, filterInterventionText)} ({props.intervention_type}) +
+ + {#if props.length_meters} ++ Length + : {prettyPrintMeters(props.length_meters)} +
+ {/if} + + {#if props.description} +{@html highlightFilter(props.description, filterInterventionText)}
+ {/if} + + {#if props.pipeline} + {@const p = props.pipeline} + {#if p.atf4_type} ++ ATF4 type + : {p.atf4_type} +
+ {/if} + {#if p.accuracy} ++ Accuracy + : {p.accuracy} +
+ {/if} + {#if p.is_alternative} +Represents an alternative route
+ {/if} ++ Scheme name + : {@html highlightFilter(scheme.scheme_name ?? "", filterSchemeText)} +
++ Scheme reference + : {@html highlightFilter(props.scheme_reference, filterSchemeText)} +
++ Authority or region + : {scheme.browse?.authority_or_region} +
+ {#if scheme.browse?.capital_scheme_id} ++ Capital scheme ID + : {scheme.browse?.capital_scheme_id} +
+ {/if} ++ Funding programme + : {scheme.browse?.funding_programme} +
+ {#if scheme.browse?.current_milestone} ++ Current milestone + : {scheme.browse?.current_milestone} +
+ {/if} + + {#if scheme.pipeline} + {@const p = scheme.pipeline} + {#if p.scheme_type} ++ Scheme type + : {p.scheme_type} +
+ {/if} + {#if p.atf4_lead_type} ++ ATF4 lead type + : {p.atf4_lead_type} +
+ {/if} + {#if p.scheme_description} ++ Descripton + : {p.scheme_description} +
+ {/if} +
+
{note}
+
{note}