Sha256: c2bfe9173dfd8d6595963d3d7b8bd0f5b56a7a067bd10efb967ed2b191ec9a8c
Contents?: true
Size: 838 Bytes
Versions: 2
Compression:
Stored size: 838 Bytes
Contents
<%# Used to render a unique flash message styling %> <%% if request.xhr? flash_message = flash.now[:success] || flash.now[:notice] || flash.now[:alert] style_classes = "" else style_classes = "mt-10 mb-5 ml-40 mr-40" flash_message = flash[:success] || flash[:notice] || flash[:alert] end cls_name = "alert" cls_name = 'alert-success' if flash.now[:success] || flash[:success] cls_name = 'alert-notice' if flash.now[:notice] || flash[:notice] cls_name = 'alert-error' if flash.now[:alert] || flash[:alert] flash_message = flash_message.strip if flash_message %> <%% unless flash_message.blank? %> <div class="<%%= style_classes %> alert <%%= cls_name %> fade in" data-alert="alert" style="m-bottom:5px;"> <a class="close" data-dismiss='alert' href="#">×</a> <p><%%= flash_message %></p> </div> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems