Skip to content

Commit

Permalink
Fixing cache control and updating text
Browse files Browse the repository at this point in the history
  • Loading branch information
davetaz committed Sep 20, 2024
1 parent f297b8d commit 870b28f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,9 @@ app.use((req, res, next) => {
});

app.use((req, res, next) => {
if (req.accepts('html')) {
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate'); // HTTP 1.1.
res.setHeader('Pragma', 'no-cache'); // HTTP 1.0.
res.setHeader('Expires', '0'); // Proxies.
}
res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate'); // HTTP 1.1.
res.setHeader('Pragma', 'no-cache'); // HTTP 1.0.
res.setHeader('Expires', '0'); // Proxies.
next();
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maturity.theodi.org",
"version": "1.0.3",
"version": "1.0.4",
"description": "The ODI Maturity Assessment Tool (pathway)",
"main": "index.js",
"scripts": {
Expand Down
24 changes: 11 additions & 13 deletions views/pages/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,23 @@
<input type="hidden" value="<%= page.link %>" id="pageId"/>
<div>
<h1>Welcome to the ODI Maturity Assessment Tool</h1>
<p>
The ODI Maturity Assessment Tool is designed to help organisations evaluate their data maturity across multiple domains. Whether you're focusing on open data, data ethics, or data practices, our assessments provide a structured approach to understanding your current capabilities, identifying areas for improvement, and tracking your progress over time.
</p>
<p>
With interactive assessments, detailed reports, and actionable insights, this tool is an essential resource for organisations looking to enhance their data management and utilisation strategies.
</p>
<p> The ODI Maturity Assessment Tool helps organisations evaluate their data maturity across key domains such as open data, data ethics, and overall data practices. Our maturity models provide a clear, structured framework for assessing your current capabilities, identifying areas for improvement.</p>
<p>Using this tool, you can conduct an assessment based on our maturity models to evaluate how well your organisation manages and utilises data. After completing your assessment, you'll receive a detailed report containing actionable insights tailored to your organisation’s specific needs.</p>
<p> If you're an ODI member, the tool leverages AI to enhance your experience further. Based on your assessment responses, the AI generates human-readable summaries for each model area, along with an overall executive summary. </p>
<p>Whether you're seeking to refine your data strategy or benchmark your organisation's progress, the ODI Maturity Assessment Tool is an invaluable resource to guide your next steps.</p>
</div>
<img src="/images/steps.png" alt="Maturity steps" style="display: none;"/>
</section>

<section class="content-block light-grey">
<div class="assessment-grid">
<div class="assessment-item">
<img src="/images/data-practices-maturity.png" alt="Data Practices Maturity Model" class="assessment-image"/>
<h3>Data Practices Maturity Model</h3>
<p>
The Data Practices Maturity Model offers a comprehensive framework designed to establish and showcase an organisation's trustworthiness in its data practices—whether it's creating, using, or sharing data. This tool also enhances the dialogue between technical teams and strategic leadership, ensuring that all data practices are fully aligned with organisational objectives and ethical standards.
</p>
</div>
<div class="assessment-item">
<img src="/images/open-data-maturity.png" alt="Open Data Maturity Model" class="assessment-image"/>
<h3>Open Data Maturity Model</h3>
Expand All @@ -29,13 +34,6 @@
The Data Ethics Maturity Model is a tool for anyone who collects, uses and shares data. It helps assess and benchmark how widely embedded data ethics culture and practices are across your organisation.
</p>
</div>
<div class="assessment-item">
<img src="/images/data-practices-maturity.png" alt="Data Practices Maturity Model" class="assessment-image"/>
<h3>Data Practices Maturity Model</h3>
<p>
The Data Practices Maturity Model offers a comprehensive framework designed to establish and showcase an organisation's trustworthiness in its data practices—whether it's creating, using, or sharing data. This tool also enhances the dialogue between technical teams and strategic leadership, ensuring that all data practices are fully aligned with organisational objectives and ethical standards.
</p>
</div>
</div>
</section>

Expand Down
4 changes: 3 additions & 1 deletion views/pages/projects/new.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
padding: 2em;
}
</style>
<h1 id="newProjectTitle">New Project</h1>
<h1 id="newProjectTitle">New Assessment</h1>
<div id="res" class="alert"></div>
<form id="dataForm"></form>

Expand Down Expand Up @@ -73,6 +73,8 @@
fetch('/lib/countries.json')
.then(response => response.json())
.then(countries => {
countries.sort((a, b) => a.name.common.localeCompare(b.name.common));
// Create the label and dropdown elements
const countryLabel = $('<label for="countryDropdown" class="form-control">Organisation Location (Country)</label>');
const countryDropdown = $('<select id="countryDropdown" class="form-control"></select>');
Expand Down
4 changes: 3 additions & 1 deletion views/partials/header.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title><%= page.title %></title>

<script type="text/javascript" src="/lib/jquery-3.7.1.min.js"></script>
Expand Down Expand Up @@ -51,7 +54,6 @@
</form>
</li>
<% } else { %>
<li><a href="/glossary" id="glossary-link" class="toggle-link <% if (page.link === '/glossary') { %>selected<% } %>">Glossary</a></li>
<li><a href="/about" id="privacy-link" class="toggle-link <% if (page.link === '/about') { %>selected<% } %>">Your privacy</a></li>
<li><a href="/auth/django" class="toggle-link">Login</a></li>
<% } %>
Expand Down

0 comments on commit 870b28f

Please sign in to comment.