diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-08-16 13:00:28 -0500 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-08-16 13:00:28 -0500 |
commit | f0d6b1ff83bd51124411c58692c20781733bb51a (patch) | |
tree | 7d61e0a67ef06cfd4ebac468164ad8442a99ec1b | |
parent | bcb3937da8fbba5b6a83ba092079444d993a5696 (diff) | |
download | gitlab-ce-f0d6b1ff83bd51124411c58692c20781733bb51a.tar.gz |
Hide branch name and status text on mr pipelines; don't use shorter timeago
-rw-r--r-- | app/assets/stylesheets/pages/pipelines.scss | 16 | ||||
-rw-r--r-- | app/views/projects/ci/pipelines/_pipeline.html.haml | 20 | ||||
-rw-r--r-- | app/views/projects/commit/_pipelines_list.haml | 2 |
3 files changed, 28 insertions, 10 deletions
diff --git a/app/assets/stylesheets/pages/pipelines.scss b/app/assets/stylesheets/pages/pipelines.scss index 21919fe4d73..08651974892 100644 --- a/app/assets/stylesheets/pages/pipelines.scss +++ b/app/assets/stylesheets/pages/pipelines.scss @@ -229,3 +229,19 @@ box-shadow: none; } } + +.pipelines.tab-pane { + + .content-list.pipelines { + width: auto; + } + + .table.builds { + min-width: 900px; + } + + .stage { + max-width: 60px; + width: 60px; + } +} diff --git a/app/views/projects/ci/pipelines/_pipeline.html.haml b/app/views/projects/ci/pipelines/_pipeline.html.haml index 78709a92aed..be387201f8d 100644 --- a/app/views/projects/ci/pipelines/_pipeline.html.haml +++ b/app/views/projects/ci/pipelines/_pipeline.html.haml @@ -2,19 +2,21 @@ %tr.commit %td.commit-link = link_to namespace_project_pipeline_path(@project.namespace, @project, pipeline.id) do - = ci_status_with_icon(status) - - + - if defined?(status_icon_only) && status_icon_only + = ci_icon_for_status(status) + - else + = ci_status_with_icon(status) %td .branch-commit = link_to namespace_project_pipeline_path(@project.namespace, @project, pipeline.id) do %span ##{pipeline.id} - if pipeline.ref - .icon-container - = pipeline.tag? ? icon('tag') : icon('code-fork') - = link_to pipeline.ref, namespace_project_commits_path(@project.namespace, @project, pipeline.ref), class: "monospace branch-name" - .icon-container - = custom_icon("icon_commit") + - unless defined?(hide_branch) && hide_branch + .icon-container + = pipeline.tag? ? icon('tag') : icon('code-fork') + = link_to pipeline.ref, namespace_project_commits_path(@project.namespace, @project, pipeline.ref), class: "monospace branch-name" + .icon-container + = custom_icon("icon_commit") = link_to pipeline.short_sha, namespace_project_commit_path(@project.namespace, @project, pipeline.sha), class: "commit-id monospace" - if pipeline.latest? %span.label.label-success.has-tooltip{ title: 'Latest build for this branch' } latest @@ -53,7 +55,7 @@ - if pipeline.finished_at %p.finished-at = icon("calendar") - #{time_ago_with_tooltip(pipeline.finished_at, short_format: true, skip_js: true)} + #{time_ago_with_tooltip(pipeline.finished_at, short_format: false, skip_js: true)} %td.pipeline-actions .controls.hidden-xs.pull-right diff --git a/app/views/projects/commit/_pipelines_list.haml b/app/views/projects/commit/_pipelines_list.haml index 03db765180a..29f4ef8f49e 100644 --- a/app/views/projects/commit/_pipelines_list.haml +++ b/app/views/projects/commit/_pipelines_list.haml @@ -14,4 +14,4 @@ = stage.titleize %th %th - = render pipelines, commit_sha: true, stage: true, allow_retry: true, stages: pipelines.stages + = render pipelines, commit_sha: true, stage: true, allow_retry: true, stages: pipelines.stages, status_icon_only: true, hide_branch: true |