Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<div class='row'>
<div id='content-column' class="col-md-8 col-sm-9 col-xs-12">
<%= yield %>
</div>
<div class="col-md-4 col-sm-3 col-xs-12">
<%= render 'home/management_content' %>
</div>
</div>
</div>
</div>
<a href="#" id="scroll-top" title="Scroll to Top"><i class="fa fa-angle-up"></i></a>
</div><!-- wrap -->
<!-- Disable side menu for now -->
<% render 'layouts/side_menu' %>
<%= render 'layouts/footer' %>
<% if user_signed_in? %>
<%= render partial: 'shared/popup', locals: { id: "welcome-popup", title: I18n.t('titles.welcome', name: current_user.make_a_name), body_id: "welcome-notice", partial: 'mangets/content/welcome_popup', link: edit_preferences_user_path(current_user), footer: I18n.t('titles.preferences') } %>
<% else %>
<%= render partial: 'shared/popup', locals: { id: "welcome-popup", title: I18n.t('titles.welcome_stranger'), body_id: "welcome-modal-body", partial: 'mangets/content/welcome_popup' } %>
<% end %>
<input id="default_locale" type="hidden" value='<%= I18n.locale.to_s %>'></input>
</body>
</html>
<script>
$(document).ready(function() {
$("#open-welcome-popup").click(function(event) {
$("#welcome-popup").modal("show");
return false;
});
$(".btn-with-spinner").click(function(event) {
$("body").addClass("spinner_modal");
// return window.location = "/dependants/" + $("#dependant_customer_id").val() + "/edit";
});
<% bg = get_preferred_skin_for(current_user) %>
<% if user_signed_in? && (current_user.wallpaper.present? || (bg.present? && SkinColour.use_light_foreground(bg))) %>
$("div.article-container").addClass("light_foreground");
$("div.welcome-area").addClass("light_foreground");
$("div.article-editor").addClass("light_foreground");
$("span.comment-counter").addClass("light_foreground");
<% end %>
});
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39100716-3', 'auto');
ga('set', 'page', window.location.pathname);
ga('send', 'pageview');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment