diff --git a/app/views/search/_result.mustache b/app/views/search/_result.mustache new file mode 100644 index 0000000000..84222643f9 --- /dev/null +++ b/app/views/search/_result.mustache @@ -0,0 +1,85 @@ + +

{{title}}

+ + {{#debug_score}} + +

+ Score: {{es_score}} + Format: {{#government}}government{{/government}} {{format}} +

+ {{/debug_score}} + + {{#external}} +

+ Part of + {{ display_link }} +

+ {{/external}} + + {{#section}} +

+ Part of + {{formatted_section_name}} + {{#formatted_subsection_name}} + , + {{ formatted_subsection_name }} + {{/formatted_subsection_name}} + {{#formatted_subsubsection_name}} + , + {{ formatted_subsubsection_name }} + {{/formatted_subsubsection_name}} +

+ {{/section}} + + {{#metadata_any?}} + + {{/metadata_any?}} + + {{#historic?}} + {{#government_name}} +

+ First published during the {{government_name}} +

+ {{/government_name}} + {{/historic?}} + +

{{description}}

+ + {{#sections_present?}} + + {{/sections_present?}} + + {{#examples_present?}} + + {{/examples_present?}} + + {{^examples_present?}} + {{#suggested_filter_present?}} +

{{suggested_filter_title}}

+ {{/suggested_filter_present?}} + {{/examples_present?}} + + diff --git a/app/views/search/_results_list.mustache b/app/views/search/_results_list.mustache index b34c41b1ac..1c34e0b401 100644 --- a/app/views/search/_results_list.mustache +++ b/app/views/search/_results_list.mustache @@ -12,91 +12,7 @@ {{#results_any?}}
    {{#results}} - -

    {{title}}

    - - {{#debug_score}} - -

    - Score: {{es_score}} - Format: {{#government}}government{{/government}} {{format}} -

    - {{/debug_score}} - - {{#external}} -

    - Part of - {{ display_link }} -

    - {{/external}} - - {{#section}} -

    - Part of - {{formatted_section_name}} - {{#formatted_subsection_name}} - , - {{ formatted_subsection_name }} - {{/formatted_subsection_name}} - {{#formatted_subsubsection_name}} - , - {{ formatted_subsubsection_name }} - {{/formatted_subsubsection_name}} -

    - {{/section}} - - {{#metadata_any?}} -
      - {{#metadata}} -
    • {{{.}}}
    • - {{/metadata}} -
    - {{/metadata_any?}} - - {{#historic?}} - {{#government_name}} -

    - First published during the {{government_name}} -

    - {{/government_name}} - {{/historic?}} - -

    {{description}}

    - - {{#sections_present?}} -
      - {{#sections}} -
    • {{title}}
    • - {{/sections}} -
    - {{/sections_present?}} - - {{#examples_present?}} - - {{/examples_present?}} - - {{^examples_present?}} - {{#suggested_filter_present?}} -

    {{suggested_filter_title}}

    - {{/suggested_filter_present?}} - {{/examples_present?}} - - + {{>search/_result}} {{/results}}