• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zostera / django-bootstrap4 / 8830227319

25 Apr 2024 09:28AM CUT coverage: 90.904%. First build
8830227319

Pull #724

github

web-flow
Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0

Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.0.0 to 2.1.0.
- [Release notes](https://github.com/dependabot/fetch-metadata/releases)
- [Commits](https://github.com/dependabot/fetch-metadata/compare/v2.0.0...v2.1.0)

---
updated-dependencies:
- dependency-name: dependabot/fetch-metadata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #724: Bump dependabot/fetch-metadata from 2.0.0 to 2.1.0

315 of 388 branches covered (81.19%)

Branch coverage included in aggregate %.

1274 of 1360 relevant lines covered (93.68%)

9.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.74
/src/bootstrap4/components.py
1
from django.utils.safestring import mark_safe
10✔
2
from django.utils.translation import gettext as _
10✔
3

4
from bootstrap4.utils import render_tag
10✔
5

6
from .text import text_value
10✔
7

8

9
def render_alert(content, alert_type=None, dismissible=True):
10✔
10
    """Render a Bootstrap alert."""
11
    button = ""
10✔
12
    if not alert_type:
10✔
13
        alert_type = "info"
10✔
14
    css_classes = ["alert", "alert-" + text_value(alert_type)]
10✔
15
    if dismissible:
10!
16
        css_classes.append("alert-dismissible")
10✔
17
        close = _("close")
10✔
18
        button = f'<button type="button" class="close" data-dismiss="alert" aria-label="{close}">&times;</button>'
10✔
19
    button_placeholder = "__BUTTON__"
10✔
20
    return mark_safe(
10✔
21
        render_tag(
22
            "div",
23
            attrs={"class": " ".join(css_classes), "role": "alert"},
24
            content=mark_safe(button_placeholder) + text_value(content),
25
        ).replace(button_placeholder, button)
26
    )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc