summaryrefslogtreecommitdiff
path: root/web/lib/ui/reports.rb
blob: 0302d1c7ca915054f9cd6db0ddb03d0bac2af6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# web/lib/ui/reports.rb
class Taginfo < Sinatra::Base

    get! '/reports' do
        @title = t.taginfo.reports
        erb :'reports/index'
    end

    Report.each do |report|
        get report.url do
            section :reports
            if File.exists?("viewsjs/reports/#{ report.name }.js.erb")
                javascript "#{ r18n.locale.code }/reports/#{ report.name }"
            end
            javascript_for(:flexigrid)
            erb ('reports/' + report.name).to_sym
        end
    end

end