|
@@ -175,13 +175,15 @@ function modpol.interactions.org_dashboard(user, org_string)
|
|
local processes = {}
|
|
local processes = {}
|
|
print("All processes: (* indicates pending)")
|
|
print("All processes: (* indicates pending)")
|
|
for i,v in ipairs(org.processes) do
|
|
for i,v in ipairs(org.processes) do
|
|
- local active = ''
|
|
|
|
- if org.pending[user] then
|
|
|
|
- if org.pending[user][v.id] then
|
|
|
|
- active = '*'
|
|
|
|
|
|
+ if v ~= "deleted" then
|
|
|
|
+ local active = ''
|
|
|
|
+ if org.pending[user] then
|
|
|
|
+ if org.pending[user][v.id] then
|
|
|
|
+ active = '*'
|
|
|
|
+ end
|
|
end
|
|
end
|
|
|
|
+ print("["..v.id.."] "..v.slug..active)
|
|
end
|
|
end
|
|
- print("["..v.id.."] "..v.slug..active)
|
|
|
|
end
|
|
end
|
|
print()
|
|
print()
|
|
print("Interact with which one (use [id] number)?")
|
|
print("Interact with which one (use [id] number)?")
|