New thread because the old one is too busy now.
# Show outstanding emeritus requests
ASF::EmeritusRequestFiles.listnames(true).each do |epoch, file|
days = (((Time.now.to_i - epoch.to_i).to_f/SECS_TO_DAYS)).round(1)
id = File.basename(file,'.*')
@messages << {
time: Time.at(epoch.to_i).gmtime.iso8601,
href: "/roster/committer/#{id}",
from: ASF::Person.find(id).cn,
subject: "Pending emeritus request - #{days.to_s} days old",
status: days < 10.0 ? 'Pending' : 'Ready'
}
end
Other status for messages is shown as a constant, e.g. :deletePending. So
should we define the two statuses as :emeritusPending and :emeritusReady?
_tr row_options do
target = (message.status == :emeritusReady) ? "_blank" : "_self"
_td do
_a time, target: target, href: "#{message.href}", title:
message.time
end
_td message.from
_td message.subject
end
Craig L Russell
[email protected]