Removed teamlead column

This commit is contained in:
Lee Olayvar
2014-11-22 01:29:25 +00:00
parent 2e521c440b
commit 4a9d61fd0f
2 changed files with 11 additions and 13 deletions
+2 -2
View File
@@ -23,5 +23,5 @@ the folder with your team name and inside this folder, create two files:
We will periodically run a script that will pull your info and populate We will periodically run a script that will pull your info and populate
the lower section of this README.md file. the lower section of this README.md file.
| #TeamName | Team Lead | Team Members | Team Page | | #TeamName | Team Members | Team Page |
|---------------|-----------|--------------|-----------| |---------------|--------------|-----------|
+9 -11
View File
@@ -47,9 +47,11 @@ format_json = (data, filepath) ->
# Get the lead, ahead of time. # Get the lead, ahead of time.
teamLead = null teamLead = null
if data.members? and data.members instanceof Array if data.members? and data.members instanceof Array
for member in data.members for member, i in data.members
if member.lead is true if member.lead is true
teamLead = member teamLead = member
data.members.splice i, 1
data.members.unshift teamLead
break break
output = '|' output = '|'
@@ -67,20 +69,16 @@ format_json = (data, filepath) ->
else else
output += " |" output += " |"
# Second column, TeamLead # Second column, TeamMembers
if teamLead?
output += "#{format_member teamLead} |"
else
output += " |"
# Third column, TeamMembers
if data.members? and data.members instanceof Array if data.members? and data.members instanceof Array
for member in data.members for member in data.members
output += "#{format_member member} output += format_member member
#{member.location ? ''}<br>" output += " #{member.location}" if member.location?
output += " *(team lead)*" if member.lead is true
output += "<br>"
output += " |" output += " |"
# Fourth column, TeamPage # Third column, TeamPage
if data.teamName? then teamName = data.teamName if data.teamName? then teamName = data.teamName
else teamName = teamPathName else teamName = teamPathName
output += " [#{teamName}](./Teams/#{teamPathName}/ABOUT.md) |" output += " [#{teamName}](./Teams/#{teamPathName}/ABOUT.md) |"