From 2cb3a327f6875a8140dd35a0996b27ed800232a1 Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Thu, 7 Dec 2023 23:09:45 +0100 Subject: [PATCH 1/7] cv-x-wing-squadron-create-header-section --- .../export-config/export-config.component.tsx | 2 +- .../profile-section/profile-section.mapper.ts | 7 +- .../profile-section/profile-section.vm.ts | 3 + .../header-element-end/header-element-end.ejs | 1 + .../header-element-end.part.ts | 4 + .../html-parts/header-element-end/index.ts | 1 + .../header-element-start.ejs | 1 + .../header-element-start.part.ts | 4 + .../html-parts/header-element-start/index.ts | 1 + .../header-section/header-section.ejs | 117 ++++++++++++++++++ .../header-section/header-section.part.ts | 16 +++ .../html-parts/header-section/index.ts | 1 + .../cv-x-wing-squadron/html-parts/index.ts | 3 + .../src/engine/cv-x-wing-squadron/index.ts | 14 ++- packages/manfred2html/src/engine/index.ts | 3 + 15 files changed, 175 insertions(+), 3 deletions(-) create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.ejs create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.part.ts create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/index.ts create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.ejs create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.part.ts create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/index.ts create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.part.ts create mode 100644 packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/index.ts diff --git a/apps/react-app/src/pods/template-export/components/export-config/export-config.component.tsx b/apps/react-app/src/pods/template-export/components/export-config/export-config.component.tsx index 12954622..b5a70b5c 100644 --- a/apps/react-app/src/pods/template-export/components/export-config/export-config.component.tsx +++ b/apps/react-app/src/pods/template-export/components/export-config/export-config.component.tsx @@ -17,7 +17,7 @@ interface Props { } const DOWNLOAD_MESSAGE_TIMEOUT = 2500; -const DESING_OPTIONS: TemplateCV[] = ['Sith Elegance', 'Galactic CleanTech']; +const DESING_OPTIONS: TemplateCV[] = ['Sith Elegance', 'Galactic CleanTech', 'X-Wing Squadron']; const LANGUAGE_OPTIONS: Language[] = ['es', 'en']; export const ExportConfig: React.FC = props => { diff --git a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.ts b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.ts index 93194a1b..d55d6d14 100644 --- a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.ts +++ b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.ts @@ -30,7 +30,9 @@ export const mapFromMacCvToProfileSectionVm = (cv: ManfredAwesomicCV): ProfileSe const relevantLinks = cv?.aboutMe?.relevantLinks ? mapRelevantLinksToVm(cv.aboutMe.relevantLinks as ManfredRelevantLink[]) : []; - + const avatar = (cv?.aboutMe?.profile?.avatar?.link as string) ?? ''; + const regionLocation = cv?.aboutMe?.profile?.location?.region ?? ''; + const countryLocation = cv?.aboutMe?.profile?.location?.country ?? ''; return { name, surnames, @@ -39,5 +41,8 @@ export const mapFromMacCvToProfileSectionVm = (cv: ManfredAwesomicCV): ProfileSe fullname, emails, relevantLinks, + avatar, + regionLocation, + countryLocation, }; }; diff --git a/packages/manfred-common/src/doc-parts/profile-section/profile-section.vm.ts b/packages/manfred-common/src/doc-parts/profile-section/profile-section.vm.ts index c2c848c8..4bae9fbf 100644 --- a/packages/manfred-common/src/doc-parts/profile-section/profile-section.vm.ts +++ b/packages/manfred-common/src/doc-parts/profile-section/profile-section.vm.ts @@ -6,6 +6,9 @@ export interface ProfileSectionVm { fullname: string; emails: string[]; relevantLinks: RelevantLinkVm[]; + avatar: string; + regionLocation: string; + countryLocation: string; } export interface RelevantLinkVm { diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.ejs b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.ejs new file mode 100644 index 00000000..9fca915f --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.ejs @@ -0,0 +1 @@ + diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.part.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.part.ts new file mode 100644 index 00000000..8412032b --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/header-element-end.part.ts @@ -0,0 +1,4 @@ +import ejs from 'ejs'; +import headerElementEndTemplate from './header-element-end.ejs?raw'; + +export const generateHeaderElementEnd = (): string => ejs.render(headerElementEndTemplate); diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/index.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/index.ts new file mode 100644 index 00000000..a3cb12e2 --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-end/index.ts @@ -0,0 +1 @@ +export * from './header-element-end.part'; diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.ejs b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.ejs new file mode 100644 index 00000000..39ffd5ec --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.ejs @@ -0,0 +1 @@ +
diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.part.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.part.ts new file mode 100644 index 00000000..df24cee8 --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/header-element-start.part.ts @@ -0,0 +1,4 @@ +import ejs from 'ejs'; +import headerElementStartTemplate from './header-element-start.ejs?raw'; + +export const generateHeaderElementStart = (): string => ejs.render(headerElementStartTemplate); diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/index.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/index.ts new file mode 100644 index 00000000..9eca2091 --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-element-start/index.ts @@ -0,0 +1 @@ +export * from './header-element-start.part'; diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs new file mode 100644 index 00000000..35a0caaf --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs @@ -0,0 +1,117 @@ +<%_ if (profile && profile !== 'undefined') { -%> + <%_ if (profile.avatar && profile.avatar.link) { -%> + photo cv + <%_ } -%> +
+
+ + + +

<%= profile.name %>

+

<%= profile?.surnames %>

+

<%= profile?.title %>

+
+ <%_ if (profile.regionLocation && profile.countryLocation && profile.regionLocation !== 'undefined' && profile.countryLocation !== 'undefined') { -%> +
+ + + + + + + + + + +

<%= profile?.regionLocation %>, <%= profile?.countryLocation %>

+
+ <%_ } -%> + <%_ if (profile.relevantLinks && profile.relevantLinks.length !== 0) { -%> + +
+<%_ } -%> + + + + diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.part.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.part.ts new file mode 100644 index 00000000..8f6b362a --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.part.ts @@ -0,0 +1,16 @@ +import { ManfredAwesomicCV } from '@/model'; +import { ProfileSectionVm, mapFromMacCvToProfileSectionVm } from '@lemoncode/manfred-common/profile-section'; +import headerSection from './header-section.ejs?raw'; +import ejs from 'ejs'; + +export const generateHeaderSection = (cv: ManfredAwesomicCV): string => { + const profileSectionVm = mapFromMacCvToProfileSectionVm(cv); + return generateHeaderSectionInner(profileSectionVm); +}; + +const generateHeaderSectionInner = (profileSectionVm: ProfileSectionVm): string => { + const rootObject = { + profile: profileSectionVm, + }; + return ejs.render(headerSection, rootObject); +}; diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/index.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/index.ts new file mode 100644 index 00000000..af70765e --- /dev/null +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/index.ts @@ -0,0 +1 @@ +export * from './header-section.part'; diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/index.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/index.ts index 84aacfe0..323c8406 100644 --- a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/index.ts +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/index.ts @@ -1,2 +1,5 @@ export * from './html-document-start'; export * from './html-document-end'; +export * from './header-element-start'; +export * from './header-element-end'; +export * from './header-section'; diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/index.ts b/packages/manfred2html/src/engine/cv-x-wing-squadron/index.ts index b5246bb8..132262ee 100644 --- a/packages/manfred2html/src/engine/cv-x-wing-squadron/index.ts +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/index.ts @@ -1,12 +1,24 @@ import { ManfredAwesomicCV } from '@/model'; -import { generateHtmlDocumentStart, generateHtmlDocumentEnd } from './html-parts'; +import { + generateHtmlDocumentStart, + generateHtmlDocumentEnd, + generateHeaderElementEnd, + generateHeaderElementStart, + generateHeaderSection, +} from './html-parts'; export const exportManfredJsonToCVXWingHTML = (manfredJsonContent: ManfredAwesomicCV): string => { const htmlDocumentStart = generateHtmlDocumentStart(); const htmlDocumentEnd = generateHtmlDocumentEnd(); + const headerElementStart = generateHeaderElementStart(); + const headerElementEnd = generateHeaderElementEnd(); + const headerSection = generateHeaderSection(manfredJsonContent); return ` ${htmlDocumentStart} + ${headerElementStart} + ${headerSection} + ${headerElementEnd} ${htmlDocumentEnd} `; }; diff --git a/packages/manfred2html/src/engine/index.ts b/packages/manfred2html/src/engine/index.ts index f18b08ad..1db8b55c 100644 --- a/packages/manfred2html/src/engine/index.ts +++ b/packages/manfred2html/src/engine/index.ts @@ -2,6 +2,7 @@ import { ManfredAwesomicCV, ExportHTMLSettings } from '@/model'; import { mapExportHTMLSettingsToSettings } from '@/mappers'; import { exportManfredJSonToCVSithEleganceHTML } from './cv-sith-elegance'; import { exportManfredJSonToCVGalacticCleanTechHTML } from './cv-galactic-cleantech'; +import { exportManfredJsonToCVXWingHTML } from './cv-x-wing-squadron'; export const exportHTMLTemplate = ( manfredJsonContent: ManfredAwesomicCV, @@ -14,6 +15,8 @@ export const exportHTMLTemplate = ( return exportManfredJSonToCVSithEleganceHTML(manfredJsonContent, settings); case 'Galactic CleanTech': return exportManfredJSonToCVGalacticCleanTechHTML(manfredJsonContent, settings); + case 'X-Wing Squadron': + return exportManfredJsonToCVXWingHTML(manfredJsonContent); default: throw new Error('Template not found'); } From cc4f2b52648870daec809e79cdd40cf407b09df8 Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Fri, 8 Dec 2023 11:08:25 +0100 Subject: [PATCH 2/7] modified unit test profile-section-mapper.spec.ts --- .../profile-section.mapper.spec.ts | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts index 45229254..1b1f670a 100644 --- a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts +++ b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts @@ -82,6 +82,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], + avatar: ' ', + regionLocation: ' ', + countryLocation: ' ', }; // Act @@ -101,6 +104,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], + avatar: ' ', + regionLocation: ' ', + countryLocation: ' ', }; // Act @@ -132,6 +138,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], + avatar: ' ', + regionLocation: ' ', + countryLocation: ' ', }; // Act @@ -163,6 +172,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], + avatar: ' ', + regionLocation: ' ', + countryLocation: ' ', }; // Act @@ -203,6 +215,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], + avatar: ' ', + regionLocation: ' ', + countryLocation: ' ', }; // Act @@ -244,6 +259,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], + avatar: ' ', + regionLocation: ' ', + countryLocation: ' ', }; // Act @@ -295,6 +313,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: 'John Doe', emails: ['john.doe@mydomain.com', 'john.doe@anydomain.com'] as string[], relevantLinks: [theLink] as RelevantLinkVm[], + avatar: 'undefined', + regionLocation: 'undefined', + countryLocation: 'undefined', }; // Act From 0f5caa6ea8119de98922e9fce2af4d3943e0906e Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Fri, 8 Dec 2023 11:37:19 +0100 Subject: [PATCH 3/7] change profile section mapper spect --- .../profile-section.mapper.spec.ts | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts index 1b1f670a..4818444b 100644 --- a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts +++ b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts @@ -82,9 +82,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], - avatar: ' ', - regionLocation: ' ', - countryLocation: ' ', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act @@ -104,9 +104,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], - avatar: ' ', - regionLocation: ' ', - countryLocation: ' ', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act @@ -138,9 +138,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], - avatar: ' ', - regionLocation: ' ', - countryLocation: ' ', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act @@ -172,9 +172,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], - avatar: ' ', - regionLocation: ' ', - countryLocation: ' ', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act @@ -215,9 +215,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], - avatar: ' ', - regionLocation: ' ', - countryLocation: ' ', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act @@ -259,9 +259,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: ' ', emails: [] as string[], relevantLinks: [] as RelevantLinkVm[], - avatar: ' ', - regionLocation: ' ', - countryLocation: ' ', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act From ac468a92f242119ca223947dde14071bc1034cd8 Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Fri, 8 Dec 2023 11:45:23 +0100 Subject: [PATCH 4/7] changed test returns cv with proper data when fields from aboutMe --- .../doc-parts/profile-section/profile-section.mapper.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts index 4818444b..84714297 100644 --- a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts +++ b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts @@ -314,8 +314,8 @@ describe('Testing profile-section.mapper.ts', () => { emails: ['john.doe@mydomain.com', 'john.doe@anydomain.com'] as string[], relevantLinks: [theLink] as RelevantLinkVm[], avatar: 'undefined', - regionLocation: 'undefined', - countryLocation: 'undefined', + regionLocation: 'location unknown', + countryLocation: 'country unknown', }; // Act From a85e316a01237c6268e54835771612ed7332e3f6 Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Mon, 11 Dec 2023 14:09:53 +0100 Subject: [PATCH 5/7] changed mapper.spec.ts --- .../profile-section.mapper.spec.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts index 84714297..f5fd66fc 100644 --- a/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts +++ b/packages/manfred-common/src/doc-parts/profile-section/profile-section.mapper.spec.ts @@ -288,9 +288,14 @@ describe('Testing profile-section.mapper.ts', () => { title: 'Computer Science Bachelor', description: 'Frontend developer', birthday: '30/03/1990', - avatar: undefined, + avatar: { + link: '', + }, contact: theContact, - location: undefined, + location: { + country: '', + region: '', + }, }; const cv: ManfredAwesomicCV = { @@ -313,9 +318,9 @@ describe('Testing profile-section.mapper.ts', () => { fullname: 'John Doe', emails: ['john.doe@mydomain.com', 'john.doe@anydomain.com'] as string[], relevantLinks: [theLink] as RelevantLinkVm[], - avatar: 'undefined', - regionLocation: 'location unknown', - countryLocation: 'country unknown', + avatar: '', + regionLocation: '', + countryLocation: '', }; // Act @@ -325,4 +330,5 @@ describe('Testing profile-section.mapper.ts', () => { }); }); }); + export {}; From 2a6e0412e14bb155f803b38931aff101993ed554 Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Thu, 14 Dec 2023 13:40:31 +0100 Subject: [PATCH 6/7] changed avatar.link, location and relevant links --- .../header-section/header-section.ejs | 84 +------------------ 1 file changed, 2 insertions(+), 82 deletions(-) diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs index 35a0caaf..a19f8271 100644 --- a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs @@ -1,5 +1,5 @@ <%_ if (profile && profile !== 'undefined') { -%> - <%_ if (profile.avatar && profile.avatar.link) { -%> + <%_ if (profile.avatar && profile.avatar) { -%> photo cv <%_ } -%>
@@ -11,7 +11,7 @@

<%= profile?.surnames %>

<%= profile?.title %>

- <%_ if (profile.regionLocation && profile.countryLocation && profile.regionLocation !== 'undefined' && profile.countryLocation !== 'undefined') { -%> + <%_ if (profile.regionLocation && profile.countryLocation) { -%>
@@ -29,86 +29,6 @@

<%= profile?.regionLocation %>, <%= profile?.countryLocation %>

<%_ } -%> - <%_ if (profile.relevantLinks && profile.relevantLinks.length !== 0) { -%> -
<%_ } -%> From ad4322914f87f58d086464471d3bf318a1f5ace3 Mon Sep 17 00:00:00 2001 From: MTeresaMB Date: Thu, 14 Dec 2023 13:56:16 +0100 Subject: [PATCH 7/7] changed files --- .../html-parts/header-section/header-section.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs index a19f8271..9bfff9f8 100644 --- a/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs +++ b/packages/manfred2html/src/engine/cv-x-wing-squadron/html-parts/header-section/header-section.ejs @@ -1,5 +1,5 @@ <%_ if (profile && profile !== 'undefined') { -%> - <%_ if (profile.avatar && profile.avatar) { -%> + <%_ if (profile.avatar) { -%> photo cv <%_ } -%>
@@ -11,7 +11,7 @@

<%= profile?.surnames %>

<%= profile?.title %>

- <%_ if (profile.regionLocation && profile.countryLocation) { -%> + <%_ if (profile.regionLocation) { -%>