mirror of https://github.com/eyhc1/rendercv.git
data_models: change connections' order
This commit is contained in:
parent
5008837682
commit
a501b59fba
|
@ -901,6 +901,16 @@ class CurriculumVitae(RenderCVBaseModel):
|
||||||
"""Return all the connections of the person."""
|
"""Return all the connections of the person."""
|
||||||
connections: list[dict[str, str]] = []
|
connections: list[dict[str, str]] = []
|
||||||
|
|
||||||
|
if self.location is not None:
|
||||||
|
connections.append(
|
||||||
|
{
|
||||||
|
"latex_icon": "\\faMapMarker*",
|
||||||
|
"url": None,
|
||||||
|
"clean_url": None,
|
||||||
|
"placeholder": self.location,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
if self.email is not None:
|
if self.email is not None:
|
||||||
connections.append(
|
connections.append(
|
||||||
{
|
{
|
||||||
|
@ -910,6 +920,7 @@ class CurriculumVitae(RenderCVBaseModel):
|
||||||
"placeholder": self.email,
|
"placeholder": self.email,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.phone is not None:
|
if self.phone is not None:
|
||||||
phone_placeholder = self.phone.replace("tel:", "").replace("-", " ")
|
phone_placeholder = self.phone.replace("tel:", "").replace("-", " ")
|
||||||
connections.append(
|
connections.append(
|
||||||
|
@ -931,15 +942,6 @@ class CurriculumVitae(RenderCVBaseModel):
|
||||||
"placeholder": website_placeholder,
|
"placeholder": website_placeholder,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if self.location is not None:
|
|
||||||
connections.append(
|
|
||||||
{
|
|
||||||
"latex_icon": "\\faMapMarker*",
|
|
||||||
"url": None,
|
|
||||||
"clean_url": None,
|
|
||||||
"placeholder": self.location,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
if self.social_networks is not None:
|
if self.social_networks is not None:
|
||||||
icon_dictionary = {
|
icon_dictionary = {
|
||||||
|
|
Loading…
Reference in New Issue