Removed teamlead column
This commit is contained in:
+2
-2
@@ -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
@@ -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) |"
|
||||||
|
|||||||
Reference in New Issue
Block a user