Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/merge-pr-sentry-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
steps:
- name: Triggering tests workflow
run: echo "Triggering tests workflow"
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Sentry Release
uses: getsentry/[email protected]
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Not needed with a .ruby-version file
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Not needed with a .ruby-version file
Expand All @@ -73,7 +73,7 @@ jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Not needed with a .ruby-version file
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Not needed with a .ruby-version file
Expand All @@ -136,7 +136,7 @@ jobs:
chromedriver --url-base=/wd/hub &
bundle exec rails test:system
- name: Archive system test screenshots
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: system-test-screenshots
path: tmp/screenshots/*
Expand All @@ -156,7 +156,7 @@ jobs:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.3 # Not needed with a .ruby-version file
Expand All @@ -183,7 +183,7 @@ jobs:
chromedriver --url-base=/wd/hub &
bundle exec rails test test/comment_system_tests
- name: Archive system test screenshots
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: system-test-screenshots
path: tmp/screenshots/*
Expand Down
29 changes: 27 additions & 2 deletions app/assets/javascripts/leafletHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,19 @@
var title = data.items[i].doc_title;
var m = L.marker([data.items[i].latitude, data.items[i].longitude], {
title: title,
icon: default_markers
icon: default_markers,
alt: title,
keyboard: true,
aria: true
}) ;

// Set aria-label on the marker's DOM element after it's added to the map
m.on('add', function() {
if (this._icon) {
this._icon.setAttribute('aria-label', "User marker: " + title);
this._icon.setAttribute('role', 'button');
}
});
if(markers_hash.has(mid) === false){
m.addTo(map).bindPopup("<a href=" + url + ">" + title + "</a>") ;
markers_hash.set(mid , m) ;
Expand Down Expand Up @@ -83,7 +94,21 @@
var time_since = TimeAgo().inWords(new Date(data.items[i].created_at));
// var comment_count = data.items[i].comment_count;

var m = L.marker([data.items[i].latitude, data.items[i].longitude], {icon: map_marker});
var m = L.marker([data.items[i].latitude, data.items[i].longitude], {
icon: map_marker,
title: title,
alt: title,
keyboard: true,
aria: true
});

// Set aria-label on the marker's DOM element after it's added to the map
m.on('add', function() {
if (this._icon) {
this._icon.setAttribute('aria-label', nodetype + " marker: " + title);
this._icon.setAttribute('role', 'button');
}
});

if(markers_hash.has(mid) === false){
var popup_content = "";
Expand Down
Loading