185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
# File 'lib/gonzui/webapp/servlet.rb', line 185
def make_status_line(status_title, *options)
status_line = [:table, {:class => "status"}]
items = do_make_status_line(*options)
right = (items.pop or "")
tds = []
tds.push([:td, {:class => "left"}, status_title])
items.each {|item|
tds.push([:td, {:class => "center"}, item])
}
unless right.empty?
r = [:td, {:class => "right"}, right]
r.push(" (", [:strong, sprintf("%.2f", Time.now - @start_time)],
_(" seconds)"))
tds.push(r)
end
status_line.push([:tr, *tds])
return status_line
end
|