Skip to content

Commit

Permalink
Report pages without any reports now display a message, closes #8.
Browse files Browse the repository at this point in the history
  • Loading branch information
remomueller committed Aug 10, 2019
1 parent 7c0ba89 commit 3aaaac0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## 11.0.0

### Enhancements
- **Report Changes**
- Report pages without any reports now display a message

## 10.0.0 (August 4, 2019)

### Enhancements
Expand Down
15 changes: 11 additions & 4 deletions app/views/internal/report_page.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
= render "internal/tabs"
- content_for :sidebar, render("internal/sidebar")

- @page.reports.where(archived: false).each do |report|
= render "reports/chart", report: report if report.chart?
= render "reports/table", report: report if report.table?
= render "reports/grades", report: report if report.grades?
- @reports = @page.reports.where(archived: false)

- if @reports.present?
- @reports.each do |report|
= render "reports/chart", report: report if report.chart?
= render "reports/table", report: report if report.table?
= render "reports/grades", report: report if report.grades?
- else
.jumbotron.jumbotron-custom-text.jumbotron-shadow
= icon("fas", "info-circle", class: "text-primary-muted")
No reports have been added to this page.

0 comments on commit 3aaaac0

Please sign in to comment.