Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Bubbles on SB-Admin. #17

Closed
BMeridian opened this issue Nov 4, 2013 · 5 comments
Closed

Update Bubbles on SB-Admin. #17

BMeridian opened this issue Nov 4, 2013 · 5 comments

Comments

@BMeridian
Copy link

Can you point to docs where I could find info on how to
update bubbles on menu bar in SB-admin?

@dennis27
Copy link

dennis27 commented Nov 4, 2013

The "bubbles" are Bootstrap badges. They are created like so:

   <span class="badge">7</span>

The ones you are asking about are found in the navbar

   <ul class="nav navbar-nav navbar-right navbar-user">
      ...
   </ul>

@BMeridian
Copy link
Author

Yes, thanks..

You setup the badge for "Inbox" without a "name', 'id' , "class" property.
The number '7' is referred in
four different places two referring to the inbox. Should the span tag for
the bubble have an id or name
in addition to the bootstrap class reference...

How would I fix?

On Mon, Nov 4, 2013 at 3:02 PM, Dennis Vaughn notifications@github.comwrote:

The "bubbles" are Bootstrap badgeshttp://getbootstrap.com/components/#badges.
They are created like so:

7

The ones you are asking about are found in the navbarhttp://getbootstrap.com/components/#navbar

    ...


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-27717669
.

@dennis27
Copy link

dennis27 commented Nov 4, 2013

I am not an owner/contributor to the project but I don't think the templates are necessarily to be taken as is. I suppose if you want to access the badge span by id you could easily add that. You can access the span via the messages-dropdown class as well. The selector would look something like the following for jQuery, which would return you the badge element at which time you could manipulate it any way you want.

   $('.messages-dropdown a .badge')

@BMeridian
Copy link
Author

Thanks.

Do you want to leave issue open so maintainer see it?

On Mon, Nov 4, 2013 at 3:38 PM, Dennis Vaughn notifications@github.comwrote:

I am not an owner/contributor to the project but I don't think the
templates are necessarily to be taken as is. I suppose if you want to
access the badge span by id you could easily add that. You can access the
span via the messages-dropdown class as well. The selector would look
something like the following for jQuery, which would return you the badge
element at which time you could manipulate it any way you want.

$('.messages-dropdown a .badge')


Reply to this email directly or view it on GitHubhttps://github.com//issues/17#issuecomment-27720417
.

@BlackrockDigital
Copy link
Collaborator

This is the sort of feature that you would have to add on your own. The numbers that I threw in there are just placeholders. I imagined that someone who wanted to use this template would use PHP or something to display the number within the badges. If you want to add classes, id's, names, whatever then feel free to do so, but dennis27 is correct in that the templates aren't built to be implemented as is, there is some customization still left to be done.

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

No branches or pull requests

2 participants