# File lib/mongrel_config/win32_app.rb, line 146
146:     def list
147:       div :id=>"viewport" do
148:         table do
149:           tr { th { "Service"}; th { "Status"}; th { "Control" }; th { "Delete" } }
150:           @services.each do |s|
151:             status = W32Support.status(s.service_name)
152:             tr { 
153:               td { a(s.service_name, :href => "/info/#{s.service_name}") }
154:               td { status.capitalize }
155:               td { 
156:                 if status =~ /stopped/
157:                   a("start",:href => "/start/#{s.service_name}")
158:                 elsif status =~ /running/
159:                   a("stop",:href => "/stop/#{s.service_name}") 
160:                 else
161:                   b { "in progress" }
162:                 end
163:               }
164:               td {
165:                 a("delete!",:href => "/delete/#{s.service_name}", 
166:                   :onclick=>"return confirm('Delete #{s.service_name}?') == '1'")
167:               }
168:             }
169:           end
170:         end
171:       end
172:     end