Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Space between slash and crumb #56

Closed
davidmoremad opened this issue Nov 1, 2018 · 4 comments
Closed

Space between slash and crumb #56

davidmoremad opened this issue Nov 1, 2018 · 4 comments

Comments

@davidmoremad
Copy link

davidmoremad commented Nov 1, 2018

Version: django-bootstrap-breadcrumbs==0.9.1

The breadcrumbs should looks like Home / Users / John Doe but it looks like Home /Users /John Doe. (See the lack of space between the slash and the word)

base.py

  {% block breadcrumbs %}
    {% breadcrumb "Home" "/" %}
  {% endblock %}

users.py

{% block breadcrumbs %}
  {{ block.super }}
  {% breadcrumb "Users" "users" %}
{% endblock %}

profile.py

{% block breadcrumbs %}
  {{ block.super }}
  {% breadcrumb id "users.views.profile" user.username %}
{% endblock %}

The fix I'm using:

ul.breadcrumb span.divider{
  margin-right: 5px;
}
@prymitive
Copy link
Owner

prymitive commented Nov 1, 2018

Which template are you using and what's your bootstrap version?
django-bootstrap-breadcrumbs itself doesn't provide any css, it just generates HTML markup for bootstrap

@davidmoremad
Copy link
Author

Im using bootstrap 4.1.3 and breadcrumb & breadcrumb_safe templates.

@prymitive
Copy link
Owner

By "template" I mean the HTML template, default one is for bootstrap v2, see docs section on that.
You probably want to add BREADCRUMBS_TEMPLATE = "django_bootstrap_breadcrumbs/bootstrap4.html" to settings.py

@davidmoremad
Copy link
Author

That solves my problem. Was the breadcrumbs_template.

Cheers !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants