summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-15 19:07:42 -0500
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-08-15 19:07:42 -0500
commitad320577595610ee1cb8f945cdfe6f739e9a0ebb (patch)
treefd9aa8da2d7129909e3cab78ea24f170861f6f01 /app
parent1501b1abc4be78eaa4cb4c28969d9bc59bcf284c (diff)
downloadgitlab-ce-ad320577595610ee1cb8f945cdfe6f739e9a0ebb.tar.gz
Add unclickable state to running build artifacts
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/framework/dropdowns.scss6
-rw-r--r--app/views/projects/branches/_branch.html.haml2
-rw-r--r--app/views/projects/buttons/_download.html.haml2
-rw-r--r--app/views/projects/repositories/_download_archive.html.haml2
-rw-r--r--app/views/projects/tags/_download.html.haml2
5 files changed, 10 insertions, 4 deletions
diff --git a/app/assets/stylesheets/framework/dropdowns.scss b/app/assets/stylesheets/framework/dropdowns.scss
index e8eafa15899..cbbff49ad9c 100644
--- a/app/assets/stylesheets/framework/dropdowns.scss
+++ b/app/assets/stylesheets/framework/dropdowns.scss
@@ -176,6 +176,12 @@
.separator + .dropdown-header {
padding-top: 2px;
}
+
+ .unclickable {
+ cursor: not-allowed;
+ padding: 5px 8px;
+ color: $dropdown-header-color;
+ }
}
.dropdown-menu-large {
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index 402e37f4ec6..12b78be4be0 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -42,7 +42,7 @@
- unless pipeline.latest?
- latest_pipeline = @project.pipeline_for(branch.name)
%li
- %span= ci_status_for_statuseable(latest_pipeline)
+ .unclickable= ci_status_for_statuseable(latest_pipeline)
%li.dropdown-header Previous Artifacts
- artifacts.each do |job|
%li
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml
index a86561ca90b..45998343fda 100644
--- a/app/views/projects/buttons/_download.html.haml
+++ b/app/views/projects/buttons/_download.html.haml
@@ -22,7 +22,7 @@
- unless pipeline.latest?
- latest_pipeline = @project.pipeline_for(@ref)
%li
- %span= ci_status_for_statuseable(latest_pipeline)
+ .unclickable= ci_status_for_statuseable(latest_pipeline)
%li.dropdown-header Previous Artifacts
- artifacts.each do |job|
%li
diff --git a/app/views/projects/repositories/_download_archive.html.haml b/app/views/projects/repositories/_download_archive.html.haml
index e482bb72df4..48502498171 100644
--- a/app/views/projects/repositories/_download_archive.html.haml
+++ b/app/views/projects/repositories/_download_archive.html.haml
@@ -33,7 +33,7 @@
- unless pipeline.latest?
- latest_pipeline = @project.pipeline_for(ref)
%li
- %span= ci_status_for_statuseable(latest_pipeline)
+ .unclickable= ci_status_for_statuseable(latest_pipeline)
%li.dropdown-header Previous Artifacts
- artifacts.each do |job|
%li
diff --git a/app/views/projects/tags/_download.html.haml b/app/views/projects/tags/_download.html.haml
index b3bf18cfa50..60f1e2cd2ee 100644
--- a/app/views/projects/tags/_download.html.haml
+++ b/app/views/projects/tags/_download.html.haml
@@ -20,7 +20,7 @@
- unless pipeline.latest?
- latest_pipeline = project.pipeline_for(ref)
%li
- %span= ci_status_for_statuseable(latest_pipeline)
+ .unclickable= ci_status_for_statuseable(latest_pipeline)
%li.dropdown-header Previous Artifacts
- artifacts.each do |job|
%li