Files @ c82ef5ec8dcd
Branch filter:

Location: kallithea/kallithea/templates/base/flash_msg.html

Mads Kiilerich
lib: refactor _get_access_path as get_path_info

We will need it later when it gets more tricky to get the path from environ ...
<div class="flash_msg">
    <% messages = h.pop_flash_messages() %>
    % if messages:
        <% alert_categories = {'warning': 'alert-warning', 'notice': 'alert-info', 'error': 'alert-danger', 'success': 'alert-success'} %>
        % for message in messages:
            <div class="alert alert-dismissable ${alert_categories[message.category]}" role="alert">
              <button type="button" class="close" data-dismiss="alert" aria-hidden="true"><i class="icon-cancel-circled"></i></button>
              ${message}
            </div>
        % endfor
    % endif
    <script>
    if (typeof jQuery != 'undefined') {
        $(".alert").alert();
    }
    </script>
</div>