Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

17 行
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 %}