Skip to content

Commit

Permalink
skip website...under CC 4.0 BY in the shared footer
Browse files Browse the repository at this point in the history
  • Loading branch information
kosarko committed Feb 16, 2022
1 parent 3ef6b46 commit c81b5f9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/new_theme/public/js/footer_data.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class FooterData {
THE LINDAT/CLARIAH-CZ PROJECT (LM2018101; formerly LM2010013, LM2015071) IS FULLY SUPPORTED BY THE MINISTRY OF EDUCATION, SPORTS AND YOUTH OF THE CZECH REPUBLIC UNDER THE PROGRAMME LM OF "LARGE INFRASTRUCTURES"
</div>
<div id="ack-freepik">Icons © Smashicons and Freepik from flaticon.com licensed by <a href="https://creativecommons.org/licenses/by/3.0/">CC 3.0 BY</a></div>
<div id="ack-ufal">website © 2022 by <a href="https://ufal.mff.cuni.cz/">ÚFAL</a> under <a href="https://creativecommons.org/licenses/by/4.0/">CC 4.0 BY</a></div>
<div id="ack-ufal">website © 2022 by <a href="https://ufal.mff.cuni.cz/">ÚFAL</a></div>
${trackingScripts}
</footer>
</div>
Expand Down
12 changes: 10 additions & 2 deletions test/new_theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,20 @@ describe('lindat-common matches drupal', function (){
let footer = await element(by.css("footer"))
await browser.wait(EC.presenceOf(footer), waitingTime)
let expected_footer_anchors = footer.all(by.css("a"));
expected_footer_anchors_count = await expected_footer_anchors.count();

expected_links = [];
await expected_footer_anchors.each(async function (e, index){
let link = await e.getAttribute('href');
expected_links.push(link.replace('http:', 'https:'));
let parent = await e.element(by.xpath('..'));
let parent_id = await parent.getAttribute('id');
// The drupal footer adds `under <a href="https://creativecommons.org/licenses/by/4.0/">CC 4.0 BY</a></div>`
// it would be confusing if repo or services had this statement too
if (parent_id === 'ack-ufal' && link.includes('creativecommons.org')){
;
}else {
expected_links.push(link.replace('http:', 'https:'));
}
expected_footer_anchors_count = expected_links.length;
});

await browser.get('/dist/example/index.html');
Expand Down

0 comments on commit c81b5f9

Please sign in to comment.