# File lib/camping-abingo.rb, line 1134
        def self.common_abingo_views
                "\ndef abingo_dashboard\ndiv.abingo_dashboard! do\nh1 \"ABingo All Experiments\"\n\n@experiments.each do | experiment |\nabingo_experiment(experiment)\nend\nend\nend\n\ndef abingo_experiment(experiment)\nshort_circuit = \"\"\nAbingo.cache.read(\"ABingoCampingPlugin::Models::Experiment::short_circuit(\"+experiment.test_name+\")\".gsub(\" \", \"\"))\n\nh2 { span { experiment.id.to_s + ' - ' + experiment.test_name.titleize }\nspan(\"[Completed]\") if experiment.status != \"Live\"\n}\n\ntable.abingo_experiment_table :style=>\"\" do\ntr {       th {\"Name\"};\nth {\"Participants\"};\nth {\"Conversions\"};\nth {\"Notes\" }\n}\n\ntr.abingo_experiment_row {         td {\"Experiment Total: \"};\ntd { experiment.participants.to_s };\ntd { experiment.conversions.to_s + '(' + experiment.pretty_conversion_rate + ')' };\ntd { };\n}\n\nexperiment.alternatives.each do | alternative |\ntr.abingo_alternative_row {       td { h(alternative.content) };\ntd { alternative.participants.to_s };\ntd { alternative.conversions.to_s + '(' + alternative.pretty_conversion_rate + ')' };\ntd {\nunless experiment.status != \"Live\"\n\nonclickfn = <<-JAVASCRIPT\nif (confirm('Are you sure you want to terminate this experiment?  This is not reversible.')) {\nvar f = document.createElement('form');\nf.style.display = 'none';\nthis.parentNode.appendChild(f);\nf.method = 'POST';\nf.action = this.href;\nf.submit();\n};\nreturn false;\nJAVASCRIPT\n\na \"Terminate this Alternative\", :onclick=>onclickfn, :href=> \"/abingo/terminate?alternative_id=\" + alternative.id.to_s\nelse\nif alternative.content == short_circuit\nspan \"(All users seeing this.)\"\nend\nend\n};\n}\nend\n\ntr.abingo_experiment_row {         td :colspan=>'24' do\nspan(\"Significance test results: \" + experiment.describe_result_in_words)\nend\n}\n\nend\nend\n\ndef abingo_termination_notice\nh1 \"ABingo Dashboard - Termination Notice\"\ndiv { @abingo_notice }\nend\n\ndef abingo_dashboard_restricted_access\nh1 \"ABingo Dashboard - Restricted Access\"\ndiv \"Only the administrator can access the ABingo Dashboard.\"\nend\n\n"
        end