Skip to content

Commit

Permalink
Adding icons next to reports to indicate reports with charts, configu…
Browse files Browse the repository at this point in the history
…rable reports, etc.

Fixed CSV reports not prompting for download.
  • Loading branch information
jdorn committed Jul 2, 2012
1 parent 53f8a94 commit cbf76bd
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/report_formats/CsvReportFormat.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ public static function display(&$report, &$request) {

$file_name = preg_replace(array('/[\s]+/','/[^0-9a-zA-Z\-_\.]/'),array('_',''),$report->options['Name']);

//header("Content-type: application/csv");
//header("Content-Disposition: attachment; filename=".$file_name.".csv");
header("Content-type: application/csv");
header("Content-Disposition: attachment; filename=".$file_name.".csv");
header("Pragma: no-cache");
header("Expires: 0");

Expand Down
Binary file added public/images/bug--plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/calendar--pencil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/chevron-expand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/disk-black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/disk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/document-code.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/document-excel-csv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/drill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/mail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/prohibition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/question.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/toggle-expand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/toggle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/traffic-light-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/ui-slider-vertical-050.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/wrench--exclamation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion templates/html/report_list_item.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,24 @@
{% endfor %}
</div>
{% endif %}
{% else %}
{% elseif not item.ignore %}
<div class='report'>
<a href='{{item.url}}' id='report_{{item.Id}}'>{{item.Name}}</a>
{% if item.Variables %}
<img alt='Configurable' title='Configurable' src='{{base}}/public/images/ui-slider-vertical-050.png' />
{% endif %}
{% if item.Charts %}
<img alt='Contains graphs/charts' title='Contains graphs/charts' src='{{base}}/public/images/chart.png' />
{% endif %}
{% if item.stop %}
<img alt='Warning!' title='Warning!' src='{{base}}/public/images/prohibition.png' />
{% endif %}
{% if item.Caution %}
<img alt='Contains graphs/charts' title='Contains graphs/charts' src='{{base}}/public/images/chart.png' />
{% endif %}
{% if item.Detail %}
<img alt='Contains drill down links' title='Contains drill down links' src='{{base}}/public/images/drill.png' />
{% endif %}
{% if item.Created %}
<em>{{ item.Created }}</em>
{% endif %}
Expand Down

0 comments on commit cbf76bd

Please sign in to comment.