@@ -56,8 +56,7 @@ private void HtmlBody()
56
56
using ( OpenTag ( "<div id='main'>" , HtmlTag . div ) )
57
57
{
58
58
Header ( ) ;
59
- ResultSummary ( ) ;
60
- ResultOptions ( ) ;
59
+ ResultSummary ( ) ;
61
60
ResultDetails ( ) ;
62
61
}
63
62
@@ -94,63 +93,36 @@ private void ResultSummary()
94
93
}
95
94
}
96
95
97
- using ( OpenTag ( "<div class='tilerow'>" , HtmlTag . div ) )
96
+ using ( OpenTag ( "<div class='tilerow' id='filterOptions' >" , HtmlTag . div ) )
98
97
{
99
- using ( OpenTag ( "<div class='tile tileNoHover one limebg'>" , HtmlTag . div ) )
100
- {
101
- AddLine ( "<h4>PASSED</h4>" ) ;
102
- AddLine ( string . Format ( "<h1>{0}</h1>" , _model . Summary . Passed ) ) ;
103
- }
104
- using ( OpenTag ( "<div class='tile tileNoHover one redbg'>" , HtmlTag . div ) )
105
- {
106
- AddLine ( "<h4>FAILED</h4>" ) ;
107
- AddLine ( string . Format ( "<h1>{0}</h1>" , _model . Summary . Failed ) ) ;
108
- }
109
- using ( OpenTag ( "<div class='tile tileNoHover one orangebg'>" , HtmlTag . div ) )
110
- {
111
- AddLine ( "<h4>INCONCLUSIVE</h4>" ) ;
112
- AddLine ( string . Format ( "<h1>{0}</h1>" , _model . Summary . Inconclusive ) ) ;
113
- }
114
- using ( OpenTag ( "<div class='tile tileNoHover one bluebg'>" , HtmlTag . div ) )
98
+
99
+ var tileOptions = new [ ]
100
+ {
101
+ Tuple . Create ( "Passed" , "limebg" , _model . Summary . Passed ) ,
102
+ Tuple . Create ( "Failed" , "redbg" , _model . Summary . Failed ) ,
103
+ Tuple . Create ( "Inconclusive" , "orangebg" , _model . Summary . Inconclusive ) ,
104
+ Tuple . Create ( "NotImplemented" , "bluebg" , _model . Summary . NotImplemented )
105
+ } ;
106
+
107
+
108
+ foreach ( var tileOption in tileOptions )
115
109
{
116
- AddLine ( "<h4>NOT IMPLEMENTED</h4>" ) ;
117
- AddLine ( string . Format ( "<h1>{0}</h1>" , _model . Summary . NotImplemented ) ) ;
110
+ using ( OpenTag ( "<a href='#'>" , HtmlTag . a ) )
111
+ {
112
+ using (
113
+ OpenTag ( string . Format ( "<div class='tile one {0}' data-target-class='{1}'>" , tileOption . Item2 , tileOption . Item1 ) , HtmlTag . div ) )
114
+ {
115
+ AddLine ( string . Format ( "<h4>{0}</h4>" , tileOption . Item1 . ToUpperInvariant ( ) ) ) ;
116
+ AddLine ( string . Format ( "<h1>{0}</h1>" , tileOption . Item3 ) ) ;
117
+ }
118
+ }
118
119
}
119
120
}
120
121
}
121
122
}
122
123
}
123
124
124
- private void ResultOptions ( )
125
- {
126
- using ( OpenTag ( "<section id='resultOptions' class='group'>" , HtmlTag . section ) )
127
- {
128
- AddLine ( "<h3>options</h3>" ) ;
129
- using ( OpenTag ( "<ul id='filterOptions'>" , HtmlTag . ul ) )
130
- {
131
- using ( OpenTag ( "<li class='Passed'>" , HtmlTag . li ) )
132
- {
133
- AddLine ( "<input id='passedFilter' type='checkbox' checked='' data-target-class='Passed'>" ) ;
134
- AddLine ( "<label for='passedFilter'>passed</label>" ) ;
135
- }
136
- using ( OpenTag ( "<li class='Failed'>" , HtmlTag . li ) )
137
- {
138
- AddLine ( "<input id='failedFilter' type='checkbox' checked='' data-target-class='Failed'>" ) ;
139
- AddLine ( "<label for='failedFilter'>failed</label>" ) ;
140
- }
141
- using ( OpenTag ( "<li class='Inconclusive'>" , HtmlTag . li ) )
142
- {
143
- AddLine ( "<input id='inconclusiveFilter' type='checkbox' checked='' data-target-class='Inconclusive'>" ) ;
144
- AddLine ( "<label for='inconclusiveFilter'>inconclusive</label>" ) ;
145
- }
146
- using ( OpenTag ( "<li class='NotImplemented'>" , HtmlTag . li ) )
147
- {
148
- AddLine ( "<input id='notImplementedFilter' type='checkbox' checked='' data-target-class='NotImplemented'>" ) ;
149
- AddLine ( "<label for='notImplemented'>not implemented</label>" ) ;
150
- }
151
- }
152
- }
153
- }
125
+
154
126
155
127
private void ExpandCollapse ( )
156
128
{
@@ -189,7 +161,7 @@ private void Footer()
189
161
else
190
162
EmbedJavascriptFile ( HtmlReportResources . jquery_2_1_0_min ) ;
191
163
192
- EmbedJavascriptFile ( HtmlReportResources . classic_js_min ) ;
164
+ EmbedJavascriptFile ( HtmlReportResources . metro_js_min ) ;
193
165
EmbedJavascriptFile ( _model . CustomJavascript , HtmlReportResources . CustomJavascriptComment ) ;
194
166
}
195
167
0 commit comments