app/views/layouts/application.html.erb
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= @page_title ? @page_title : controller.action_name %></title>
<%= stylesheet_link_tag 'application' %>
<%= javascript_include_tag 'application', 'projestimate_script', 'pager', 'scroll' %>
<%= javascript_include_tag "//www.google.com/jsapi", "chartkick" %>
<!-- INCLUDE THIS (CHANGE jQUERY PATH) SPARKOM SUPPORT -->
<%# if AdminSetting.find_by_key(:online_support).value == "Oui" %>
<script type="text/javascript" src="http://www.spark-angels.com/panserver3/multiwidget/spk_multiwidget.js"></script>
<%# end %>
<%= csrf_meta_tag %>
</head>
<body>
<%= render 'layouts/modal' %>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<div class="pull-left">
<% begin %>
<% if @project %>
<%= link_to(image_tag("/assets/Logo 200x75.png"), main_app.dashboard_path(@project)) %>
<% else %>
<%= link_to(image_tag("/assets/Logo 200x75.png"), main_app.organization_estimations_path(@organization)) %>
<% end %>
<% rescue %>
<%= link_to(image_tag("/assets/Logo 200x75.png"), main_app.projects_path) %>
<% end %>
</div>
<div class="pull-right" style="margin-top:16px; margin-left: 10px">
<%= render 'layouts/search_input' %>
</div>
<div class="pull-right" style="margin-top:16px; margin-left: 10px">
<% if defined?(current_user) %>
<%= render 'layouts/send_feedback', :handlers => [:erb], :formats => [:html] %>
<% end %>
</div>
<!--Support with Sparkom-->
<div class="pull-right" style="margin-top:16px; margin-left: 10px">
<%= render 'layouts/sparkom_support' %>
</div>
</div>
</div>
</div>
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<% if user_signed_in? %>
<%= render 'layouts/user_account' %>
<% end %>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<%= yield %>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12 text-center" style="margin-bottom: 30px ">
</div>
</div>
</div>
</body>
</html>
<%= render 'layouts/notifications' %>