unified project handling
This commit is contained in:
@@ -19,6 +19,14 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% macro list_projects(projects, tag) %}
|
||||||
|
{% set tag = tag|default('li') %}
|
||||||
|
{% for project in projects %}
|
||||||
|
<{{ tag }}><em>{{ project.name }}:</em>
|
||||||
|
{{ project.shortDescription }}</{{ tag }}>
|
||||||
|
{% endfor %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
||||||
{% macro list_link_array(entries, tag) %}
|
{% macro list_link_array(entries, tag) %}
|
||||||
{% set tag = tag|default('li') %}
|
{% set tag = tag|default('li') %}
|
||||||
|
|||||||
@@ -116,10 +116,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if person.projects|length > 0 %}
|
{% if projects|length > 0 %}
|
||||||
<h3>{{ 'resume.headers.current_projects'|trans }}</h3>
|
<h3>{{ 'resume.headers.current_projects'|trans }}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{ macros.list_simple_array(person.projects) }}
|
{{ macros.list_projects(projects) }}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -132,12 +132,6 @@ final class Person extends BaseModel implements PhotoInterface, AnalyzableInterf
|
|||||||
*/
|
*/
|
||||||
protected $interests = array();
|
protected $interests = array();
|
||||||
|
|
||||||
/**
|
|
||||||
* Current Projects
|
|
||||||
* @var array
|
|
||||||
*/
|
|
||||||
protected $projects = array();
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@@ -312,17 +306,6 @@ final class Person extends BaseModel implements PhotoInterface, AnalyzableInterf
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get current projects
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getProjects(): array
|
|
||||||
{
|
|
||||||
return $this->projects;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the work license
|
* Get the work license
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user