Format education area and studyType

Earlier, it used to leave a comma if any of them was absent.
This commit is contained in:
peeyush 2014-07-09 20:15:35 +05:30
parent 1777bbf44a
commit 0ba55cbc87
2 changed files with 6 additions and 1 deletions

View File

@ -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);

View File

@ -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>