Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Bootstrap 3 RC1 #7

Closed
JonoB opened this issue Jul 30, 2013 · 4 comments
Closed

Bootstrap 3 RC1 #7

JonoB opened this issue Jul 30, 2013 · 4 comments
Assignees

Comments

@JonoB
Copy link

JonoB commented Jul 30, 2013

For those using the latest version of Bootstrap 3 (at the time of writing RC1), a small change needs to be made.

http://getbootstrap.com/components/#breadcrumbs

Separators are automatically added in CSS through :before and content.

The view changes as follows:

@if ($breadcrumbs)
    <ul class="breadcrumb">
        @foreach ($breadcrumbs as $breadcrumb)
            @if (!$breadcrumb->last)
                <li>
                    <a href="{{{ $breadcrumb->url }}}">{{{ $breadcrumb->title }}}</a>
                </li>
            @else
                <li class="active">
                    {{{ $breadcrumb->title }}}
                </li>
            @endif
        @endforeach
    </ul>
@endif

See https://github.com/davejamesmiller/laravel-breadcrumbs#2-create-a-template-that-renders-the-breadcrumbs-optional for how to implement

@ghost ghost assigned d13r Jul 30, 2013
@d13r
Copy link
Owner

d13r commented Jul 30, 2013

Thanks for the code. I'll add this template as breadcrumbs::bootstrap3 when I have time to do so, or feel free to make a PR.

@Kaishiyoku
Copy link

+1
I wanted to post this, too.

@Burnett01
Copy link

👍

@d13r d13r closed this as completed in ad8aaae Aug 4, 2013
@d13r
Copy link
Owner

d13r commented Aug 4, 2013

I have added this to the dev-master version and updated the instructions in the README.

@k1ng440 k1ng440 mentioned this issue Dec 14, 2014
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

4 participants