Browse Source

Report Manager - Code fix

Tavares André 10 years ago
parent
commit
d2a8ca7f5f

+ 5 - 3
MediaBrowser.Api/Reports/Data/ReportExport.cs

@@ -145,7 +145,9 @@ namespace MediaBrowser.Api.Reports
 									border-color: #666666;
 									border-color: #666666;
 									background-color: #dedede;
 									background-color: #dedede;
 								}
 								}
-
+								table.gridtable tr {
+									background-color: #ffffff;
+								}
 								table.gridtable td {
 								table.gridtable td {
 									border-width: 0.1pt;
 									border-width: 0.1pt;
 									padding: 8px;
 									padding: 8px;
@@ -160,7 +162,7 @@ namespace MediaBrowser.Api.Reports
 							<head>
 							<head>
 							<meta http-equiv='X-UA-Compatible' content='IE=8, IE=9, IE=10' />
 							<meta http-equiv='X-UA-Compatible' content='IE=8, IE=9, IE=10' />
 							<meta charset='utf-8'>
 							<meta charset='utf-8'>
-							<title>Emby Export</title>";
+							<title>Emby Reports Export</title>";
 			Html += "\n" + style + "\n";
 			Html += "\n" + style + "\n";
 			Html += "</head>\n";
 			Html += "</head>\n";
 			Html += "<body>\n";
 			Html += "<body>\n";
@@ -180,7 +182,7 @@ namespace MediaBrowser.Api.Reports
 					{
 					{
 						ExportToExcelRow(reportResult, returnValue, row);
 						ExportToExcelRow(reportResult, returnValue, row);
 					}
 					}
-					returnValue.AppendLine("<tr style='background-color: white;'>");
+					returnValue.AppendLine("<tr>");
 					returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + "&nbsp;" + "</th>");
 					returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + "&nbsp;" + "</th>");
 					returnValue.AppendLine("</tr>");
 					returnValue.AppendLine("</tr>");
 				}
 				}

+ 6 - 0
MediaBrowser.WebDashboard/MediaBrowser.WebDashboard.csproj

@@ -135,6 +135,9 @@
     <Content Include="dashboard-ui\photos.html">
     <Content Include="dashboard-ui\photos.html">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>
+    <Content Include="dashboard-ui\ReportManager.html">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\scripts\dashboardhosting.js">
     <Content Include="dashboard-ui\scripts\dashboardhosting.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>
@@ -153,6 +156,9 @@
     <Content Include="dashboard-ui\scripts\photos.js">
     <Content Include="dashboard-ui\scripts\photos.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>
+    <Content Include="dashboard-ui\scripts\reportmanager.js">
+      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+    </Content>
     <Content Include="dashboard-ui\scripts\selectserver.js">
     <Content Include="dashboard-ui\scripts\selectserver.js">
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
       <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
     </Content>
     </Content>