summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorubudzisz <ubudzisz@gmail.com>2016-08-04 08:59:35 +0200
committerubudzisz <ubudzisz@gmail.com>2016-09-06 14:42:43 +0200
commit0893911d62520822bbf1578783e76351b7cfaa37 (patch)
tree37cb500b9875c361cff66b534d104e38e6e5e1f0 /app
parent657bb8650ee405e2ba3a554dddf6767621ea5c54 (diff)
downloadgitlab-ce-0893911d62520822bbf1578783e76351b7cfaa37.tar.gz
add js file
show variables on-click show variables on-click show variables on-click remove = and add new js classes into sidebar.scss show variables by clicking button show variables by clicking button show variables by clicking button show variables by clicking button use id for a class add nicescroll add nicescroll
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/build_variables.js7
-rw-r--r--app/assets/stylesheets/framework/sidebar.scss13
-rw-r--r--app/views/projects/builds/_sidebar.html.haml6
3 files changed, 23 insertions, 3 deletions
diff --git a/app/assets/javascripts/build_variables.js b/app/assets/javascripts/build_variables.js
new file mode 100644
index 00000000000..3b77c1d4f37
--- /dev/null
+++ b/app/assets/javascripts/build_variables.js
@@ -0,0 +1,7 @@
+$(function(){
+ $('.reveal-variables').off('click').on('click',function(){
+ $('.js-build-variable').toggle();
+ $('.js-build-value').toggle().niceScroll();
+ $('.reveal-variables').show();
+ });
+});
diff --git a/app/assets/stylesheets/framework/sidebar.scss b/app/assets/stylesheets/framework/sidebar.scss
index 015fe3debf9..6eae609555b 100644
--- a/app/assets/stylesheets/framework/sidebar.scss
+++ b/app/assets/stylesheets/framework/sidebar.scss
@@ -226,3 +226,16 @@ header.header-pinned-nav {
.right-sidebar {
border-left: 1px solid $border-color;
}
+
+.js-build-variable {
+ color: #c7254e;
+ font-size: 100%;
+ border-radius: 5px;
+}
+
+.js-build-value {
+ padding: 2px 4px;
+ font-size: 100%;
+ color: #000;
+ background-color: #fff;
+}
diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml
index 5ce36a475a9..585cc310be3 100644
--- a/app/views/projects/builds/_sidebar.html.haml
+++ b/app/views/projects/builds/_sidebar.html.haml
@@ -90,12 +90,12 @@
- if @build.trigger_request.variables
%p
- %span.build-light-text Variables:
+ .btn.group.btn-group-justified.reveal-variables Reveal Variables
- @build.trigger_request.variables.each do |key, value|
- %code
- #{key}=#{value}
+ .hide.js-build-variable #{key}
+ .hide.js-build-value #{value}
.block
.title