-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added bootstrap progress bar example
- Loading branch information
1 parent
2e68836
commit 832f969
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
examples/bootstrap_progress_bar/bootstrap_progress_bar.html.haml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- css_classes = [("active" if defined?(active)), ("progress-striped" if defined?(striped))] | ||
|
||
.progress{:class => css_classes.join(" ")} | ||
.bar{:percent => "#{width}%"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%progress_bar_viewlet{:percent => 20, :stripped => true, :active => true} | ||
|
||
%progress_bar_viewlet | ||
percent 20 | ||
stripped | ||
active |