Skip to content

Instantly share code, notes, and snippets.

@hoangbits
Created July 5, 2017 03:42
Show Gist options
  • Save hoangbits/abfab5ec3b064d01d59a95353ffb82e3 to your computer and use it in GitHub Desktop.
Save hoangbits/abfab5ec3b064d01d59a95353ffb82e3 to your computer and use it in GitHub Desktop.
<div class="row">
<div class="col-lg-12">
<% if (typeof success_msg !== 'undefined' && success_msg) { %>
<div class="alert alert-success"><%= success_msg %></div>
<% } %>
<% if(typeof error_msg !== 'undefined'){ %>
<div class="alert alert-danger"><%= error_msg %></div>
<% } %>
<% if (typeof error !== 'undefined' && error){ %>
<div class="alert alert-danger"><%= error %></div>
<% } %>
</div>
<div class="text-center p-b-10">
<span class="text-red">
<%= typeof success_msg == 'undefined' ? '' : success_msg %>
<%= typeof error_msg == 'undefined' ? '' : error_msg %>
<%= typeof error == 'undefined' ? '' : error %>
</span>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment