You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- module Ci::BuildsHelper
- def format_utc_time(unix_time)
- return nil if unix_time == 0
- Time.at(unix_time).strftime("%Y-%m-%d %H:%M")
- end
-
- def render_duartion_time(end_time, start_time)
- return nil if end_time == 0 || start_time == 0
- game_spend_time(end_time - start_time)
- end
-
- def render_build_author login
- User.find_by(login: login)
- end
- end
|