mirror of
https://github.com/JuanCanham/jsonresume-theme-modern.git
synced 2024-11-25 09:40:10 +00:00
Merge pull request #2 from apeeyush/master
Format education area and studyType
This commit is contained in:
commit
f163174816
5
index.js
5
index.js
@ -15,6 +15,11 @@ function render(resumeObject) {
|
||||
}
|
||||
});
|
||||
_.each(resumeObject.education, function(e){
|
||||
if( !e.area || !e.studyType ){
|
||||
e.educationDetail = (e.area == null ? '' : e.area) + (e.studyType == null ? '' : e.studyType);
|
||||
} else {
|
||||
e.educationDetail = e.area + ", "+ e.studyType;
|
||||
}
|
||||
e.startDateYear = e.startDate.substr(0,4);
|
||||
if(e.endDate) {
|
||||
e.endDateYear = e.endDate.substr(0,4);
|
||||
|
@ -93,7 +93,7 @@
|
||||
<div class="skills">
|
||||
{{#education}}
|
||||
<h3>{{institution}}</h3>
|
||||
<h4>{{area}}, {{studyType}}</h4>
|
||||
<h4>{{educationDetail}}</h4>
|
||||
<p>{{startDateYear}} - {{endDateYear}}</p>
|
||||
<p>{{summary}}</p>
|
||||
<ul>
|
||||
|
Loading…
Reference in New Issue
Block a user