Skip to content

Commit

Permalink
Merge commit 'refs/pull/42/head' of github.com:adamhunter/dossier int…
Browse files Browse the repository at this point in the history
…o ah-upgrade
  • Loading branch information
adamhunter committed Aug 20, 2015
2 parents a6aed41 + 6cffba3 commit dbf4d4a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -10,6 +10,7 @@ Dossier does its best to use [semantic versioning](http://semver.org).
- introduced `format_column(column, value)` as a default formatter that can be implemented as a fall back if a specific format method does not exist
- Add license to gemspec, thanks to notice from [Benjamin Fleischer](https://github.com/bf4) - see [his blog post](http://www.benjaminfleischer.com/2013/07/12/make-the-world-a-better-place-put-a-license-in-your-gemspec/)
- Output files now have a sortable date/time stamp by default. Eg, "foo-report_2014-10-02_09-12-24-EDT.csv". This can still be customized by defining a report class's `filename` method.
- Add CSS classes to report `<table>` elements to facilitate styling.

## v2.8.0
- Support namespaces for report names (`cats/are/super_fun` => `Cats::Are::SuperRunReport`
Expand Down
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -181,9 +181,13 @@ It's up to you to use these options in generating your SQL query.

However, Dossier does support one URL parameter natively: if you supply a `footer` parameter with an integer value, the last N rows will be accesible via `report.results.footers` instead of `report.results.body`. The built-in `show` view renders those rows inside an HTML footer. This is an easy way to display a totals row or something similar.

## Styling

The default report views use a `<table class="dossier report">` for easy CSS styling.

## Additional View Customization

To further customize your results view, run the the generator provided. The default will provide 'app/views/dossier/reports/show'.
To further customize your results view, run the generator provided. The default will provide 'app/views/dossier/reports/show'.

```ruby
rails generate dossier:views
Expand Down
2 changes: 1 addition & 1 deletion app/views/dossier/reports/show.html.haml
Expand Up @@ -4,7 +4,7 @@

= render_options(report)

%table
%table.dossier.report
%thead
%tr
- report.results.headers.each do |header|
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/dossier/views/templates/show.html.haml
Expand Up @@ -4,7 +4,7 @@

= render_options(report)

%table
%table.dossier.report
%thead
%tr
- report.results.headers.each do |header|
Expand Down

0 comments on commit dbf4d4a

Please sign in to comment.