2016-03-25 00:16:27 +00:00
|
|
|
<%#
|
|
|
|
# @file
|
|
|
|
# Main application file. Holds scaffolding present on every page.
|
|
|
|
# Then a certain non-partial view (no _ preceding filename) will be
|
|
|
|
# displayed within, based on URL
|
|
|
|
#%>
|
|
|
|
|
2016-03-25 04:26:07 +00:00
|
|
|
<%= render :partial => 'layouts/head' %>
|
2016-03-25 00:16:27 +00:00
|
|
|
|
|
|
|
<body class="<%= current_user ? 'authenticated' : 'unauthenticated' %>">
|
|
|
|
|
2016-10-22 08:46:39 +00:00
|
|
|
<a class='feedback-icon' target='_blank' href='https://hylo.com/c/metamaps'></a>
|
2016-03-25 00:16:27 +00:00
|
|
|
|
|
|
|
<%= content_tag :div, class: "main" do %>
|
2016-10-22 08:46:39 +00:00
|
|
|
|
2016-08-16 15:38:05 +00:00
|
|
|
<% if params[:controller] == 'doorkeeper/applications' || params[:controller] == 'doorkeeper/authorized_applications'
|
|
|
|
classes = 'appsPage'
|
|
|
|
else
|
|
|
|
classes = ''
|
|
|
|
end
|
|
|
|
%>
|
2016-03-25 00:16:27 +00:00
|
|
|
|
2016-08-16 15:38:05 +00:00
|
|
|
<div class="wrapper <%= classes %>" id="wrapper">
|
2016-03-25 04:26:07 +00:00
|
|
|
|
2016-12-12 21:17:30 +00:00
|
|
|
<%= render :partial => 'layouts/upperelements', :locals => {:noHardHomeLink => true } %>
|
2016-03-25 00:16:27 +00:00
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
|
2016-08-16 15:38:05 +00:00
|
|
|
<div id="exploreMapsHeader">
|
|
|
|
<div class="exploreMapsBar exploreElement">
|
|
|
|
<div class="exploreMapsMenu">
|
|
|
|
<div class="exploreMapsCenter">
|
2016-10-22 08:46:39 +00:00
|
|
|
<% if current_user && current_user.admin %>
|
2016-08-16 15:38:05 +00:00
|
|
|
<a href="<%= oauth_applications_path %>" class="activeMaps exploreMapsButton <%= params[:controller] == 'doorkeeper/applications' ? 'active' : nil %>">
|
|
|
|
<div class="exploreMapsIcon"></div>Registered Apps
|
|
|
|
</a>
|
2016-10-22 08:46:39 +00:00
|
|
|
<% end %>
|
|
|
|
<a href="<%= oauth_authorized_applications_path %>" class="authedApps exploreMapsButton <%= params[:controller] == 'doorkeeper/authorized_applications' ? 'active' : nil %>">
|
2016-08-16 15:38:05 +00:00
|
|
|
<div class="exploreMapsIcon"></div>Authorized Apps
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-08-16 14:30:10 +00:00
|
|
|
<p id="toast" class="toast">
|
|
|
|
<% if devise_error_messages? %>
|
|
|
|
<%= devise_error_messages! %>
|
|
|
|
<% elsif notice %>
|
|
|
|
<%= notice %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
2016-03-25 00:16:27 +00:00
|
|
|
<div id="loading"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
2016-03-25 04:26:07 +00:00
|
|
|
<%= render :partial => 'layouts/foot' %>
|