Sha256: 46f1fe2dda82f969368070adb2b5b6b889af790ce438772f46332556d9e5d338

Contents?: true

Size: 315 Bytes

Versions: 6

Compression:

Stored size: 315 Bytes

Contents

<%- 
    text, css_class = nil, nil
    [:alert_success, :alert_info, :alert_error].each do |key|
        if flash[key]
            text = flash[key]
            css_class = key.to_s.parameterize
        end
    end
-%>
<% if text %>
    <div class="alert <%= css_class %>">
        <%= text %>
    </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
umlaut-4.0.0.beta4 app/views/umlaut/_alerts.html.erb
umlaut-4.0.0.beta3 app/views/umlaut/_alerts.html.erb
umlaut-4.0.0.beta2 app/views/umlaut/_alerts.html.erb
umlaut-4.0.0.beta1 app/views/umlaut/_alerts.html.erb
umlaut-3.3.1 app/views/umlaut/_alerts.html.erb
umlaut-3.3.0 app/views/umlaut/_alerts.html.erb