Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
Reduce confusion when reading this section of the file.
  • Loading branch information
garethrees committed Feb 5, 2024
1 parent 61878ae commit 0516d47
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions app/views/layouts/default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -84,34 +84,36 @@
</div>

<% unless @render_to_file %>
<%= render partial: 'ga_code' unless @user&.is_admin? %>
<%= render partial: 'ga_code' unless @user&.is_admin? %>
<%= javascript_include_tag "application" %>
<% if is_admin? %>
<%= javascript_include_tag "bootstrap-dropdown" %>
<% end %>
<%= javascript_include_tag "application" %>
<% if is_admin? %>
<%= javascript_include_tag "bootstrap-dropdown" %>
<% end %>
<% if AlaveteliConfiguration::force_registration_on_new_request && !@user %>
<%= javascript_include_tag 'fancybox.js' %>
<script type="text/javascript">
$(document).ready(function() {
$("#make-request-link").fancybox({
'modal': false,
'width': 950,
'height': 400,
'type': 'iframe',
'href': '/<%= AlaveteliLocalization.locale %>/profile/sign_in?modal=1',
'onClosed': function() {
// modal_signin_successful variable set by modal dialog box
if (typeof modal_signin_successful != 'undefined' ) {
window.location.href = '<%= select_authority_url %>';
<% if AlaveteliConfiguration::force_registration_on_new_request && !@user %>
<%= javascript_include_tag 'fancybox.js' %>
<script type="text/javascript">
$(document).ready(function() {
$("#make-request-link").fancybox({
'modal': false,
'width': 950,
'height': 400,
'type': 'iframe',
'href': '/<%= AlaveteliLocalization.locale %>/profile/sign_in?modal=1',
'onClosed': function() {
// modal_signin_successful variable set by modal dialog box
if (typeof modal_signin_successful != 'undefined' ) {
window.location.href = '<%= select_authority_url %>';
}
}
}
});
});
});
</script>
<% end %>
<%= content_for :javascript %>
</script>
<% end %>
<%= content_for :javascript %>
<% end %>
<%= render :partial => 'general/before_body_end' %>
Expand Down

0 comments on commit 0516d47

Please sign in to comment.