Downloadble stats
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
- key = @excel_data[:key] || 'excel.columns'
|
||||
%html
|
||||
%head
|
||||
= inject_css! if ENV["RAILS_ENV"] == 'test'
|
||||
%title
|
||||
=_!'Excel Spreadsheet'
|
||||
%body
|
||||
%table
|
||||
%thead
|
||||
%tr
|
||||
- @excel_data[:columns].each do |column|
|
||||
%th=_"#{key}.#{column.to_s}"
|
||||
%tbody
|
||||
- @excel_data[:data].each do |row|
|
||||
%tr
|
||||
- @excel_data[:columns].each do |column|
|
||||
%td=_!row[column]
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
= columns(medium: 12) do
|
||||
%h2=_'articles.conference_registration.headings.Stats'
|
||||
%p=_'articles.conference_registration.paragraphs.Stats', :p
|
||||
= link_to (_'links.download.Excel','Download Data in Excel Format'), stats_path(@this_conference.slug, :format => :xls), {:class => :button}
|
||||
= columns(medium: 6) do
|
||||
%ul.stats
|
||||
%li
|
||||
|
||||
@@ -42,7 +42,8 @@
|
||||
padding: 10px 20px;
|
||||
line-height: 50px;
|
||||
}
|
||||
h3 b a {
|
||||
h3 b a,
|
||||
h3 b a:visited {
|
||||
color: #FFF !important;
|
||||
background-color: #02CA9E;
|
||||
text-decoration: none !important;
|
||||
|
||||
Reference in New Issue
Block a user