in www/roster/views/ppmc/mentors.js.rb [49:121]
def render
_tr do
if @@auth.ipmc
_td do
_input type: 'checkbox', checked: @@person.selected || false,
onChange: -> {self.toggleSelect(@@person)}
end
end
if @@person.member == true
_td { _b { _a @@person.id, href: "committer/#{@@person.id}" }
_a ' (*)', href: "ppmc/#{@@ppmc.id}#crosscheck" if @@person.notSubbed
}
_td @@person.githubUsername
_td { _b @@person.name }
elsif @@person.member
_td { _i { _a @@person.id, href: "committer/#{@@person.id}" }
_a ' (*)', href: "ppmc/#{@@ppmc.id}#crosscheck" if @@person.notSubbed
}
_td @@person.githubUsername
_td { _i @@person.name
_ ' ('
_ @@person.member.sub(%r{( \(Non-voting\))? Member}, '').sub(%r{^Emeritus}, 'ASF Emeritus')
_ ')'
}
elsif @@person.name
_td { _a @@person.id, href: "committer/#{@@person.id}"
_a ' (*)', href: "ppmc/#{@@ppmc.id}#crosscheck" if @@person.notSubbed
}
_td @@person.githubUsername
_td @@person.name
else
_td @@person.id
_td @@person.githubUsername
_td @@person.name
end
_td data_ids: @@person.id do
if @@person.selected
if @@auth.ppmc
unless @@ppmc.owners.include? @@person.id
_button.btn.btn_primary 'Add to the PPMC',
data_action: 'add ppmc committer',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Add #{@@person.name} as member of the " +
"#{@@ppmc.display_name} PPMC?"
else
unless @@ppmc.committers.include? @@person.id
_button.btn.btn_primary 'Add to the podling committers',
data_action: 'add committer',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Add #{@@person.name} as committer of the " +
"#{@@ppmc.display_name} PPMC?"
end
end
end
elsif not @@person.name
_span.issue 'invalid user'
elsif not @@ppmc.owners.include? @@person.id
_span.issue 'not on the PPMC'
elsif not @@ppmc.committers.include? @@person.id
_span.issue 'not listed as a podling committer'
elsif not @@person.ipmc
_span.issue 'not on the IPMC'
elsif not @@person.icommit
_span.issue 'not listed as an incubator committer'
end
end
end
end