Pārlūkot izejas kodu

Report Manager - Excel export fix and added localization

Tavares André 10 gadi atpakaļ
vecāks
revīzija
adc52db15a

+ 2 - 2
MediaBrowser.Api/Reports/Data/ReportExport.cs

@@ -175,7 +175,7 @@ namespace MediaBrowser.Api.Reports
 			if (reportResult.IsGrouped)
 				foreach (ReportGroup group in reportResult.Groups)
 				{
-					returnValue.AppendLine("<tr style='background-color: rgb(51, 51, 51);'>");
+					returnValue.AppendLine("<tr>");
 					returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + (string.IsNullOrEmpty(group.Name) ? "&nbsp;" : group.Name) + "</th>");
 					returnValue.AppendLine("</tr>");
 					foreach (ReportRow row in group.Rows)
@@ -183,7 +183,7 @@ namespace MediaBrowser.Api.Reports
 						ExportToExcelRow(reportResult, returnValue, row);
 					}
 					returnValue.AppendLine("<tr>");
-					returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + "&nbsp;" + "</th>");
+					returnValue.AppendLine("<th style='background-color: #ffffff;' scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + "&nbsp;" + "</th>");
 					returnValue.AppendLine("</tr>");
 				}
 

+ 6 - 1
MediaBrowser.Server.Implementations/Localization/Server/server.json

@@ -1435,5 +1435,10 @@
     "LabelSelectViewStyles": "Enable rich presentations for:",
     "LabelSelectViewStylesHelp": "If enabled, views will be built with metadata to offer categories such as Suggestions, Latest, Genres, and more. If disabled, they'll be displayed with simple folders.",
     "TabPhotos": "Photos",
-    "TabVideos": "Videos"
+	"TabVideos": "Videos",
+	"OptionReportList": "List View",
+    "OptionReportStatistics": "Statistics",
+    "OptionReportGrouping": "Grouping",
+    "OptionReportExport": "Report Export",
+    "OptionReportColumns": "Report Columns"
 }