Sha256: ccaee06360d479109fed38bdc7960399e17c289b58775f6a997ab2a3b1c51f97

Contents?: true

Size: 312 Bytes

Versions: 16

Compression:

Stored size: 312 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.dasherize
        end
    end
-%>
<% if text %>
    <div class="alert <%= css_class %>">
        <%= text %>
    </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
umlaut-4.1.7 app/views/umlaut/_alerts.html.erb
umlaut-4.1.6 app/views/umlaut/_alerts.html.erb
umlaut-4.1.5 app/views/umlaut/_alerts.html.erb
umlaut-4.1.4 app/views/umlaut/_alerts.html.erb
umlaut-4.1.3 app/views/umlaut/_alerts.html.erb
umlaut-4.1.2 app/views/umlaut/_alerts.html.erb
umlaut-4.1.1 app/views/umlaut/_alerts.html.erb
umlaut-4.1.0 app/views/umlaut/_alerts.html.erb
umlaut-4.1.0.pre3 app/views/umlaut/_alerts.html.erb
umlaut-4.1.0.pre.2 app/views/umlaut/_alerts.html.erb
umlaut-4.1.0.pre.alpha.1 app/views/umlaut/_alerts.html.erb
umlaut-4.0.3 app/views/umlaut/_alerts.html.erb
umlaut-4.0.2 app/views/umlaut/_alerts.html.erb
umlaut-4.0.1 app/views/umlaut/_alerts.html.erb
umlaut-4.0.0 app/views/umlaut/_alerts.html.erb
umlaut-4.0.0.beta5 app/views/umlaut/_alerts.html.erb