Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-02-07 03:09:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-07 03:09:12 +0300
commit6168721025dd8e98caeb2bf6844273e6690eaf69 (patch)
tree8c4fb20d793669e488a739bc9951dab8b363eed4 /app/assets
parenta89cb5cbdd832d4d9e80517973aceda6bc0a3856 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/blob/components/blob_header_filepath.vue47
-rw-r--r--app/assets/javascripts/monitoring/constants.js4
-rw-r--r--app/assets/stylesheets/framework/snippets.scss4
-rw-r--r--app/assets/stylesheets/pages/commits.scss10
4 files changed, 59 insertions, 6 deletions
diff --git a/app/assets/javascripts/blob/components/blob_header_filepath.vue b/app/assets/javascripts/blob/components/blob_header_filepath.vue
new file mode 100644
index 00000000000..6c6a22e2b36
--- /dev/null
+++ b/app/assets/javascripts/blob/components/blob_header_filepath.vue
@@ -0,0 +1,47 @@
+<script>
+import FileIcon from '~/vue_shared/components/file_icon.vue';
+import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
+import { numberToHumanSize } from '~/lib/utils/number_utils';
+
+export default {
+ components: {
+ FileIcon,
+ ClipboardButton,
+ },
+ props: {
+ blob: {
+ type: Object,
+ required: true,
+ },
+ },
+ computed: {
+ blobSize() {
+ return numberToHumanSize(this.blob.size);
+ },
+ gfmCopyText() {
+ return `\`${this.blob.path}\``;
+ },
+ },
+};
+</script>
+<template>
+ <div class="file-header-content d-flex align-items-center lh-100">
+ <slot name="filepathPrepend"></slot>
+
+ <file-icon :file-name="blob.path" :size="18" aria-hidden="true" css-classes="mr-2" />
+ <strong
+ v-if="blob.name"
+ class="file-title-name qa-file-title-name mr-1 js-blob-header-filepath"
+ >{{ blob.name }}</strong
+ >
+
+ <small class="mr-2">{{ blobSize }}</small>
+
+ <clipboard-button
+ :text="blob.path"
+ :gfm="gfmCopyText"
+ :title="__('Copy file path')"
+ css-class="btn-clipboard btn-transparent lh-100 position-static"
+ />
+ </div>
+</template>
diff --git a/app/assets/javascripts/monitoring/constants.js b/app/assets/javascripts/monitoring/constants.js
index 789b3131d11..b468254b0cf 100644
--- a/app/assets/javascripts/monitoring/constants.js
+++ b/app/assets/javascripts/monitoring/constants.js
@@ -110,8 +110,8 @@ export const timeRanges = [
duration: { seconds: 60 * 60 * 24 * 7 * 1 },
},
{
- label: __('2 weeks'),
- duration: { seconds: 60 * 60 * 24 * 7 * 2 },
+ label: __('1 month'),
+ duration: { seconds: 60 * 60 * 24 * 30 },
},
];
diff --git a/app/assets/stylesheets/framework/snippets.scss b/app/assets/stylesheets/framework/snippets.scss
index fbe241df32f..dbcb5086d70 100644
--- a/app/assets/stylesheets/framework/snippets.scss
+++ b/app/assets/stylesheets/framework/snippets.scss
@@ -32,10 +32,6 @@
.snippet-file-content {
border-radius: 3px;
-
- .file-title-flex-parent .btn-clipboard {
- line-height: 28px;
- }
}
.snippet-header {
diff --git a/app/assets/stylesheets/pages/commits.scss b/app/assets/stylesheets/pages/commits.scss
index be0311f584f..781b6c09458 100644
--- a/app/assets/stylesheets/pages/commits.scss
+++ b/app/assets/stylesheets/pages/commits.scss
@@ -321,6 +321,16 @@
}
}
+.gpg-popover-certificate-details {
+ ul {
+ padding-left: $gl-padding;
+ }
+
+ li.unstyled {
+ list-style-type: none;
+ }
+}
+
.gpg-popover-status {
display: flex;
align-items: center;