Skip to content

Commit

Permalink
Merge pull request #5 from uk-tre/further-development
Browse files Browse the repository at this point in the history
Renaming resources
  • Loading branch information
harisood authored Jan 31, 2024
2 parents c9431a1 + 1a8ff5f commit 9240801
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 0 deletions.
7 changes: 7 additions & 0 deletions content/community_resources/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
title: Community Resources
layout: community_resources/index
description: Resources from members and teams within the community
url: /resources
---

31 changes: 31 additions & 0 deletions content/community_resources/code/turing_tre/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Alan Turing Institute TRE codebase (Azure)"
description: "Alan Turing Institute open source TRE infrastructure codebase (deployed on Azure)"
owners:
- The Alan Turing Institute
url: resources/turing_tre
tags:
- resource
tag_resource_types:
- code
tag_resource_topics:
- infrastructure
draft: false
layout: resources/resource_page
---

# Alan Turing Institute TRE codebase (Azure)

**Type:** GitHub repository

**Topic:** TRE Infrastructure

**Link:** https://github.com/alan-turing-institute/data-safe-haven

**Owner(s):** The Alan Turing Institute

**Licence:** BSD 3-Clause License

## Information

...
17 changes: 17 additions & 0 deletions content/community_resources/papers/testy/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: "Test paper"
description: "Test paper"
owners:
- The Alan Turing Institute
draft: false
url: resources/paper
layout: resources/resource_page
tags:
- resource
tag_resource_types:
- papers
tag_resource_topics:
- information_governance
---

# Test paper
126 changes: 126 additions & 0 deletions layouts/_default/community_resources/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
{{ define "main" }}
<!-- <div class="section padded container">
{{ range $key, $taxonomy := .Site.Taxonomies.tag_resource_types }}
<li>{{ $key }}</li>
<ul>
{{ range $taxonomy.Pages }}
<li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{end}}
</div> -->

<section class="section padded container">
<h1>{{ .Title }}</h1>
<p>{{ .Description }}</p>
<p>
You can also find the resources and outputs from our working groups by visiting the <b>working groups page</b>
</p>
<a type="button" class="btn btn-branded" href="/groups">
Visit working groups page
</a>
<div class="callout callout-warning">
<strong>Note: </strong> This page is simply signposting to different resources available within the community -
presence of a resource on this page does not signify community endorsement.
Please evaluate each resource in your own terms!
</div>
</section>
<section class="section padded container">
<h2>Resources (by type)</h2>
<p>Community resources by the type of resource they are</p>
<div class="accordion">
{{ range $key, $taxonomy := .Site.Taxonomies.tag_resource_types }}
{{ $formatTitle := strings.Replace $key "_" " " }}
<div class="accordion-item">
<h2 class="accordion-header" id="heading{{$key}}">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#collapse{{$key}}" aria-expanded="true" aria-controls="collapse{{$key}}">
{{ strings.Title $formatTitle }}
</button>
</h2>
{{ range $taxonomy.Pages }}
<div id="collapse{{$key}}" class="accordion-collapse collapse" aria-labelledby="heading{{$key}}">
<div class="accordion-body">
<div class="col">
<ul class="list-group">
<li class="list-group-item">
<div class="container">
<div class="row row-cols-2">
<div class="col">
<h3>Title</h3>
</div>
<div class="col">
<h3>Owner(s)</h3>
</div>
<div class="col">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</div>
<div class="col">
{{ range .Params.owners }}
{{ . }}</br>
{{ end }}
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
{{ end }}
</div>
{{end}}
</div>
</section>
<section class="section padded container">
<h2>Resources (by topic)</h2>
<p>Community resources by the topic the resource is covering</p>
<div class="accordion">
{{ range $key, $taxonomy := .Site.Taxonomies.tag_resource_topics }}
{{ $formatTitle := strings.Replace $key "_" " " }}
<div class="accordion-item">
<h2 class="accordion-header" id="heading{{$key}}">
<button class="accordion-button" type="button" data-bs-toggle="collapse"
data-bs-target="#collapse{{$key}}" aria-expanded="true" aria-controls="collapse{{$key}}">
{{ strings.Title $formatTitle }}
</button>
</h2>
{{ range $taxonomy.Pages }}
<div id="collapse{{$key}}" class="accordion-collapse collapse" aria-labelledby="heading{{$key}}">
<div class="accordion-body">
<div class="col">
<ul class="list-group">
<li class="list-group-item">
<div class="container">
<div class="row row-cols-2">
<div class="col">
<h3>Title</h3>
</div>
<div class="col">
<h3>Owner(s)</h3>
</div>
<div class="col">
<a href="{{ .Permalink }}">
{{ .Title }}
</a>
</div>
<div class="col">
{{ range .Params.owners }}
{{ . }}</br>
{{ end }}
</div>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
{{ end }}
</div>
{{end}}
</div>
</section>
{{ end }}
6 changes: 6 additions & 0 deletions layouts/_default/community_resources/resource_page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{ define "main" }}
<div class="section padded container">
{{ .Content }}
</div>

{{ end }}

0 comments on commit 9240801

Please sign in to comment.