Skip to content

Commit

Permalink
remove observation section
Browse files Browse the repository at this point in the history
  • Loading branch information
cesswairimu committed Sep 8, 2019
1 parent a9ac324 commit 2531ffe
Showing 1 changed file with 40 additions and 50 deletions.
90 changes: 40 additions & 50 deletions app/views/maps/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,72 +25,62 @@
</div>
</div>
</div>

<div class="container-fluid">
<div class="text-center lead-text">
<p class="text-muted">A Community Atlas of </p>
<h2><%= @map.location %> </h2>
<p> by <%= link_to "@#{@map.author}", "/profile/#{@map.author}" unless @map.author == 'anonymous' %> </p>
</div>
<div class="row text-center">
<div class="col-md-4 offset-md-4 text-block">
<img class="mx-auto d-block" style="max-height: 75px; max-width: 75px;" src="<%= asset_path('balloon1.png') %>">
<h3>Make your own map </h3>
<p>Use a kite, balloon, pole or drone to take an aerial photo and tell your own visual story of the place </p>
<br> <br>
<p>
<a class="btn btn-primary btn-lg" href= 'https://store.publiclab.org/collections/mapping-kits'>
Get a mapping kit<i class="fa fa-angle-double-right fa-fw" style="font-size:18px;color:white;"></i>
</a>
<a class="btn btn-primary btn-lg" href="<%= new_map_url %>">
Add a new map <i class="fa fa-plus fa-fw" style="font-size:12px;color:white;"></i>
</a>
</p>
<br>
</div>

<div class="container">
<div class="card-deck mb-6 text-center mx-auto">
<div class="card mapping-kits">
<img class="card-img-top img-draw mx-auto" src="<%= asset_path('balloon1.png') %>" alt="balloon icon">
<div class="card-body">
<h3>Make your own map </h3>
<p class="card-text item-description">
Use a kite, balloon, pole or drone to take an aerial photo and tell your own visual story of the place
</p>
<p>
<a class="btn btn-primary btn-lg" href= 'https://store.publiclab.org/collections/mapping-kits'>
Get a mapping kit<i class="fa fa-angle-double-right fa-fw" style="font-size:18px;color:white;"></i>
</a>
<a class="btn btn-primary btn-lg" href="<%= new_map_url %>">
Add a new map <i class="fa fa-plus fa-fw" style="font-size:12px;color:white;"></i>
</a>
</p>
</div>
</div>
<div class="card mapping-kits">
<img class="card-img-top img-draw mx-auto" src="<%= asset_path('quiz.png') %>" alt="questions">
<div class="card-body">
<h3>Ask a question</h3>
<p class="card-text item-description">
<a href="https://publiclab.org/questions" target="blank">Search </a>through questions or Ask a question to get help from others and share ideas with the PublicLab Community
<%# hence helping you in your environmental exploration %>
</p>
<p>
<a href="https://publiclab.org/questions/new?tags=lat:<%= @map.lat %>,lon:<%= @map.lon %>&body=Question posted from map at https://mapknitter.org/m/<%= @map.slug %>" target="blank">
<button class="btn btn-lg btn-primary">
Ask a Question
</button>
</a>
</p>
</div>
</div>
</div>
</div>
</div>
<br><br>

<div class="all-maps light-blue">
<br>
<h3 class="text-center"> Nearby Maps </h3>
<hr style="max-width: 500px;">
<br>
<%= render :partial => 'front_ui/maps', :locals => { :maps => @maps } %>
</div>
<br><br>

<div class="container">
<div class="card-deck mb-6 text-center mx-auto">
<div class="card mapping-kits">
<img class="card-img-top img-draw mx-auto" src="<%= asset_path('quiz.png') %>" alt="questions">
<div class="card-body">
<h5 class="card-title">Ask a question</h5>
<p class="card-text item-description">
<a href="https://publiclab.org/questions" target="blank">Search </a>through questions or Ask a question to get help from others and share ideas with the PublicLab Community hence helping you in your environmental exploration
</p>
<a href="https://publiclab.org/questions/new?tags=lat:<%= @map.lat %>,lon:<%= @map.lon %>&body=Question posted from map at https://mapknitter.org/m/<%= @map.slug %>" target="blank">
<button class="btn btn-lg btn-outline-secondary">
Ask a Question
</button>
</a>
</div>
</div>
<div class="card mapping-kits">
<img class="card-img-top img-draw mx-auto" src="<%= asset_path('binoculars.png') %>" alt="binoculars">
<div class="card-body">
<h5 class="card-title">Projects/ Requests for observations</h5>
<p class="card-text item-description">
Community observations and monitoring are a key source of environmental data. Help add to one of the projects <a href='https://publiclab.org/wiki/projects'>here</a>. Read more or post your own call for input
</p>
<a href="https://publiclab.org/post?tags=lat:<%= @map.lat %>,lon:<%= @map.lon %>&body=Question posted from map at https://mapknitter.org/m/<%= @map.slug %>" target="blank">
<button class="btn btn-lg btn-outline-secondary">
Post an Observation
</button>
</a>
</div>
</div>
</div>
</div>

<script>
var map
Expand Down

0 comments on commit 2531ffe

Please sign in to comment.