lib/fukuzatsu/formatters/templates/index.html.haml in fukuzatsu-1.0.6 vs lib/fukuzatsu/formatters/templates/index.html.haml in fukuzatsu-2.1.1

- old
+ new

@@ -7,34 +7,23 @@ %script{language: "javascript", src: "http://code.jquery.com/jquery-1.11.0.min.js", type: "text/javascript"} %script{language: "javascript", src: "http://code.jquery.com/jquery-migrate-1.2.1.min.js", type: "text/javascript"} %script{language: "javascript", src: "http://cdn.datatables.net/1.10.0/js/jquery.dataTables.js", type: "text/javascript"} %style{media: "screen", type: "text/css"} - body { background: #593232; color: #fff; font-family: arial, sans-serif; padding: 2em; } - table { box-shadow: 0 5px 0 rgba(0,0,0,.8); background: #444; border-spacing: 0; border: 5px solid #000; border-radius: 25px; border-collapse: collapse; min-width: 50%; } - th.sorting_asc, th.sorting_desc { text-transform: uppercase !important; font-size: .8em !important; background-image: none !important; background: rgba(64, 41, 41, .5) !important;} - th.sorting { background-position: left !important; border-right: 1px solid #222; text-transform: uppercase !important; font-size: .8em !important} - tr.header th:first-child { border-radius: 6px 0 0 0; } - tr.header th:last-child { border-radius: 0 6px 0 0; } - tr.header th:only-child { border-radius: 6px 6px 0 0; } - tr.header { background-color: #222; } - tr.even { background: rgba(128, 128, 128, 0.5) !important;} - tr.odd { background: rgba(128, 128, 128, 0.25) !important} - tr.even:hover, tr.odd:hover { background: rgba(128, 128, 128, 0.75) !important;} - th { background: #000; text-align: left; padding: .5em; } - td { text-align: left; padding: .5em; padding-left: 1.25em !important;} - td.center { text-align: center; } - td.sorting_1 { background: none !important; padding-left: 1.25em !important; } - tfoot { background: #000; border-top: 10px solid #000; font-family: courier; margin-top: 4em; font-size: .75em; } - a:link, a:visited { color: #aaa } - div.file_meta { float: left; height: 3em; width: 30%; } - h1 { color:#fff; font-size: 1.25em; margin-top: .25em; } - h2 { color:#fff; font-size: .75em; margin-top: -1em; } - h3 { color:#fff; font-size: 1em; float: right; margin-top: 1em; } - td.sorting_1 { background: none !important; padding-left: 1.25em !important; } + body { font-family: Arial, sans-serif; font-size: 13px; padding: 2em; } + + a { color: #900; } + table { border: 4px solid #444; width: 100%; } + + tr.sort-controls th { background-color: #999 !important; font-size: .75em; text-transform: uppercase; text-align: left; } + + tr.header th, tfoot { background-color: #444 !important; color: #fff; } + tfoot td { font-size: .75em; } + tr.odd td { background-color: #eee; } + div.dataTables_filter { margin-bottom: 2em !important; } - div.dataTables_filter label { color: #fff; } + div.dataTables_filter label { color: ::fff; } div.dataTables_paginate { display: none !important; } div.dataTables_info { display: none !important; } %body %table{class: "output-table"} @@ -42,34 +31,34 @@ %tr.header %th{colspan: 4} .file_meta %h1 Project Overview - %tr + %tr.sort-controls %th File %th Module/Class Name %th Complexity %th Details %tbody - - file_summary.each do |summary| + - summaries.each do |summary| %tr %td - %a{href: "#{summary[:path_to_file]}.htm"} - = summary[:path_to_file] + %a{href: "#{summary.source_file}.htm"} + = summary.source_file %td - - if summary[:class_name].size > 25 + - if summary.entity.full_name.size > 50 = "..." - = summary[:class_name][-24..-1] + = summary.entity.full_name[-49..-1] - else - = summary[:class_name] + = summary.entity.full_name %td - = summary[:complexity] + = sprintf("%0.2f", summary.average_complexity) %td - %a{href: "#{summary[:path_to_file]}.htm"} + %a{href: "#{summary.source_file}.htm"} View Details %tfoot %tr %td.center{colspan: 4} %em