data_models: change connections' order

This commit is contained in:
Sina Atalay 2024-04-15 01:54:59 +03:00
parent 5008837682
commit a501b59fba
1 changed files with 11 additions and 9 deletions

View File

@ -901,6 +901,16 @@ class CurriculumVitae(RenderCVBaseModel):
"""Return all the connections of the person."""
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:
connections.append(
{
@ -910,6 +920,7 @@ class CurriculumVitae(RenderCVBaseModel):
"placeholder": self.email,
}
)
if self.phone is not None:
phone_placeholder = self.phone.replace("tel:", "").replace("-", " ")
connections.append(
@ -931,15 +942,6 @@ class CurriculumVitae(RenderCVBaseModel):
"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:
icon_dictionary = {