Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map and gallery template added to tags page #821

Merged
merged 2 commits into from Aug 2, 2019

Conversation

divyabaid16
Copy link
Contributor

@divyabaid16 divyabaid16 commented Jul 9, 2019

Fixes #807 (<=== Add issue number here)

Selection_202

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/mapknitter-reviewers for help, in a comment below

Thanks!

@codeclimate
Copy link

codeclimate bot commented Jul 9, 2019

Code Climate has analyzed commit e8f6995 and detected 0 issues on this pull request.

View more on Code Climate.

@codecov
Copy link

codecov bot commented Jul 9, 2019

Codecov Report

Merging #821 into main will increase coverage by 0.16%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #821      +/-   ##
==========================================
+ Coverage   72.43%   72.59%   +0.16%     
==========================================
  Files          35       35              
  Lines        1335     1343       +8     
==========================================
+ Hits          967      975       +8     
  Misses        368      368
Impacted Files Coverage Δ
app/models/map.rb 93.19% <100%> (+0.09%) ⬆️
app/controllers/tags_controller.rb 89.65% <100%> (+1.65%) ⬆️
app/controllers/maps_controller.rb 91.89% <100%> (+0.14%) ⬆️

@divyabaid16
Copy link
Contributor Author

@publiclab/mapknitter-reviewers

@jywarren
Copy link
Member

jywarren commented Jul 9, 2019 via email

@divyabaid16
Copy link
Contributor Author

I'm not getting this. @ananyaarun would you like to give some input on this?
Here, we have to show only the maps that are tagged or has some tag associated with it.
Thanks!

@ananyaarun
Copy link
Member

Hey @divyabaid16
What is the exact issue you are facing ?

@divyabaid16
Copy link
Contributor Author

divyabaid16 commented Jul 11, 2019

@ananyaarun have a look at #821 (comment) comment.

The page that displays this is
https://mapknitter.org/tags/featured

Actually I'm not so aware about the layers.

@ananyaarun
Copy link
Member

Hi @divyabaid16
I am completely new to mapknitter I had a few questions , So in the https://mapknitter.org/tags/featured page I see on top the mapknitter layer is displayed (this is the LEL mapknitter layer)
But the maps ie the ones with featured tags displayed below have nothing to do with LEL layers do they ?

@divyabaid16
Copy link
Contributor Author

@jywarren just to clear, were you asking me to sum up the coordinates of all the maps in LEL, find their average and then zoom in to that point in the top map?
And show that point in LEL mapknitter layer?

@jywarren
Copy link
Member

jywarren commented Jul 12, 2019 via email

@jywarren
Copy link
Member

Hi all! How is this coming along -- can I help out? Thanks!!!

@divyabaid16
Copy link
Contributor Author

Ya, I'm trying. Sorry, It took me a bit longer.

@jywarren
Copy link
Member

jywarren commented Jul 25, 2019 via email

@grvsachdeva grvsachdeva added this to In progress in Image Management via automation Jul 28, 2019
Image Management automation moved this from In progress to Review in progress Jul 30, 2019
app/views/tags/index.html.erb Outdated Show resolved Hide resolved
app/views/tags/index.html.erb Show resolved Hide resolved
@divyabaid16
Copy link
Contributor Author

I have made the changes @cesswairimu.
Thanks!

<h2 class="section-title text-center"> <%= @title %></h2>
<hr style="max-width: 500px;">
<br> <br>
<%= render :partial => 'front_ui/maps', :locals => { :maps => @maps } %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!!

@jywarren
Copy link
Member

jywarren commented Aug 2, 2019

This looks great. merging - and shall we think of how to show people how to use this feature? Like, should this page have a section that says use the tag _____ to add a map to this collection or on a map view page, an area for inputting tags that explains this too? We could move the tags section from the map show page to the view only map page that @cesswairimu built in #777 ? What do you think?

@jywarren jywarren closed this Aug 2, 2019
Image Management automation moved this from Review in progress to Done Aug 2, 2019
@jywarren jywarren reopened this Aug 2, 2019
Image Management automation moved this from Done to In progress Aug 2, 2019
@jywarren
Copy link
Member

jywarren commented Aug 2, 2019

Oops, closed by mistake!!! I'll merge in any case, since it already passed. Thanks!

@jywarren jywarren merged commit 5fb968f into publiclab:main Aug 2, 2019
Image Management automation moved this from In progress to Done Aug 2, 2019
@divyabaid16 divyabaid16 deleted the tags-page branch August 10, 2019 05:53
chen-robert pushed a commit to chen-robert/mapknitter that referenced this pull request Dec 5, 2019
* Map and gallery templete added to tags page

* Gallery template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Tags display with "tour"
4 participants