_notification.html.slim 888 Bytes
Newer Older
1
- if notice.present? || alert.present? || @custom_notice.present?
2
  - notice = @custom_notice if @custom_notice.present?
3
4
5
6
7
  - if notice.is_a? String
    .alert.alert-warning.alert-dismissible role='alert'
      button.close aria-label='Close' data-dismiss='alert' type='button'
        span aria-hidden='true'  ×
      = notice || alert
8
  - elsif notice.is_a? Hash
9
10
11
12
13
14
15
16
17
    .alert.alert-danger.alert-dismissible role='alert'
      button.close aria-label='Close' data-dismiss='alert' type='button' X
      h4= notice['message']
      - if notice['model_message'].present?
        p=  notice['model_message']
      p
        button.btn.btn-default.m-r-10 aria-label='Close' data-dismiss='alert' type='button' Abbrechen
        - if notice['action_link'].present?
          = link_to(notice['action_link']['text'], notice['action_link']['path'], target: '_blank', class: 'btn btn-default')