Skip to content

Commit

Permalink
officially added the survey page
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Bouysset committed Apr 23, 2020
1 parent c937c99 commit e373be5
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
1 change: 0 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ defaults:
values:
layout: "survey"
permalink: /surveys/:name/
sitemap: false
- scope:
path: ""
values:
Expand Down
2 changes: 2 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- name: Surveys
link: /surveys/
- name: COVID-19 Projects
link: /projects/
- name: Links
Expand Down
2 changes: 1 addition & 1 deletion _data/survey-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
url: https://psusensory.compusensecloud.com/edu/login.aspx?t=9cf1ebb3-5982-4cc6-aae4-613d7cd0ecb4
- language: Dansk
url: https://psusensory.compusensecloud.com/edu/login.aspx?t=6bea4a47-cffb-4c53-a14b-4ca2a28547ed
- language: 中文
- language: 中文(繁體)
url: https://psusensory.compusensecloud.com/edu/login.aspx?t=ded508b8-c07d-4b66-82f9-53f22f262f4b
- language: Suomi
url: https://psusensory.compusensecloud.com/edu/login.aspx?t=e7b9a533-e62f-4344-a110-e3b4f79057a6
Expand Down
2 changes: 1 addition & 1 deletion _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<div class="row align-items-center">
<div class="col-md-4">
<span class="copyright">Copyright &copy; GCCR 2020</span>
<span class="copyright">Copyright &copy; <a href="/">GCCR</a> 2020</span>
</div>
<div class="col-md-4">
<ul class="list-inline social-buttons">
Expand Down
2 changes: 1 addition & 1 deletion _surveys/ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ hello: こんにちは!
take_survey: アンケート調査にご回答ください
share_survey: この調査のことを他の人にもお伝えください
contact: この研究についてのご質問は[GCCR日本事務局]にお願いします。
leader_email: gccr.japan@gmail.com
leader_email: gccr.japan2@gmail.com
survey_url: https://psusensory.compusensecloud.com/edu/login.aspx?t=ab50bad8-4949-4c10-a9eb-7674e0a73cb3
short_url: https://bit.ly/3abl1zJ
---
Expand Down
2 changes: 1 addition & 1 deletion _surveys/zh-hant.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: 繁體中文
title: 中文(繁體)
description: 請參與這個全球化學感官研究計畫!
lang: zh_Hant # https://www.unicode.org/cldr/charts/latest/supplemental/language_territory_information.html
language: Traditional Chinese
Expand Down
4 changes: 1 addition & 3 deletions projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ <h3>OSF page</h3>
<p>Details of the questionnaire can be found on our OSF page (link to be added soon!). Here we describe our planned data processing, statistical tests for hypothesis testing and exploratory analyses. You may also find the preregistration of this study there. You can download simulated data there. Data analysis scripts are available and anonymised data will also be made public there. </p>

<h3>Questionnaire</h3>
<p>You can take the questionnaire here:</p>

{% include survey-links.html %}
<p>You can take the questionnaire <a href="/surveys/" target="_blank">on this page</a>.</p>
</div>
</div>
</div>
Expand Down
12 changes: 7 additions & 5 deletions surveys/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
title: GCCR surveys
description: Participate in the GCCR study on respiratory illness (e.g COVID-19, influenza, flu) and their effect on taste and smell !
layout: survey-base
sitemap: false
sitemap:
priority: 0.8
---

<!-- Survey box -->
Expand All @@ -15,10 +16,11 @@ <h2 id="sequence" class="section-heading text-uppercase pt-3" style="height: 200
<p class="text-muted">Our goal is to collect evidence-based information to combat the spread of COVID-19. Help us! </p>
{% assign surveys = site.surveys | sort: "title"%}
{% for survey in surveys %}
<div class="container">
<a lang="{{ survey.lang }}" href="{{ survey.url }}" class="btn btn-lg btn-primary text-uppercase" type="submit">{{ survey.title }}</a>
<div class="w-100 pb-1"></div>
</div>
{% assign remainder = forloop.index0 | modulo: 2 %}
{% if remainder == 0 %}
<div class="w-100 pb-1"></div>
{% endif %}
<a lang="{{ survey.lang }}" href="{{ survey.url }}" class="btn btn-lg btn-primary text-uppercase" type="submit">{{ survey.title }}</a>
{% endfor %}
</div>
</div>
Expand Down

0 comments on commit e373be5

Please sign in to comment.