forked from publiclab/plots2
-
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.
[Outreachy]Add Nearby Activity (publiclab#9202)
* add nearby activity * comment out pending test to test if it passes * revert old test * add example/images/owmloading.gif direct link to assets location * test if test will fail * test if test will fail * re-add test for owmloading error * removed dup lines from merge Co-authored-by: Jeffrey Warren <jeff@unterbahn.com>
- Loading branch information
1 parent
2ef9a8b
commit 0f232a1
Showing
8 changed files
with
57 additions
and
31 deletions.
There are no files selected for viewing
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
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,19 @@ | ||
<% if current_user.has_power_tag("lat") && current_user.has_power_tag("lon") %> | ||
<% lon = current_user.lon %> | ||
<% lat = current_user.lat%> | ||
<% zoom = current_user.zoom ? current_user.zoom: '' %> | ||
<%# Display Map %> | ||
<%= render_map(lat, lon, zoom) %> | ||
<%# Link to view Nearby Activity %> | ||
<% url = "/map#" + zoom.to_s + "/" + lat.to_s + lon.to_s %> | ||
<a href="<%= url %>" class="btn btn-outline-secondary btn-location mt-2 mb-5"><i class="fa fa-map-marker" aria-hidden="true"></i> <%= translation('dashboard_v2.sidebar.nearby_activity') %> </a> | ||
<% else %> | ||
<div style="margin: 2.2rem 0;"> | ||
<a class="btn btn-lg btn-outline-secondary blurred-location-input" submit_to="/profile/tags/create/<%= current_user.uid %>"><i class="fa fa-map-marker" style="color:#c40;"></i> <%= translation('dashboard_v2.sidebar.add_location') %></a> | ||
<p><small class="form-grey"> | ||
<%= translation('dashboard_v2.sidebar.location_work') %> | | ||
<a class="form-grey" style="text-decoration: underline;" href="https://publiclab.org/location-privacy" target="_blank"><%= translation('dashboard_v2.sidebar.location_privacy') %></a> | ||
</p></small> | ||
</div> | ||
<%= render partial: 'tag/location' %> | ||
<% 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
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
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