summaryrefslogtreecommitdiff
path: root/app/views/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-03-09 16:24:02 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-03-14 13:20:35 +0100
commit0672258915a0cf444802ffc50ad1cd914f4f11d4 (patch)
treef8e389d36a5eb9a761e5b283fb0e2adddda60f9c /app/views/ci
parent37ba5a12b515172b76d28e112ab9899823163717 (diff)
downloadgitlab-ce-0672258915a0cf444802ffc50ad1cd914f4f11d4.tar.gz
Cleanup CiCommit and CiBuild
- Remove all view related methods from Ci::Build and CommitStatus - Remove unused Ci::Commit and Ci::Build methods - Use polymorphism to render different types of CommitStatus
Diffstat (limited to 'app/views/ci')
-rw-r--r--app/views/ci/commits/_commit.html.haml32
1 files changed, 0 insertions, 32 deletions
diff --git a/app/views/ci/commits/_commit.html.haml b/app/views/ci/commits/_commit.html.haml
deleted file mode 100644
index 11163813f3e..00000000000
--- a/app/views/ci/commits/_commit.html.haml
+++ /dev/null
@@ -1,32 +0,0 @@
-%tr.build
- %td.status
- = ci_status_with_icon(commit.status)
- - if commit.running?
- &middot;
- = commit.stage
-
-
- %td.build-link
- = link_to ci_status_path(commit) do
- %strong #{commit.short_sha}
-
- %td.build-message
- %span= truncate_first_line(commit.git_commit_message)
-
- %td.build-branch
- - unless @ref
- %span
- - commit.refs.each do |ref|
- = link_to truncate(ref, length: 25), ci_project_path(@project, ref: ref)
-
- %td.duration
- - if commit.duration > 0
- #{time_interval_in_words commit.duration}
-
- %td.timestamp
- - if commit.finished_at
- %span #{time_ago_in_words commit.finished_at} ago
-
- - if commit.coverage
- %td.coverage
- #{commit.coverage}%