diff --git a/Gemfile b/Gemfile
index 3638176c97b..fc75f72ebea 100644
--- a/Gemfile
+++ b/Gemfile
@@ -398,7 +398,7 @@ gem 'gitlab-schema-validation', path: 'gems/gitlab-schema-validation' # rubocop:
gem 'gitlab-http', path: 'gems/gitlab-http' # rubocop:todo Gemfile/MissingFeatureCategory
gem 'premailer-rails', '~> 1.12.0', feature_category: :notifications
-gem 'gitlab-labkit', '~> 0.36.0', feature_category: :shared
+gem 'gitlab-labkit', '~> 0.37.0', feature_category: :shared
gem 'thrift', '>= 0.16.0' # rubocop:todo Gemfile/MissingFeatureCategory
# I18n
diff --git a/Gemfile.checksum b/Gemfile.checksum
index dc2e3e17ff4..b2f219d0a7e 100644
--- a/Gemfile.checksum
+++ b/Gemfile.checksum
@@ -232,7 +232,7 @@
{"name":"gitlab-glfm-markdown","version":"0.0.21","platform":"x86_64-darwin","checksum":"8425ee27e0b32b75619e08e1700c1302297b44928adc19a026bea243c96363f5"},
{"name":"gitlab-glfm-markdown","version":"0.0.21","platform":"x86_64-linux","checksum":"9ea7d7a7a20c15960839521459a82edab787a4d8475ee412beba8362aa5fcd71"},
{"name":"gitlab-kas-grpc","version":"17.5.1","platform":"ruby","checksum":"88639bfaa9301d78a7fbff696ec262ed696a15a6f41c1b51bffe6b39c7a61ca7"},
-{"name":"gitlab-labkit","version":"0.36.1","platform":"ruby","checksum":"04fb6941b7e5fc1fdcee8f9971fa2086a4dc442e39e67a74b992403dd580c300"},
+{"name":"gitlab-labkit","version":"0.37.0","platform":"ruby","checksum":"d2dd0a60db2149a9a8eebf2975dc23f54ac3ceb01bdba732eb1b26b86dfffa70"},
{"name":"gitlab-license","version":"2.6.0","platform":"ruby","checksum":"2c1f8ae73835640ec77bf758c1d0c9730635043c01cf77902f7976e826d7d016"},
{"name":"gitlab-mail_room","version":"0.0.25","platform":"ruby","checksum":"223ce7c3c0797b6015eaa37147884e6ddc7be9a7ee90a424358c96bc18613b1a"},
{"name":"gitlab-markup","version":"1.9.0","platform":"ruby","checksum":"7eda045a08ec2d110084252fa13a8c9eac8bdac0e302035ca7db4b82bcbd7ed4"},
diff --git a/Gemfile.lock b/Gemfile.lock
index a5e3655b7f5..81230308dcd 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -749,13 +749,13 @@ GEM
rb_sys (= 0.9.94)
gitlab-kas-grpc (17.5.1)
grpc (~> 1.0)
- gitlab-labkit (0.36.1)
- actionpack (>= 5.0.0, < 8.0.0)
- activesupport (>= 5.0.0, < 8.0.0)
+ gitlab-labkit (0.37.0)
+ actionpack (>= 5.0.0, < 8.1.0)
+ activesupport (>= 5.0.0, < 8.1.0)
grpc (>= 1.62)
jaeger-client (~> 1.1.0)
opentracing (~> 0.4)
- pg_query (>= 4.2.3, < 6.0)
+ pg_query (>= 5.1.0, < 7.0)
redis (> 3.0.0, < 6.0.0)
gitlab-license (2.6.0)
gitlab-mail_room (0.0.25)
@@ -2077,7 +2077,7 @@ DEPENDENCIES
gitlab-housekeeper!
gitlab-http!
gitlab-kas-grpc (~> 17.5.0)
- gitlab-labkit (~> 0.36.0)
+ gitlab-labkit (~> 0.37.0)
gitlab-license (~> 2.6)
gitlab-mail_room (~> 0.0.24)
gitlab-markup (~> 1.9.0)
diff --git a/Gemfile.next.checksum b/Gemfile.next.checksum
index a2286c07fb1..38aae54493b 100644
--- a/Gemfile.next.checksum
+++ b/Gemfile.next.checksum
@@ -233,7 +233,7 @@
{"name":"gitlab-glfm-markdown","version":"0.0.21","platform":"x86_64-darwin","checksum":"8425ee27e0b32b75619e08e1700c1302297b44928adc19a026bea243c96363f5"},
{"name":"gitlab-glfm-markdown","version":"0.0.21","platform":"x86_64-linux","checksum":"9ea7d7a7a20c15960839521459a82edab787a4d8475ee412beba8362aa5fcd71"},
{"name":"gitlab-kas-grpc","version":"17.5.1","platform":"ruby","checksum":"88639bfaa9301d78a7fbff696ec262ed696a15a6f41c1b51bffe6b39c7a61ca7"},
-{"name":"gitlab-labkit","version":"0.36.1","platform":"ruby","checksum":"04fb6941b7e5fc1fdcee8f9971fa2086a4dc442e39e67a74b992403dd580c300"},
+{"name":"gitlab-labkit","version":"0.37.0","platform":"ruby","checksum":"d2dd0a60db2149a9a8eebf2975dc23f54ac3ceb01bdba732eb1b26b86dfffa70"},
{"name":"gitlab-license","version":"2.6.0","platform":"ruby","checksum":"2c1f8ae73835640ec77bf758c1d0c9730635043c01cf77902f7976e826d7d016"},
{"name":"gitlab-mail_room","version":"0.0.25","platform":"ruby","checksum":"223ce7c3c0797b6015eaa37147884e6ddc7be9a7ee90a424358c96bc18613b1a"},
{"name":"gitlab-markup","version":"1.9.0","platform":"ruby","checksum":"7eda045a08ec2d110084252fa13a8c9eac8bdac0e302035ca7db4b82bcbd7ed4"},
diff --git a/Gemfile.next.lock b/Gemfile.next.lock
index 2e561627eb3..dafb78ca3b3 100644
--- a/Gemfile.next.lock
+++ b/Gemfile.next.lock
@@ -759,13 +759,13 @@ GEM
rb_sys (= 0.9.94)
gitlab-kas-grpc (17.5.1)
grpc (~> 1.0)
- gitlab-labkit (0.36.1)
- actionpack (>= 5.0.0, < 8.0.0)
- activesupport (>= 5.0.0, < 8.0.0)
+ gitlab-labkit (0.37.0)
+ actionpack (>= 5.0.0, < 8.1.0)
+ activesupport (>= 5.0.0, < 8.1.0)
grpc (>= 1.62)
jaeger-client (~> 1.1.0)
opentracing (~> 0.4)
- pg_query (>= 4.2.3, < 6.0)
+ pg_query (>= 5.1.0, < 7.0)
redis (> 3.0.0, < 6.0.0)
gitlab-license (2.6.0)
gitlab-mail_room (0.0.25)
@@ -2105,7 +2105,7 @@ DEPENDENCIES
gitlab-housekeeper!
gitlab-http!
gitlab-kas-grpc (~> 17.5.0)
- gitlab-labkit (~> 0.36.0)
+ gitlab-labkit (~> 0.37.0)
gitlab-license (~> 2.6)
gitlab-mail_room (~> 0.0.24)
gitlab-markup (~> 1.9.0)
diff --git a/app/assets/javascripts/pages/projects/blob/show/index.js b/app/assets/javascripts/pages/projects/blob/show/index.js
index b4fdb8fb295..17d4f861401 100644
--- a/app/assets/javascripts/pages/projects/blob/show/index.js
+++ b/app/assets/javascripts/pages/projects/blob/show/index.js
@@ -212,12 +212,11 @@ if (tableContentsEl) {
});
}
-const treeHistoryLinkEl = document.getElementById('js-commit-history-link');
-if (treeHistoryLinkEl) {
- const { historyLink } = treeHistoryLinkEl.dataset;
+const initTreeHistoryLinkApp = (el) => {
+ const { historyLink } = el.dataset;
// eslint-disable-next-line no-new
new Vue({
- el: treeHistoryLinkEl,
+ el,
router: new VueRouter({ mode: 'history' }),
render(h) {
const url = generateHistoryUrl(
@@ -231,10 +230,17 @@ if (treeHistoryLinkEl) {
attrs: {
href: url.href,
category: 'tertiary',
+ class: 'gl-ml-4',
},
},
[__('History')],
);
},
});
+};
+
+const treeHistoryLinkEl = document.getElementById('js-commit-history-link');
+
+if (treeHistoryLinkEl) {
+ initTreeHistoryLinkApp(treeHistoryLinkEl);
}
diff --git a/app/assets/javascripts/repository/components/header_area/blob_controls.vue b/app/assets/javascripts/repository/components/header_area/blob_controls.vue
index ddc5af4f43a..68d9cab50af 100644
--- a/app/assets/javascripts/repository/components/header_area/blob_controls.vue
+++ b/app/assets/javascripts/repository/components/header_area/blob_controls.vue
@@ -26,7 +26,6 @@ export default {
i18n: {
findFile: __('Find file'),
blame: __('Blame'),
- history: __('History'),
permalink: __('Permalink'),
permalinkTooltip: __('Go to permalink'),
errorMessage: __('An error occurred while loading the blob controls.'),
@@ -177,15 +176,6 @@ export default {
{{ $options.i18n.blame }}
-
- {{ $options.i18n.history }}
-
-
and