update logo

This commit is contained in:
dpurbosakti
2025-12-17 15:37:31 +07:00
parent 918bbaa315
commit 8986231d72
4 changed files with 12 additions and 3 deletions
+2 -2
View File
@@ -48,7 +48,7 @@
<table style="width: 100%; border-collapse: collapse">
<tr>
<td style="text-align: center">
<img src="/assets/docs/logo-provinsi-jawa-timur.png" alt="logo" style="height: 70px" />
<img src="{{ .JatimLogo }}" alt="logo" style="height: 70px" />
</td>
<td style="text-align: center">
<div style="font-size: 14px; font-weight: bold">
@@ -68,7 +68,7 @@
<div>Website: www.rsudsaifulanwar.jatimprov.go.id</div>
</td>
<td style="text-align: center">
<img src="/assets/docs/logo-rssa.png" alt="logo" style="height: 70px" />
<img src="{{ .RssaLogo }}" alt="logo" style="height: 70px" />
</td>
</tr>
</table>
+6 -1
View File
@@ -3,7 +3,8 @@ package docscfg
import a "github.com/karincake/apem"
type DocsCfg struct {
Path string
Path string
Domain string
}
var O DocsCfg = DocsCfg{}
@@ -15,3 +16,7 @@ func ParseCfg() {
func (c DocsCfg) GetPath() string {
return c.Path
}
func (c DocsCfg) GetDomain() string {
return c.Domain
}
@@ -332,6 +332,8 @@ func generateResumeTemplateData(resume er.Resume, event pl.Event, tx *gorm.DB) (
// templateData.ControlHealthcare = get from vclaim sep eg. III
// templateData.ControlUnit = get from vclaim sep eg. R.KERINCI - KLS 3
// templateData.ControlDate = get from vclaim sep eg. 2022-01-01
templateData.RssaLogo = docscfg.O.GetDomain() + "assets/docs/logo-rssa.png"
templateData.JatimLogo = docscfg.O.GetDomain() + "assets/docs/logo-provinsi-jawa-timur.png"
return &templateData, nil
}
@@ -66,6 +66,8 @@ type ResumePDF struct {
ControlUnit string
ControlDate string
Date string
RssaLogo string
JatimLogo string
}
type ScreeningPDF struct {