1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

Feature #4217: Rename DATE to REGTIME

This commit is contained in:
Daniel Molina 2016-02-11 19:08:05 +01:00
parent d60f4a8cb1
commit 1ed5847e72
2 changed files with 7 additions and 7 deletions

View File

@ -24,8 +24,8 @@
:desc: MarketPlaceApp type
:size: 4
:DATE:
:desc: Publishing date for the MarketPlaceApp
:REGTIME:
:desc: Registration time of the MarketplaceApp
:size: 8
:MARKET:
@ -39,5 +39,5 @@
- :SIZE
- :STAT
- :TYPE
- :DATE
- :REGTIME
- :MARKET

View File

@ -55,8 +55,8 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
OneMarketPlaceAppHelper.state_to_str(d["STATE"])
end
column :DATE, "Publishing date of the app", :size=>8 do |d|
Time.at(d['DATE'].to_i).strftime("%D")
column :REGTIME, "Registration time of the app", :size=>8 do |d|
Time.at(d['REGTIME'].to_i).strftime("%D")
end
column :TYPE, "Marketplace app type", :size=>4 do |d|
@ -68,7 +68,7 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
d["MARKETPLACE"]
end
default :ID,:NAME,:VERSION,:SIZE,:STAT,:TYPE,:DATE,:MARKET
default :ID,:NAME,:VERSION,:SIZE,:STAT,:TYPE,:REGTIME,:MARKET
end
table
@ -121,7 +121,7 @@ class OneMarketPlaceAppHelper < OpenNebulaHelper::OneHelper
puts str % ["SOURCE", app['SOURCE']]
puts str % ["MD5", app['MD5']]
puts str % ["PUBLISHER", app['PUBLISHER']]
puts str % ["PUB. DATE", Time.at(app['DATE'].to_i).strftime("%c") ]
puts str % ["REGISTER TIME", Time.at(app['REGTIME'].to_i).strftime("%c") ]
puts str % ["VERSION", app['VERSION']]
puts str % ["DESCRIPTION", app['DESCRIPTION']]
puts str % ["SIZE", OpenNebulaHelper.unit_to_str(app['SIZE'].to_i,{},'M')]