Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

17 satır
594 B

  1. {% set type_mapping = {'info':'success', 'error': 'error', 'warning': 'warning'} %}
  2. {% set icon_mapping = {'info':'checkmark', 'error':'wrong', 'warning':'information'} %}
  3. {% if grav.messages.all %}
  4. <div id="messages">
  5. {% for message in grav.messages.fetch %}
  6. {% set scope = message.scope|e %}
  7. {% set type = type_mapping[scope] %}
  8. {% set icon = icon_mapping[scope] %}
  9. <div class="toast toast-{{ type }} {{ scope }}">
  10. <i class="icon dripicons-{{ icon }}"></i> {{ message.message|raw }}
  11. </div>
  12. {% endfor %}
  13. </div>
  14. {% endif %}