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.

badge.html.twig 374B

3 vuotta sitten
123456789101112131415
  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(status, title) %}
  11. <span class="badge badge-{{ status }}">{{ title }}</span>
  12. {% endmacro %}