in www/roster/views/nonpmc/members.js.rb [64:161]
def render
_tr do
if @@auth
_td do
_input type: 'checkbox', checked: @@person.selected || false,
onClick: -> {self.toggleSelect(@@person)}
end
end
if @@person.member == true
_td { _b { _a @@person.id, href: "committer/#{@@person.id}"} }
_td @@person.githubUsername
_td { _b @@person.name }
elsif @@person.member
_td { _i { _a @@person.id, href: "committer/#{@@person.id}"} }
_td @@person.githubUsername
_td { _i @@person.name
_ ' ('
_ @@person.member.sub(%r{( \(Non-voting\))? Member}, '').sub(%r{^Emeritus}, 'ASF Emeritus')
_ ')'
}
else
_td { _a @@person.id, href: "committer/#{@@person.id}" }
_td @@person.githubUsername
_td @@person.name
end
_td @@person.date
if @state == :open
_td data_ids: @@person.id, onDoubleClick: self.select do
if not @@person.date
_button.btn.btn_warning 'Remove from LDAP',
data_action: 'remove pmc',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Remove #{@@person.name} from LDAP?"
unless @@nonpmc.roster.keys().empty?
_button.btn.btn_success 'Add to committee-info.txt',
data_action: 'add info',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Add to #{@@person.name} committee-info.txt"
end
elsif not @@person.ldap
_button.btn.btn_success 'Add to LDAP',
data_action: 'add pmc',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Add #{@@person.name} to LDAP?"
_button.btn.btn_warning 'Remove from committee-info.txt',
data_action: 'remove info',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation:
"Remove #{@@person.name} from committee-info.txt?"
else
if @@nonpmc.committers.include? @@person.id
_button.btn.btn_warning 'Remove only from Committee',
data_action: 'remove pmc info',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Remove #{@@person.name} from the " +
"#{@@nonpmc.display_name} Committee but leave as a committer?"
_button.btn.btn_warning 'Remove as committer and from Committee',
data_action: 'remove pmc info commit',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Remove #{@@person.name} as committer and " +
"from the #{@@nonpmc.display_name} Committee?"
else
_button.btn.btn_warning 'Remove from Committee',
data_action: 'remove pmc info',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Remove #{@@person.name} from the " +
"#{@@nonpmc.display_name} Committee?"
_button.btn.btn_primary 'Add as a committer',
data_action: 'add commit',
data_target: '#confirm', data_toggle: 'modal',
data_confirmation: "Grant #{@@person.name} committer access?"
end
end
end
elsif not @@person.date
_td.issue.clickable 'not in committee-info.txt', onClick: self.select
elsif @@nonpmc.hasLDAP and not @@person.ldap
_td.issue.clickable 'not in LDAP', onClick: self.select
elsif @@nonpmc.hasLDAP and not @@nonpmc.committers.include? @@person.id
_td.issue.clickable 'not in committer list', onClick: self.select
elsif @@person.id == @@nonpmc.chair
_td.chair.clickable 'chair', onClick: self.select
else
_td.clickable '', onClick: self.select
end
end
end