-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added semi static acknowledgement page, fixes #359
- Loading branch information
1 parent
3e8c3f5
commit 46eaae3
Showing
9 changed files
with
232 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class StaticPagesController < ApplicationController | ||
def acknowledgements | ||
@content = YAML.load_file(Rails.root.join('config/static/acknowledgements.yml')) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module StaticPagesHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<%= content_for :title, @content['title'] %> | ||
|
||
<% if @content['splash'].present? %> | ||
<% content_for :page_styles %> | ||
<style> | ||
.article-hero { | ||
height: 20rem; | ||
background: none !important; | ||
} | ||
|
||
.article-hero:before { | ||
content: ""; | ||
display: block; | ||
position: absolute; | ||
height: 20rem; | ||
width: 100%; | ||
z-index: -1; | ||
background-image: url('<%= asset_path(@content['splash']) %>'); | ||
background-size: cover; | ||
background-position: center center; | ||
} | ||
</style> | ||
<% end %> | ||
|
||
<header class="bg-light article-hero d-flex flex-column justify-content-end position-relative"> | ||
<div class="container my-3"> | ||
<% if @content['splash'].present? %> | ||
<h1 class="display-3 text-light" style="text-shadow: var(--bs-dark) 0 0 1rem;"><%=@content['title'] %></h1> | ||
<% else %> | ||
<h1 class="display-3 text-primary"><%= @content['title'] %></h1> | ||
<% end %> | ||
</div> | ||
</header> | ||
|
||
<div class="container my-5 "> | ||
<% @content['sections'].each do |section| %> | ||
<h2><%= section['heading'] %></h2> | ||
<% if section['content'] %> | ||
<p><%= Kramdown::Document.new(section['content']).to_html.html_safe %></p> | ||
<% end %> | ||
<% if section['items'] %> | ||
<ul> | ||
<% section['items'].each do |item| %> | ||
<% if item.is_a?(String) %> | ||
<li><%= item %></li> | ||
<% elsif item.is_a?(Hash) %> | ||
<li> | ||
<a href="<%= item['link'] %>"><%= item['name'] %></a> | ||
<% if item['description'] %> - <%= item['description'] %><% end %> | ||
</li> | ||
<% end %> | ||
<% end %> | ||
</ul> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
|
||
<footer class="bg-light"> | ||
<div class="container my-5 text-muted small"> | ||
<p>Cover photo: Cover photo: Phil Aicken / Unsplash</p> | ||
<p>Last updated Last updated 2024-12-16 15:46:17 UTC.</p> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
# config/static/xronos.yml | ||
title: "Acknowledgements" | ||
splash: 'acknowledgement_hero.jpg' | ||
sections: | ||
- heading: "Current XRONOS" | ||
content: | | ||
XRONOS is currently maintained by Martin Hinz and Joe Roe at the Institute of Archaeological Sciences, University of Bern, supported by the [Swiss National Science Foundation](https://www.snf.ch/en) ([SNSF Project #198152](https://data.snf.ch/grants/grant/198153)). | ||
- heading: "Former Project Team Members" | ||
items: | ||
- "Caroline Heitz (2019)" | ||
- "Clemens Schmid (2019)" | ||
- "Setareh Ebrahimiabareghi (2022)" | ||
|
||
- heading: "Collaborators" | ||
items: | ||
- name: "Beat Eberschweiler" | ||
link: "https://www.stadt-zuerich.ch/hbd/de/index/ueber_das_departement/organisation/gremium/denkmalpflegekommission/beat_eberschweiler.html" | ||
description: "cantonal archaeologist (director), Baudirektion, Amt für Raumentwicklung, Kanton Zürich" | ||
- name: "Sönke Szidat" | ||
link: "https://www.14c.unibe.ch/about_us/team/lara_team/prof_dr_szidat_soenke/index_eng.html" | ||
description: "Head of research group, LARA, Department of Chemistry and Biochemistry, University of Bern" | ||
- name: "Tomasz J. Chmielewski" | ||
description: "independent scholar, Wrocław, Poland (Poland, Hungary, Slovakia and the Czech Republic)" | ||
|
||
- heading: "Contributing Datasets" | ||
content: "XRONOS is continuously updated with data from a number of existing databases, including:" | ||
items: | ||
- name: "14SEA" | ||
link: "http://www.14sea.org/" | ||
description: "maintained by Agathe Reingruber and Laurens Thissen" | ||
- name: "ADRAC" | ||
link: "https://github.com/dirkseidensticker/aDRAC" | ||
description: "maintained by Dirk Seidensticker, Wannes Hubau and Katharina V. M. Jungnickel" | ||
- name: "AIDA" | ||
link: "https://github.com/apalmisano82/AIDA" | ||
description: "maintained by Alessio Palmisano, Andrew Bevan, Alex Kabelindde, Neil Roberts & Stephen Shennan" | ||
- name: "BDA" | ||
link: "https://bda.huma-num.fr" | ||
description: "maintained by Thomas Perrin" | ||
- name: "CalPal" | ||
link: "https://doi.org/10.5281/zenodo.7215741" | ||
description: "maintained by Bernhard Weninger" | ||
- name: "caribbean-14C" | ||
link: "https://github.com/philriris/caribbean-14C" | ||
description: "maintained by Phil Riris" | ||
- name: "CONTEXT" | ||
link: "http://context-database.uni-koeln.de/" | ||
description: "maintained by U. Böhner & D. Schyle" | ||
- name: "EUBAR" | ||
link: "https://telearchaeology.org/eubar-c14-database/" | ||
description: "maintained by Gacomo Capuzzo" | ||
- name: "IRDD" | ||
link: "https://sites.google.com/site/chapplearchaeology/irish-radiocarbon-dendrochronological-dates/download" | ||
description: "maintained by Robert M. Chapple" | ||
- name: "MedAfriCarbon" | ||
link: "https://theia.arch.cam.ac.uk/MedAfriCarbon/" | ||
description: "maintained by Giulio Lucarini" | ||
- name: "MesoRAD" | ||
link: "https://www.mesorad.com/" | ||
description: "maintained by Julie Hoggarth and Claire Ebert" | ||
- name: "NERD" | ||
link: "https://github.com/apalmisano82/NERD" | ||
description: "maintained by Alessio Palmisano, Andrew Bevan, Dan Lawrence and Stephen Shennan" | ||
- name: "p3k14c" | ||
link: "https://www.p3k14c.org/" | ||
description: "maintained by the PEOPLE3000 Working Group" | ||
- name: "RADON" | ||
link: "https://radon.ufg.uni-kiel.de/" | ||
description: "maintained by Martin Hinz & Christoph Rinne" | ||
- name: "rxpand" | ||
link: "https://github.com/jgregoriods/rxpand" | ||
description: "maintained by Jonas Gregorio de Souza" | ||
- name: "Southern African Radiocarbon Database" | ||
link: "https://github.com/emmaloftus/Southern-African-Radiocarbon-Database" | ||
description: "maintained by Emma Loftus" | ||
|
||
- heading: "Published Compilations" | ||
items: | ||
- name: "Böhner, U. and Schyle, D., 2004." | ||
link: "https://web.archive.org/web/20161224034255/http://context-database.uni-koeln.de/" | ||
description: "Radiocarbon CONTEXT database." | ||
- name: "Capuzzo, G., Boaretto, E., and Barceló, J. A., 2014." | ||
link: "https://doi.org/10.2458/56.17453" | ||
description: "EUBAR: A database of 14C measurements for the European Bronze Age. A Bayesian analysis of 14C-dated archaeological contexts from Northern Italy and Southern France. *Radiocarbon* 56(2): 851-69." | ||
- name: "Courtney Mustaphi, Colin, 2016." | ||
link: "https://doi.org/10.7910/DVN/NJLNRJ" | ||
description: "Radiocarbon dates from eastern Africa in the CARD2.0 format. *Harvard Dataverse*." | ||
- name: "Crema, E.R., Kobayashi, K., 2020." | ||
link: "https://doi.org/10.1016/j.jas.2020.105136" | ||
description: "A multi-proxy inference of Jōmon population dynamics using bayesian phase models, residential data, and summed probability distribution of 14C dates. *Journal of Archaeological Science* 117: 105136." | ||
- name: "D'Errico, F., Banks, W. E., Vanharen, M., Laroulandie, V., and Langlais, M., 2011." | ||
link: "https://doi.org/10.4207/PA.2011.ART40" | ||
description: "PACEA Geo-Referenced Radiocarbon Database. *PaleoAnthropology* 2011: 1–12." | ||
- name: "Katsianis, M., Bevan, A., Styliaras, G., and Maniatis, Y., 2020." | ||
link: "https://doi.org/10.5334/joad.65" | ||
description: "An Aegean history and archaeology written through radiocarbon dates. *Journal of Open Archaeology Data* 8: 5." | ||
- name: "Manning, K., Colledge, S., Crema, E., Shennan, S. and Timpson, A., 2016." | ||
link: "https://doi.org/10.5334/joad.40" | ||
description: "The Cultural Evolution of Neolithic Europe. EUROEVOL Dataset 1: Sites, Phases and Radiocarbon Data. *Journal of Open Archaeology Data* 5: 2." | ||
- name: "Martínez-Grau, H., Morell-Rovira, B., and Antolín, F., 2021." | ||
link: "https://doi.org/10.5334/joad.72" | ||
description: "Radiocarbon Dates Associated to Neolithic Contexts (Ca. 5900 – 2000 Cal BC) from the Northwestern Mediterranean Arch to the High Rhine Area. *Journal of Open Archaeology Data* 9: 1." | ||
- name: "Palmisano, A., Bevan, A., and Shennan, S., 2018." | ||
link: "https://doi.org/10.5334/joad.43" | ||
description: "Regional Demographic Trends and Settlement Patterns in Central Italy: Archaeological Sites and Radiocarbon Dates. *Journal of Open Archaeology Data* 6: 2." | ||
- name: "Williams, A. and Ulm, S., 2014." | ||
link: "https://doi.org/10.5284/1027216" | ||
description: "AustArch: A Database of 14C and Luminescence Ages from Archaeological Sites in Australia. *Archaeology Data Service*." | ||
|
||
- heading: "Graphics and Photos" | ||
items: | ||
- name: "Book" | ||
link: "https://thenounproject.com/icon/book-5433144/" | ||
description: "by HDM" | ||
- name: "006 Carbon C" | ||
link: "https://thenounproject.com/icon/006-carbon-c-1022338/" | ||
description: "by Joel Wisneski" | ||
- name: "Pottery" | ||
link: "https://thenounproject.com/icon/pottery-3969143/" | ||
description: "by Adrien Coquet" | ||
- name: "Ruin" | ||
link: "https://thenounproject.com/icon/ruin-568421/" | ||
description: "by João Archer" | ||
- name: "Wood Texture" | ||
link: "https://thenounproject.com/icon/wood-texture-3674579/" | ||
description: "by Laura" | ||
|
||
- heading: "Additional Data and Services" | ||
content: "Geocoding via [Nominatim](https://nominatim.org/). Data ⓒ [OpenStreetMap contributors](https://www.openstreetmap.org/copyright)." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
require 'rails_helper' | ||
|
||
# Specs in this file have access to a helper object that includes | ||
# the StaticPagesHelper. For example: | ||
# | ||
# describe StaticPagesHelper do | ||
# describe "string concat" do | ||
# it "concats two strings with spaces" do | ||
# expect(helper.concat_strings("this","that")).to eq("this that") | ||
# end | ||
# end | ||
# end | ||
RSpec.describe StaticPagesHelper, type: :helper do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe "StaticPages", type: :request do | ||
describe "GET /acknowledgements" do | ||
it "returns http success" do | ||
get "/static_pages/acknowledgements" | ||
expect(response).to have_http_status(:success) | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
require 'rails_helper' | ||
|
||
RSpec.describe "static_pages/acknowledgements.html.erb", type: :view do | ||
pending "add some examples to (or delete) #{__FILE__}" | ||
end |