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

Add progress_bar helper #29

Merged
merged 1 commit into from
Sep 17, 2014
Merged

Add progress_bar helper #29

merged 1 commit into from
Sep 17, 2014

Conversation

claudiob
Copy link
Collaborator

This stems from the amazing work of @buren (buren@a8ad37c and buren@fb75487) applying the comments listed at #15

The syntax for progress bar would be the following. Thumbs up @buren ?

Basic

<%= progress_bar %>

<%= progress_bar percentage: 60 %>

With label

<%= progress_bar percentage: 60, label: true %>

<%= progress_bar percentage: 60, label: "two thirds completed" %>

Low percentages

(nothing to do)


<%= progress_bar percentage: 0, label: true %>


<%= progress_bar percentage: 2, label: true %>

Context

<%= progress_bar percentage: 60, context: :success %>

Striped

<%= progress_bar percentage: 60, striped: true %>

Animated

<%= progress_bar percentage: 60, animated: true %>

Stacked

<%= progress_bar [{percentage: 30, context: :success}, {percentage: 40, context: :warning}] %>

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 39e5055 on claudiob:add-progress-bar into 7e66ad0 on Fullscreen:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 69ccfb0 on claudiob:add-progress-bar into 7e66ad0 on Fullscreen:master.

@claudiob
Copy link
Collaborator Author

@buren And here is the documentation (to be merged after this PR goes into master) > http://claudiob.github.io/bh/#progress_bars

@claudiofullscreen claudiofullscreen mentioned this pull request Sep 17, 2014
43 tasks
@buren
Copy link
Contributor

buren commented Sep 17, 2014

👍

claudiofullscreen pushed a commit that referenced this pull request Sep 17, 2014
@claudiofullscreen claudiofullscreen merged commit 3b1ae16 into nullscreen:master Sep 17, 2014
@claudiob claudiob deleted the add-progress-bar branch September 17, 2014 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants