diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 19:04:10 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-01-11 19:04:10 +0200 |
commit | 52b3bbb8e8b71e7e52ed6ae854f511d25553340b (patch) | |
tree | 8b8254eef9b51aa69dda957f4e63551e502cd808 /app/helpers | |
parent | 385ec5faac47d5346b761deacacebab8f38ef0c7 (diff) | |
download | gitlab-ci-52b3bbb8e8b71e7e52ed6ae854f511d25553340b.tar.gz |
Refactor charts resource. Improved charts code
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/builds_helper.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb index 0f15f84..e1f04dd 100644 --- a/app/helpers/builds_helper.rb +++ b/app/helpers/builds_helper.rb @@ -1,12 +1,4 @@ module BuildsHelper - def build_duration build - if build.started? - from = build.started_at - to = build.finished_at || Time.zone.now - distance_of_time_in_words(from, to) - end - end - def build_ref_link build if build.gitlab? gitlab_ref_link build.project, build.ref |