mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 09:17:42 +00:00
Use custom favicon when one is available
This commit is contained in:
parent
1904aa3eec
commit
448b5420ec
@ -839,10 +839,16 @@ class ReportHTML implements TableReportModule {
|
|||||||
indexOut = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indexFilePath), "UTF-8")); //NON-NLS
|
indexOut = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(indexFilePath), "UTF-8")); //NON-NLS
|
||||||
StringBuilder index = new StringBuilder();
|
StringBuilder index = new StringBuilder();
|
||||||
final String reportTitle = reportBranding.getReportTitle();
|
final String reportTitle = reportBranding.getReportTitle();
|
||||||
|
String iconPath = reportBranding.getAgencyLogoPath();
|
||||||
|
if (iconPath == null){
|
||||||
|
// use default Autopsy icon if custom icon is not set
|
||||||
|
iconPath = "favicon.ico";
|
||||||
|
}
|
||||||
index.append("<head>\n<title>").append(reportTitle).append(" ").append(
|
index.append("<head>\n<title>").append(reportTitle).append(" ").append(
|
||||||
NbBundle.getMessage(this.getClass(), "ReportHTML.writeIndex.title", currentCase.getName())).append(
|
NbBundle.getMessage(this.getClass(), "ReportHTML.writeIndex.title", currentCase.getName())).append(
|
||||||
"</title>\n"); //NON-NLS
|
"</title>\n"); //NON-NLS
|
||||||
index.append("<link rel=\"icon\" type=\"image/ico\" href=\"favicon.ico\" />\n"); //NON-NLS
|
index.append("<link rel=\"icon\" type=\"image/ico\" href=\"")
|
||||||
|
.append(iconPath).append("\" />\n"); //NON-NLS
|
||||||
index.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); //NON-NLS
|
index.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n"); //NON-NLS
|
||||||
index.append("</head>\n"); //NON-NLS
|
index.append("</head>\n"); //NON-NLS
|
||||||
index.append("<frameset cols=\"350px,*\">\n"); //NON-NLS
|
index.append("<frameset cols=\"350px,*\">\n"); //NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user