A navigation bar resembling a progress bar.
Add this line to your application's Gemfile
:
gem 'pageflow-progress-navigation-bar'
Register the widget types inside the configure block in config/initializers/pageflow.rb
Pageflow.configure do |config|
config.widget_types.register(Pageflow::ProgressNavigationBar.vertical_widget_type)
config.widget_types.register(Pageflow::ProgressNavigationBar.horizontal_widget_type)
end
Include javascripts and stylesheets:
# app/assets/javascripts/pageflow/application.js
//= require pageflow/progress_navigation_bar
# app/assets/stylesheets/pageflow/application.scss
@import "pageflow/progress_navigation_bar";
# Adding basic style to your theme
# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/progress_navigation_bar/themes/default";
Execute bundle install
Restart the application server.
If you run into problems while installing the page type, please also refer to the Troubleshooting wiki page in the Pageflow repository. If that doesn't help, consider filing an issue.
Edit the translations directly on the pageflow-progress-navigation-bar locale project.