You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
458B

  1. {% macro badge_success(title) %}
  2. {{ _self.badge('success', title) }}
  3. {% endmacro %}
  4. {% macro badge_warning(title) %}
  5. {{ _self.badge('warning', title) }}
  6. {% endmacro %}
  7. {% macro badge_danger(title) %}
  8. {{ _self.badge('danger', title) }}
  9. {% endmacro %}
  10. {% macro badge_info(title) %}
  11. {{ _self.badge('info', title) }}
  12. {% endmacro %}
  13. {% macro badge(status, title) %}
  14. <span class="badge badge-{{ status }}">{{ title }}</span>
  15. {% endmacro %}