Skip to content

Commit c2fdaaf

Browse files
make home page just summary.
1 parent 04d6f87 commit c2fdaaf

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

_includes/saf_title.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{% assign saf_to_render = include.saf %}
2+
{%- if saf_to_render.description -%}<a href="{{ saf_to_render.url | relative_url }}">{{ saf_to_render.description }}</a>{%- endif -%}

_includes/safs_summary.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{% for saf_dimension in site.saf_dimensions %}
2+
<h3> <a href="{{ saf_dimension.url | relative_url }}">{{saf_dimension.title}}</a></h3>
3+
4+
5+
<table>
6+
{% for saf in site.safs %}
7+
{% if saf.dimension != saf_dimension.name %}
8+
{% continue %}
9+
{% endif %}
10+
<tr>
11+
<td {%- if saf.requirement -%} {%- if saf.requirement contains '**MUST**' %} style="width:5%; background-color: red;" {%- elsif saf.requirement contains '**SHOULD**' %} style="width:5%;background-color: orange;" {%- else %} style="width:5%;background-color: blue;" {%- endif -%}{%- endif -%}>
12+
<a href="{{ saf.url | relative_url }}">
13+
{{ saf.title }}
14+
</a>
15+
</td>
16+
<td style="padding-left: 2px;">
17+
18+
{% include saf_title.html saf=saf %}
19+
</td>
20+
</tr>
21+
{% endfor %}
22+
</table>
23+
24+
{% endfor %}

index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ title: NHSE Solution Architecture Framework
5151
<div class="nhsuk-width-container nhsuk-main-wrapper">
5252

5353
<h2><a href="{{'safs/' | relative_url}}"> Framework Requirements</a></h2>
54-
{% include safs.html %}
54+
{% include safs_summary.html %}
5555

5656
<h2><a href="{{'saf_dimensions/' | relative_url}}"> Framework Dimensions</a></h2>
5757
{% include saf_dimensions.html %}

0 commit comments

Comments
 (0)