An open API service indexing awesome lists of open source software.

https://github.com/codevise/pageflow-new-pages-box

A widget to display recently added pages
https://github.com/codevise/pageflow-new-pages-box

Last synced: 5 months ago
JSON representation

A widget to display recently added pages

Awesome Lists containing this project

README

          

# Pageflow New Pages Box

[![Gem Version](https://badge.fury.io/rb/pageflow-new-pages-box.svg)](http://badge.fury.io/rb/pageflow-new-pages-box)

A small box listing the pages that were added since your last visit

## Installation

Add this line to your application's `Gemfile`:

gem 'pageflow-new-pages-box'

Register the widget type inside the configure block in `config/initializers/pageflow.rb`

Pageflow.configure do |config|
config.widget_types.register(Pageflow::NewPagesBox.widget_type, default: true)
end

Include javascripts and stylesheets:

# app/assets/javascripts/pageflow/application.js
//= require pageflow/new_pages_box

# app/assets/stylesheets/pageflow/application.scss
@import "pageflow/new_pages_box";

# Adding basic style to your theme
# app/assets/stylesheets/pageflow/themes/default.scss
@import "pageflow/new_pages_box/themes/default";

Execute `bundle install` Restart the application server.

## Troubleshooting

If you run into problems while installing the page type, please also refer to the
[Troubleshooting](https://github.com/codevise/pageflow/wiki/Troubleshooting) wiki
page in the [Pageflow repository](https://github.com/codevise/pageflow). If that
doesn't help, consider
[filing an issue](https://github.com/codevise/pageflow-new-pages-box/issues).

## Contributing Locales

Edit the translations directly on the
[pageflow-new-pages-box](http://www.localeapp.com/projects/public?search=tf/pageflow-new-pages-box)
locale project.