2014-08-10 17:06:58 +00:00
|
|
|
|
|
|
|
<!-- from left to right on the screen -->
|
|
|
|
|
|
|
|
<div class="upperLeftUI">
|
|
|
|
<!-- home button -->
|
|
|
|
<div class="homeButton">
|
2014-09-16 01:57:34 +00:00
|
|
|
<a href="<%= root_url %>" <% if !authenticated? %><%= 'data-bypass=true' %><% end %>></a>
|
2014-08-10 17:06:58 +00:00
|
|
|
</div> <!-- end homeButton -->
|
|
|
|
|
|
|
|
<!-- search box -->
|
|
|
|
<div class="sidebarSearch">
|
2014-08-27 02:51:50 +00:00
|
|
|
<input type="text" class="sidebarSearchField" placeholder="Search for topics, maps, and mappers..."></input>
|
2014-10-01 17:18:24 +00:00
|
|
|
<div id="searchLoading"></div>
|
2014-08-10 17:06:58 +00:00
|
|
|
<div class="sidebarSearchIcon"></div>
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div> <!-- end sidebarSearch -->
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div><!-- end upperLeftUI -->
|
|
|
|
|
|
|
|
<div class="upperRightUI">
|
2014-11-29 16:17:11 +00:00
|
|
|
<div class="supportUs upperRightEl openLightbox" data-open="donate">SUPPORT US!</div>
|
2014-08-27 02:51:50 +00:00
|
|
|
<div class="mapElement upperRightEl upperRightMapButtons">
|
2015-12-11 19:23:41 +00:00
|
|
|
<div class="startVideo upperRightEl">start my video</div>
|
2014-08-10 17:06:58 +00:00
|
|
|
<!-- filtering -->
|
|
|
|
<div class="sidebarFilter upperRightEl">
|
2014-11-12 18:31:15 +00:00
|
|
|
<div class="sidebarFilterIcon upperRightIcon"><div class="tooltipsUnder">Filter</div></div>
|
2014-08-10 17:06:58 +00:00
|
|
|
<div class="sidebarFilterBox upperRightBox">
|
|
|
|
<%= render :partial => 'shared/filterBox' %>
|
|
|
|
</div>
|
|
|
|
</div> <!-- end sidebarFilter -->
|
|
|
|
|
|
|
|
<% if authenticated? %>
|
|
|
|
<!-- fork map -->
|
|
|
|
<div class="sidebarFork upperRightEl">
|
2014-11-14 13:21:09 +00:00
|
|
|
<div class="sidebarForkIcon upperRightIcon"><div class="tooltipsUnder">Save To New Map</div></div>
|
2014-08-10 17:06:58 +00:00
|
|
|
</div> <!-- end sidebarFork -->
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<div class="clearfloat"></div>
|
|
|
|
</div> <!-- end mapElement -->
|
|
|
|
|
|
|
|
<% if authenticated? %>
|
|
|
|
<!-- create new map -->
|
2014-11-14 13:21:09 +00:00
|
|
|
<div class="addMap openLightbox upperRightEl upperRightIcon" data-open="newmap"><div class="tooltipsUnder">Create New Map</div>
|
2014-08-10 17:06:58 +00:00
|
|
|
</div><!-- end addMap -->
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<!-- Account / Sign in -->
|
2014-10-07 21:46:09 +00:00
|
|
|
<% if !(controller_name == "sessions" && action_name == "new") %>
|
2014-08-10 17:06:58 +00:00
|
|
|
<div class="sidebarAccount upperRightEl">
|
2014-11-12 18:31:15 +00:00
|
|
|
<div class="sidebarAccountIcon"><div class="tooltipsUnder">Account</div>
|
2014-08-10 17:06:58 +00:00
|
|
|
<% if user && user.image %>
|
2014-11-25 20:06:30 +00:00
|
|
|
<%= image_tag user.image.url(:thirtytwo), :size => "32x32" %>
|
2014-08-10 17:06:58 +00:00
|
|
|
<% elsif !authenticated? %>
|
|
|
|
SIGN IN
|
2014-08-27 02:51:50 +00:00
|
|
|
<div class="accountInnerArrow"></div>
|
2014-08-10 17:06:58 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="sidebarAccountBox upperRightBox">
|
|
|
|
<%= render :partial => 'layouts/account' %>
|
|
|
|
</div>
|
|
|
|
</div><!-- end sidebarAccount -->
|
2014-10-07 21:46:09 +00:00
|
|
|
<% end %>
|
2014-08-10 17:06:58 +00:00
|
|
|
<div class="clearfloat"></div>
|
2015-10-30 01:34:05 +00:00
|
|
|
</div><!-- end upperRightUI -->
|