Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Replace custom icon solution of gitlab tab with Octicons

Henriette Darge5a826e5ac62e
diff --git a/Gemfile b/Gemfile
index 277b38cbc3a..ae50f47ccf9 100644
--- a/Gemfile
+++ b/Gemfile
@@ -388,6 +388,6 @@ gemfiles.each do |file|
send(:eval_gemfile, file) if File.readable?(file)
end
-gem "openproject-octicons", "~>19.14.0"
-gem "openproject-octicons_helper", "~>19.14.0"
+gem "openproject-octicons", "~>19.14.1"
+gem "openproject-octicons_helper", "~>19.14.1"
gem "openproject-primer_view_components", "~>0.34.0"
diff --git a/Gemfile.lock b/Gemfile.lock
index 67d00a822c8..a44fad2b415 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -767,10 +767,10 @@ GEM
validate_email
validate_url
webfinger (~> 2.0)
- openproject-octicons (19.14.0)
- openproject-octicons_helper (19.14.0)
+ openproject-octicons (19.14.1)
+ openproject-octicons_helper (19.14.1)
actionview
- openproject-octicons (= 19.14.0)
+ openproject-octicons (= 19.14.1)
railties
openproject-primer_view_components (0.34.0)
actionview (>= 5.0.0)
@@ -1257,8 +1257,8 @@ DEPENDENCIES
openproject-job_status!
openproject-ldap_groups!
openproject-meeting!
- openproject-octicons (~> 19.14.0)
- openproject-octicons_helper (~> 19.14.0)
+ openproject-octicons (~> 19.14.1)
+ openproject-octicons_helper (~> 19.14.1)
openproject-openid_connect!
openproject-primer_view_components (~> 0.34.0)
openproject-recaptcha!
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index aff2b98efec..88bfb541b0b 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -46,7 +46,7 @@
"@ng-select/ng-select": "^13.2.0",
"@ngneat/content-loader": "^7.0.0",
"@ngx-formly/core": "^6.1.4",
- "@openproject/octicons-angular": "^19.14.0",
+ "@openproject/octicons-angular": "^19.14.1",
"@openproject/primer-view-components": "^0.34.0",
"@openproject/reactivestates": "^3.0.1",
"@primer/css": "^21.2.2",
@@ -4803,9 +4803,9 @@
"integrity": "sha512-jrqoTI8lk5UziDsDPJ2Y+nmXYCcRhmr6uMARr3v/W6AMxRgsnRLWJyWKYr6FjaGMgbyxXG+OkCUPQY4Xl3toGg=="
},
"node_modules/@openproject/octicons-angular": {
- "version": "19.14.0",
- "resolved": "https://registry.npmjs.org/@openproject/octicons-angular/-/octicons-angular-19.14.0.tgz",
- "integrity": "sha512-26r+Fq5f8ZhWfwH3JwK18eOgK3juzNf9dIidVRRmjFXxTY6oreozclCQf1lqZMlxi3gVUTj9qB35hwINWtMPJQ==",
+ "version": "19.14.1",
+ "resolved": "https://registry.npmjs.org/@openproject/octicons-angular/-/octicons-angular-19.14.1.tgz",
+ "integrity": "sha512-kY/QyXs/mcI/2vRsmsAs3w7nBDkg4UGA+YxKmBYPNBRRUeA5Zwwzw1Jh5cogQXqqzstULoV7cMSDY7tXXcBDiw==",
"dependencies": {
"tslib": "^2.3.0"
},
@@ -25234,9 +25234,9 @@
"integrity": "sha512-jrqoTI8lk5UziDsDPJ2Y+nmXYCcRhmr6uMARr3v/W6AMxRgsnRLWJyWKYr6FjaGMgbyxXG+OkCUPQY4Xl3toGg=="
},
"@openproject/octicons-angular": {
- "version": "19.14.0",
- "resolved": "https://registry.npmjs.org/@openproject/octicons-angular/-/octicons-angular-19.14.0.tgz",
- "integrity": "sha512-26r+Fq5f8ZhWfwH3JwK18eOgK3juzNf9dIidVRRmjFXxTY6oreozclCQf1lqZMlxi3gVUTj9qB35hwINWtMPJQ==",
+ "version": "19.14.1",
+ "resolved": "https://registry.npmjs.org/@openproject/octicons-angular/-/octicons-angular-19.14.1.tgz",
+ "integrity": "sha512-kY/QyXs/mcI/2vRsmsAs3w7nBDkg4UGA+YxKmBYPNBRRUeA5Zwwzw1Jh5cogQXqqzstULoV7cMSDY7tXXcBDiw==",
"requires": {
"tslib": "^2.3.0"
}
diff --git a/frontend/package.json b/frontend/package.json
index a6e822a5757..32bc896ac50 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -97,7 +97,7 @@
"@ng-select/ng-select": "^13.2.0",
"@ngneat/content-loader": "^7.0.0",
"@ngx-formly/core": "^6.1.4",
- "@openproject/octicons-angular": "^19.14.0",
+ "@openproject/octicons-angular": "^19.14.1",
"@openproject/primer-view-components": "^0.34.0",
"@openproject/reactivestates": "^3.0.1",
"@primer/css": "^21.2.2",
diff --git a/frontend/src/app/shared/components/icon/icon.module.ts b/frontend/src/app/shared/components/icon/icon.module.ts
index 1a0ab158485..ecac299d7c1 100644
--- a/frontend/src/app/shared/components/icon/icon.module.ts
+++ b/frontend/src/app/shared/components/icon/icon.module.ts
@@ -26,6 +26,24 @@ import {
StarFillIconComponent,
StarIconComponent,
XIconComponent,
+ OpGitlabIssueClosedIconComponent,
+ OpGitlabLabelsIconComponent,
+ OpGitlabIssueOpenIconComponent,
+ OpGitlabMergeRequestClosedIconComponent,
+ OpGitlabMergeRequestMergedIconComponent,
+ OpGitlabMergeRequestOpenIconComponent,
+ OpGitlabMergeRequestReadyIconComponent,
+ OpGitlabPipelineStatusCanceledIconComponent,
+ OpGitlabPipelineStatusCreatedIconComponent,
+ OpGitlabPipelineStatusFailedIconComponent,
+ OpGitlabPipelineStatusManualIconComponent,
+ OpGitlabPipelineStatusPendingIconComponent,
+ OpGitlabPipelineStatusPreparingIconComponent,
+ OpGitlabPipelineStatusRunningIconComponent,
+ OpGitlabPipelineStatusScheduledIconComponent,
+ OpGitlabPipelineStatusSkippedIconComponent,
+ OpGitlabPipelineStatusSuccessIconComponent,
+ OpGitlabPipelineStatusWaitingIconComponent,
} from '@openproject/octicons-angular';
@NgModule({
@@ -56,6 +74,25 @@ import {
StarFillIconComponent,
StarIconComponent,
XIconComponent,
+
+ OpGitlabIssueClosedIconComponent,
+ OpGitlabLabelsIconComponent,
+ OpGitlabIssueOpenIconComponent,
+ OpGitlabMergeRequestClosedIconComponent,
+ OpGitlabMergeRequestMergedIconComponent,
+ OpGitlabMergeRequestOpenIconComponent,
+ OpGitlabMergeRequestReadyIconComponent,
+ OpGitlabPipelineStatusCanceledIconComponent,
+ OpGitlabPipelineStatusCreatedIconComponent,
+ OpGitlabPipelineStatusFailedIconComponent,
+ OpGitlabPipelineStatusManualIconComponent,
+ OpGitlabPipelineStatusPendingIconComponent,
+ OpGitlabPipelineStatusPreparingIconComponent,
+ OpGitlabPipelineStatusRunningIconComponent,
+ OpGitlabPipelineStatusScheduledIconComponent,
+ OpGitlabPipelineStatusSkippedIconComponent,
+ OpGitlabPipelineStatusSuccessIconComponent,
+ OpGitlabPipelineStatusWaitingIconComponent,
],
declarations: [
OpIconComponent,
@@ -89,6 +126,24 @@ import {
StarIconComponent,
XIconComponent,
+ OpGitlabIssueOpenIconComponent,
+ OpGitlabIssueClosedIconComponent,
+ OpGitlabLabelsIconComponent,
+ OpGitlabMergeRequestClosedIconComponent,
+ OpGitlabMergeRequestMergedIconComponent,
+ OpGitlabMergeRequestOpenIconComponent,
+ OpGitlabMergeRequestReadyIconComponent,
+ OpGitlabPipelineStatusCanceledIconComponent,
+ OpGitlabPipelineStatusCreatedIconComponent,
+ OpGitlabPipelineStatusFailedIconComponent,
+ OpGitlabPipelineStatusManualIconComponent,
+ OpGitlabPipelineStatusPendingIconComponent,
+ OpGitlabPipelineStatusPreparingIconComponent,
+ OpGitlabPipelineStatusRunningIconComponent,
+ OpGitlabPipelineStatusScheduledIconComponent,
+ OpGitlabPipelineStatusSkippedIconComponent,
+ OpGitlabPipelineStatusSuccessIconComponent,
+ OpGitlabPipelineStatusWaitingIconComponent,
],
})
export class IconModule {}
diff --git a/modules/gitlab_integration/frontend/module/gitlab-tab/gitlab-tab.template.html b/modules/gitlab_integration/frontend/module/gitlab-tab/gitlab-tab.template.html
index a7c04a6dfc1..88d9165e126 100644
--- a/modules/gitlab_integration/frontend/module/gitlab-tab/gitlab-tab.template.html
+++ b/modules/gitlab_integration/frontend/module/gitlab-tab/gitlab-tab.template.html
@@ -35,102 +35,3 @@ document.addEventListener('DOMContentLoaded', function () {
});
});
</script>
-
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <symbol viewBox="0 0 16 16" id="issue_open" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.5h6a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V3a.5.5 0 0 1 .5-.5zM1 3a2 2 0 0 1 2-2h6a2 2 0 0 1 1.97 1.658l2.913 1.516a1.75 1.75 0 0 1 .744 2.36l-3.878 7.45a.753.753 0 0 1-.098.145c-.36.526-.965.871-1.651.871H3a2 2 0 0 1-2-2V3zm10 7.254l2.297-4.413a.25.25 0 0 0-.106-.337L11 4.364v5.89z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="issue_closed" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M9 2.5H3a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h6a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5zM3 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h6a2 2 0 0 0 1.651-.87.753.753 0 0 0 .098-.145l3.878-7.45a1.75 1.75 0 0 0-.744-2.361l-2.912-1.516A2 2 0 0 0 9 1H3zm10.297 4.841L11 10.254v-5.89l2.19 1.14a.25.25 0 0 1 .107.337zM8.28 7.281A.75.75 0 0 0 7.22 6.22L5.25 8.19l-.47-.47a.75.75 0 0 0-1.06 1.06l1 1a.75.75 0 0 0 1.06 0l2.5-2.5z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_open" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.34 1.22a.75.75 0 0 0-1.06 0L7.53 2.97 7 3.5l.53.53 1.75 1.75a.75.75 0 1 0 1.06-1.06l-.47-.47h.63c.69 0 1.25.56 1.25 1.25v4.614a2.501 2.501 0 1 0 1.5 0V5.5a2.75 2.75 0 0 0-2.75-2.75h-.63l.47-.47a.75.75 0 0 0 0-1.06zM13.5 12.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-9 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 0a2.5 2.5 0 1 1-3.25-2.386V5.886a2.501 2.501 0 1 1 1.5 0v4.228A2.501 2.501 0 0 1 6 12.5zm-1.5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_ready" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.34 1.22a.75.75 0 0 0-1.06 0L7.53 2.97 7 3.5l.53.53 1.75 1.75a.75.75 0 1 0 1.06-1.06l-.47-.47h.63c.69 0 1.25.56 1.25 1.25v4.614a2.501 2.501 0 1 0 1.5 0V5.5a2.75 2.75 0 0 0-2.75-2.75h-.63l.47-.47a.75.75 0 0 0 0-1.06zM13.5 12.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-9 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 0a2.5 2.5 0 1 1-3.25-2.386V5.886a2.501 2.501 0 1 1 1.5 0v4.228A2.501 2.501 0 0 1 6 12.5zm-1.5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_closed" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M1.22 1.22a.75.75 0 0 1 1.06 0L3.5 2.44l1.22-1.22a.75.75 0 0 1 1.06 1.06L4.56 3.5l1.22 1.22a.75.75 0 0 1-1.06 1.06L3.5 4.56 2.28 5.78a.75.75 0 0 1-1.06-1.06L2.44 3.5 1.22 2.28a.75.75 0 0 1 0-1.06zM7.5 3.5a.75.75 0 0 1 .75-.75h2.25a2.75 2.75 0 0 1 2.75 2.75v4.614a2.501 2.501 0 1 1-1.5 0V5.5c0-.69-.56-1.25-1.25-1.25H8.25a.75.75 0 0 1-.75-.75zm5 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-8-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 0a2.5 2.5 0 1 1-3.25-2.386V7.75a.75.75 0 0 1 1.5 0v2.364A2.501 2.501 0 0 1 6 12.5z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_merged" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 3.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.044 2.31a2.5 2.5 0 1 0-1.706.076v4.228a2.501 2.501 0 1 0 1.5 0V8.373a5.735 5.735 0 0 0 3.86 1.864 2.501 2.501 0 1 0 .01-1.504 4.254 4.254 0 0 1-3.664-2.922zM11.5 10.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-6 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="labels" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.427.512A1.75 1.75 0 0 1 7.664 0H13v3h3v5.335c0 .465-.185.91-.513 1.239L9.573 15.48a1.75 1.75 0 0 1-2.473 0l-2.293-2.293-1.293-1.293-3-3a1.75 1.75 0 0 1 0-2.475L6.428.512zM11.5 1.5V3h-.836a1.75 1.75 0 0 0-1.237.512L3.514 9.419c-.06.06-.115.123-.165.19L1.574 7.833a.25.25 0 0 1 0-.353l5.913-5.907a.25.25 0 0 1 .177-.073H11.5zM5.866 12.126l-1.292-1.293a.25.25 0 0 1 0-.353l5.913-5.907a.25.25 0 0 1 .177-.073H14.5v3.835a.25.25 0 0 1-.073.177L8.513 14.42a.25.25 0 0 1-.353 0l-2.294-2.293zM12 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-success" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M6.278 7.697L5.045 6.464a.296.296 0 0 0-.42-.002l-.613.614a.298.298 0 0 0 .002.42l1.91 1.909a.5.5 0 0 0 .703.005l.265-.265L9.997 6.04a.291.291 0 0 0-.009-.408l-.614-.614a.29.29 0 0 0-.408-.009L6.278 7.697z"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-failed" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M7 5.969L5.599 4.568a.29.29 0 0 0-.413.004l-.614.614a.294.294 0 0 0-.004.413L5.968 7l-1.4 1.401a.29.29 0 0 0 .004.413l.614.614c.113.114.3.117.413.004L7 8.032l1.401 1.4a.29.29 0 0 0 .413-.004l.614-.614a.294.294 0 0 0 .004-.413L8.032 7l1.4-1.401a.29.29 0 0 0-.004-.413l-.614-.614a.294.294 0 0 0-.413-.004L7 5.968z"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-running" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M7 3c2.2 0 4 1.8 4 4s-1.8 4-4 4c-1.3 0-2.5-.7-3.3-1.7L7 7V3"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-created" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <circle cx="7" cy="7" r="3.25"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 12 12" id="pipeline-status-waiting" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2A6 6 0 1 0 6 0a6 6 0 0 0 0 12z"/>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-preparing" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <g fill-rule="nonzero">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path fill="var(--svg-status-bg, #fff)" d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z"/>
- </g>
- <circle cx="7" cy="7" r="1"/>
- <circle cx="10" cy="7" r="1"/>
- <circle cx="4" cy="7" r="1"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-pending" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M4.7 5.3c0-.2.1-.3.3-.3h.9c.2 0 .3.1.3.3v3.4c0 .2-.1.3-.3.3H5c-.2 0-.3-.1-.3-.3V5.3m3 0c0-.2.1-.3.3-.3h.9c.2 0 .3.1.3.3v3.4c0 .2-.1.3-.3.3H8c-.2 0-.3-.1-.3-.3V5.3"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-canceled" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M5.2 3.8l4.9 4.9c.2.2.2.5 0 .7l-.7.7c-.2.2-.5.2-.7 0L3.8 5.2c-.2-.2-.2-.5 0-.7l.7-.7c.2-.2.5-.2.7 0"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-skipped" xmlns="http://www.w3.org/2000/svg">
- <path d="M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14z"/>
- <path d="M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M6.415 7.04L4.579 5.203a.295.295 0 0 1 .004-.416l.349-.349a.29.29 0 0 1 .416-.004l2.214 2.214a.289.289 0 0 1 .019.021l.132.133c.11.11.108.291 0 .398L5.341 9.573a.282.282 0 0 1-.398 0l-.331-.331a.285.285 0 0 1 0-.399L6.415 7.04zm2.54 0L7.119 5.203a.295.295 0 0 1 .004-.416l.349-.349a.29.29 0 0 1 .416-.004l2.214 2.214a.289.289 0 0 1 .019.021l.132.133c.11.11.108.291 0 .398L7.881 9.573a.282.282 0 0 1-.398 0l-.331-.331a.285.285 0 0 1 0-.399L8.955 7.04z"/>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-manual" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M10.5 7.63V6.37l-.787-.13c-.044-.175-.132-.349-.263-.61l.481-.652-.918-.913-.657.478a2.346 2.346 0 0 0-.612-.26L7.656 3.5H6.388l-.132.783c-.219.043-.394.13-.612.26l-.657-.478-.918.913.437.652c-.131.218-.175.392-.262.61l-.744.086v1.261l.787.13c.044.218.132.392.263.61l-.438.651.92.913.655-.434c.175.086.394.173.613.26l.131.783h1.313l.131-.783c.219-.043.394-.13.613-.26l.656.478.918-.913-.48-.652c.13-.218.218-.435.262-.61l.656-.13zM7 8.283a1.285 1.285 0 0 1-1.313-1.305c0-.739.57-1.304 1.313-1.304.744 0 1.313.565 1.313 1.304 0 .74-.57 1.305-1.313 1.305z"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-scheduled" xmlns="http://www.w3.org/2000/svg">
- <path d="M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14z"/>
- <path d="M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12z" fill="#fff"/>
- <path d="M6.995 10.64a3.645 3.645 0 1 1 0-7.29 3.645 3.645 0 0 1 0 7.29zm0-1.042a2.603 2.603 0 1 0 0-5.206 2.603 2.603 0 0 0 0 5.206z"/>
- <path d="M7.033 4.92h-.065a.488.488 0 0 0-.488.488v1.627c0 .27.218.488.488.488h.065c.27 0 .488-.218.488-.488V5.408a.488.488 0 0 0-.488-.488z"/>
- <path d="M8.075 6.48H6.968a.488.488 0 0 0-.488.488v.065c0 .27.218.488.488.488h1.107c.27 0 .488-.218.488-.488v-.065a.488.488 0 0 0-.488-.488z"/>
- </symbol>
-</svg>
diff --git a/modules/gitlab_integration/frontend/module/icons/gitlab-icons.svg b/modules/gitlab_integration/frontend/module/icons/gitlab-icons.svg
deleted file mode 100644
index 13acb8a8da1..00000000000
--- a/modules/gitlab_integration/frontend/module/icons/gitlab-icons.svg
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
- <symbol viewBox="0 0 16 16" id="issue_open" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.5h6a.5.5 0 0 1 .5.5v10a.5.5 0 0 1-.5.5H3a.5.5 0 0 1-.5-.5V3a.5.5 0 0 1 .5-.5zM1 3a2 2 0 0 1 2-2h6a2 2 0 0 1 1.97 1.658l2.913 1.516a1.75 1.75 0 0 1 .744 2.36l-3.878 7.45a.753.753 0 0 1-.098.145c-.36.526-.965.871-1.651.871H3a2 2 0 0 1-2-2V3zm10 7.254l2.297-4.413a.25.25 0 0 0-.106-.337L11 4.364v5.89z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="issue_closed" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M9 2.5H3a.5.5 0 0 0-.5.5v10a.5.5 0 0 0 .5.5h6a.5.5 0 0 0 .5-.5V3a.5.5 0 0 0-.5-.5zM3 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h6a2 2 0 0 0 1.651-.87.753.753 0 0 0 .098-.145l3.878-7.45a1.75 1.75 0 0 0-.744-2.361l-2.912-1.516A2 2 0 0 0 9 1H3zm10.297 4.841L11 10.254v-5.89l2.19 1.14a.25.25 0 0 1 .107.337zM8.28 7.281A.75.75 0 0 0 7.22 6.22L5.25 8.19l-.47-.47a.75.75 0 0 0-1.06 1.06l1 1a.75.75 0 0 0 1.06 0l2.5-2.5z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_open" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.34 1.22a.75.75 0 0 0-1.06 0L7.53 2.97 7 3.5l.53.53 1.75 1.75a.75.75 0 1 0 1.06-1.06l-.47-.47h.63c.69 0 1.25.56 1.25 1.25v4.614a2.501 2.501 0 1 0 1.5 0V5.5a2.75 2.75 0 0 0-2.75-2.75h-.63l.47-.47a.75.75 0 0 0 0-1.06zM13.5 12.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-9 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 0a2.5 2.5 0 1 1-3.25-2.386V5.886a2.501 2.501 0 1 1 1.5 0v4.228A2.501 2.501 0 0 1 6 12.5zm-1.5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_ready" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M10.34 1.22a.75.75 0 0 0-1.06 0L7.53 2.97 7 3.5l.53.53 1.75 1.75a.75.75 0 1 0 1.06-1.06l-.47-.47h.63c.69 0 1.25.56 1.25 1.25v4.614a2.501 2.501 0 1 0 1.5 0V5.5a2.75 2.75 0 0 0-2.75-2.75h-.63l.47-.47a.75.75 0 0 0 0-1.06zM13.5 12.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-9 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 0a2.5 2.5 0 1 1-3.25-2.386V5.886a2.501 2.501 0 1 1 1.5 0v4.228A2.501 2.501 0 0 1 6 12.5zm-1.5-9a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_closed" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M1.22 1.22a.75.75 0 0 1 1.06 0L3.5 2.44l1.22-1.22a.75.75 0 0 1 1.06 1.06L4.56 3.5l1.22 1.22a.75.75 0 0 1-1.06 1.06L3.5 4.56 2.28 5.78a.75.75 0 0 1-1.06-1.06L2.44 3.5 1.22 2.28a.75.75 0 0 1 0-1.06zM7.5 3.5a.75.75 0 0 1 .75-.75h2.25a2.75 2.75 0 0 1 2.75 2.75v4.614a2.501 2.501 0 1 1-1.5 0V5.5c0-.69-.56-1.25-1.25-1.25H8.25a.75.75 0 0 1-.75-.75zm5 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-8-1a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm1.5 0a2.5 2.5 0 1 1-3.25-2.386V7.75a.75.75 0 0 1 1.5 0v2.364A2.501 2.501 0 0 1 6 12.5z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="merge-request_merged" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 3.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-.044 2.31a2.5 2.5 0 1 0-1.706.076v4.228a2.501 2.501 0 1 0 1.5 0V8.373a5.735 5.735 0 0 0 3.86 1.864 2.501 2.501 0 1 0 .01-1.504 4.254 4.254 0 0 1-3.664-2.922zM11.5 10.5a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-6 2a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/>
- </symbol>
- <symbol viewBox="0 0 16 16" id="labels" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6.427.512A1.75 1.75 0 0 1 7.664 0H13v3h3v5.335c0 .465-.185.91-.513 1.239L9.573 15.48a1.75 1.75 0 0 1-2.473 0l-2.293-2.293-1.293-1.293-3-3a1.75 1.75 0 0 1 0-2.475L6.428.512zM11.5 1.5V3h-.836a1.75 1.75 0 0 0-1.237.512L3.514 9.419c-.06.06-.115.123-.165.19L1.574 7.833a.25.25 0 0 1 0-.353l5.913-5.907a.25.25 0 0 1 .177-.073H11.5zM5.866 12.126l-1.292-1.293a.25.25 0 0 1 0-.353l5.913-5.907a.25.25 0 0 1 .177-.073H14.5v3.835a.25.25 0 0 1-.073.177L8.513 14.42a.25.25 0 0 1-.353 0l-2.294-2.293zM12 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-success" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M6.278 7.697L5.045 6.464a.296.296 0 0 0-.42-.002l-.613.614a.298.298 0 0 0 .002.42l1.91 1.909a.5.5 0 0 0 .703.005l.265-.265L9.997 6.04a.291.291 0 0 0-.009-.408l-.614-.614a.29.29 0 0 0-.408-.009L6.278 7.697z"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-failed" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M7 5.969L5.599 4.568a.29.29 0 0 0-.413.004l-.614.614a.294.294 0 0 0-.004.413L5.968 7l-1.4 1.401a.29.29 0 0 0 .004.413l.614.614c.113.114.3.117.413.004L7 8.032l1.401 1.4a.29.29 0 0 0 .413-.004l.614-.614a.294.294 0 0 0 .004-.413L8.032 7l1.4-1.401a.29.29 0 0 0-.004-.413l-.614-.614a.294.294 0 0 0-.413-.004L7 5.968z"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-running" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M7 3c2.2 0 4 1.8 4 4s-1.8 4-4 4c-1.3 0-2.5-.7-3.3-1.7L7 7V3"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-created" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <circle cx="7" cy="7" r="3.25"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 12 12" id="pipeline-status-waiting" xmlns="http://www.w3.org/2000/svg">
- <path fill-rule="evenodd" clip-rule="evenodd" d="M6 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2A6 6 0 1 0 6 0a6 6 0 0 0 0 12z"/>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-preparing" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <g fill-rule="nonzero">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path fill="var(--svg-status-bg, #fff)" d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z"/>
- </g>
- <circle cx="7" cy="7" r="1"/>
- <circle cx="10" cy="7" r="1"/>
- <circle cx="4" cy="7" r="1"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-pending" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M4.7 5.3c0-.2.1-.3.3-.3h.9c.2 0 .3.1.3.3v3.4c0 .2-.1.3-.3.3H5c-.2 0-.3-.1-.3-.3V5.3m3 0c0-.2.1-.3.3-.3h.9c.2 0 .3.1.3.3v3.4c0 .2-.1.3-.3.3H8c-.2 0-.3-.1-.3-.3V5.3"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-canceled" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M5.2 3.8l4.9 4.9c.2.2.2.5 0 .7l-.7.7c-.2.2-.5.2-.7 0L3.8 5.2c-.2-.2-.2-.5 0-.7l.7-.7c.2-.2.5-.2.7 0"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-skipped" xmlns="http://www.w3.org/2000/svg">
- <path d="M7 14A7 7 0 1 1 7 0a7 7 0 0 1 0 14z"/>
- <path d="M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M6.415 7.04L4.579 5.203a.295.295 0 0 1 .004-.416l.349-.349a.29.29 0 0 1 .416-.004l2.214 2.214a.289.289 0 0 1 .019.021l.132.133c.11.11.108.291 0 .398L5.341 9.573a.282.282 0 0 1-.398 0l-.331-.331a.285.285 0 0 1 0-.399L6.415 7.04zm2.54 0L7.119 5.203a.295.295 0 0 1 .004-.416l.349-.349a.29.29 0 0 1 .416-.004l2.214 2.214a.289.289 0 0 1 .019.021l.132.133c.11.11.108.291 0 .398L7.881 9.573a.282.282 0 0 1-.398 0l-.331-.331a.285.285 0 0 1 0-.399L8.955 7.04z"/>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-manual" xmlns="http://www.w3.org/2000/svg">
- <g fill-rule="evenodd">
- <path d="M0 7a7 7 0 1 1 14 0A7 7 0 0 1 0 7z"/>
- <path d="M13 7A6 6 0 1 0 1 7a6 6 0 0 0 12 0z" fill="var(--svg-status-bg, #fff)"/>
- <path d="M10.5 7.63V6.37l-.787-.13c-.044-.175-.132-.349-.263-.61l.481-.652-.918-.913-.657.478a2.346 2.346 0 0 0-.612-.26L7.656 3.5H6.388l-.132.783c-.219.043-.394.13-.612.26l-.657-.478-.918.913.437.652c-.131.218-.175.392-.262.61l-.744.086v1.261l.787.13c.044.218.132.392.263.61l-.438.651.92.913.655-.434c.175.086.394.173.613.26l.131.783h1.313l.131-.783c.219-.043.394-.13.613-.26l.656.478.918-.913-.48-.652c.13-.218.218-.435.262-.61l.656-.13zM7 8.283a1.285 1.285 0 0 1-1.313-1.305c0-.739.57-1.304 1.313-1.304.744 0 1.313.565 1.313 1.304 0 .74-.57 1.305-1.313 1.305z"/>
- </g>
- </symbol>
- <symbol viewBox="0 0 14 14" id="pipeline-status-scheduled" xmlns="http://www.w3.org/2000/svg">
- <path d="M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14z"/>
- <path d="M7 13A6 6 0 1 0 7 1a6 6 0 0 0 0 12z" fill="#fff"/>
- <path d="M6.995 10.64a3.645 3.645 0 1 1 0-7.29 3.645 3.645 0 0 1 0 7.29zm0-1.042a2.603 2.603 0 1 0 0-5.206 2.603 2.603 0 0 0 0 5.206z"/>
- <path d="M7.033 4.92h-.065a.488.488 0 0 0-.488.488v1.627c0 .27.218.488.488.488h.065c.27 0 .488-.218.488-.488V5.408a.488.488 0 0 0-.488-.488z"/>
- <path d="M8.075 6.48H6.968a.488.488 0 0 0-.488.488v.065c0 .27.218.488.488.488h1.107c.27 0 .488-.218.488-.488v-.065a.488.488 0 0 0-.488-.488z"/>
- </symbol>
-</svg>
\ No newline at end of file
diff --git a/modules/gitlab_integration/frontend/module/issue/issue.component.html b/modules/gitlab_integration/frontend/module/issue/issue.component.html
index 284db7059d5..c9b9f855d78 100644
--- a/modules/gitlab_integration/frontend/module/issue/issue.component.html
+++ b/modules/gitlab_integration/frontend/module/issue/issue.component.html
@@ -4,8 +4,11 @@
></div>
<span class='op-issue--state' [ngClass]="'op-issue--state_' + state">
- <svg class="op-issue--iconsize"><use [attr.xlink:href]="'#issue_' + state" /></svg>
- {{state}} |
+
+ <svg *ngIf="state === 'open'" op-gitlab-issue-open-icon size="small"></svg>
+ <svg *ngIf="state !== 'open'" op-gitlab-issue-closed-icon size="small"></svg>
+
+ {{state}} |
<a
[ngClass]="'op-issue--link_' + state"
[href]="gitlabIssue.htmlUrl"
@@ -15,7 +18,7 @@
</span>
<button *ngIf="gitlabIssue.labels && gitlabIssue.labels.length > 0" (click)="toggleLabels(gitlabIssue.number)" class='op-issue--label_icon' title="Show/Hide labels">
- <svg class="op-issue--iconsize op-issue--label_icon_style"><use xlink:href="#labels" /></svg>
+ <svg class="op-issue--label_icon_style" op-gitlab-labels-icon size="small"></svg>
</button>
<div class="op-issue--info_created">
@@ -26,7 +29,7 @@
[src]="gitlabIssue.gitlabUser.avatarUrl"
*ngIf="gitlabIssue.gitlabUser"
/>&nbsp; -->
- <span class='op-issue--user'>
+ <span class='op-issue--user'>
<a
[href]="'mailto:' + gitlabIssue.gitlabUser.email"
class='op-issue--username'
@@ -40,7 +43,7 @@
</span>.
</div>
-<div
+<div
class="op-issue--labels"
[ngClass]="'op-issue--labels-' + gitlabIssue.number" style="display: none;">
<span *ngFor="let label of gitlabIssue.labels">
diff --git a/modules/gitlab_integration/frontend/module/issue/issue.component.sass b/modules/gitlab_integration/frontend/module/issue/issue.component.sass
index 9d3e946adf6..48849d1a388 100644
--- a/modules/gitlab_integration/frontend/module/issue/issue.component.sass
+++ b/modules/gitlab_integration/frontend/module/issue/issue.component.sass
@@ -43,11 +43,6 @@
&:last-child
border-bottom: none
- &--iconsize
- width: 16px
- height: 16px
- vertical-align: -3px
-
&--title
@include text-shortener
font-weight: bold
@@ -103,7 +98,7 @@
fill: #24663b
&_closed
- background-color: #cbe2f9
+ background-color: #cbe2f9
color: #0b5cad
fill: #0b5cad
@@ -146,6 +141,6 @@
fill: #24663b
&_closed
- background-color: #cbe2f9
+ background-color: #cbe2f9
color: #0b5cad
fill: #0b5cad
diff --git a/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.html b/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.html
index b3507161a0b..28663a22b87 100644
--- a/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.html
+++ b/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.html
@@ -4,8 +4,13 @@
></div>
<span class='op-merge-request--state' [ngClass]="'op-merge-request--state_' + state">
- <svg class="op-merge-request--iconsize"><use [attr.xlink:href]="'#merge-request_' + state" /></svg>
- {{state}} |
+
+ <svg *ngIf="state === 'open'" op-gitlab-merge-request-open-icon size="small"></svg>
+ <svg *ngIf="state === 'ready'" op-gitlab-merge-request-ready-icon size="small"></svg>
+ <svg *ngIf="state === 'merged'" op-gitlab-merge-request-merged-icon size="small"></svg>
+ <svg *ngIf="state === 'closed'" op-gitlab-merge-request-closed-icon size="small"></svg>
+
+ {{state}} |
<a
[ngClass]="'op-merge-request--link_' + state"
[href]="mergeRequest.htmlUrl"
@@ -15,12 +20,24 @@
</span>
<button *ngIf="mergeRequest.labels && mergeRequest.labels.length > 0" (click)="toggleLabels(mergeRequest.number)" class='op-merge-request--label_icon' title="Show/Hide labels">
- <svg class="op-merge-request--iconsize op-merge-request--label_icon_style"><use xlink:href="#labels" /></svg>
+ <svg class="op-merge-request--label_icon_style" op-gitlab-labels-icon size="small"></svg>
</button>
<span *ngIf="mergeRequest.pipelines && mergeRequest.pipelines.length > 0" class='op-merge-request--pipeline-icon'
[ngClass]="'op-merge-request--pipeline-icon_bg_' + mergeRequest.pipelines[0].status">
- <svg [ngClass]="'op-merge-request--pipeline-icon_' + mergeRequest.pipelines[0].status"><use [attr.xlink:href]="'#pipeline-status-' + mergeRequest.pipelines[0].status" /></svg>
+
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('failed')" op-gitlab-pipeline-status-failed-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('canceled')" op-gitlab-pipeline-status-canceled-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('created')" op-gitlab-pipeline-status-created-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('manual')" op-gitlab-pipeline-status-manual-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('pending')" op-gitlab-pipeline-status-pending-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('preparing')" op-gitlab-pipeline-status-preparing-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('running')" op-gitlab-pipeline-status-running-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('scheduled')" op-gitlab-pipeline-status-scheduled-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('skipped')" op-gitlab-pipeline-status-skipped-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('success')" op-gitlab-pipeline-status-success-icon size="small"></svg>
+ <svg [ngClass]="pipelineIconClass" *ngIf="isCurrentPipelinestate('waiting')" op-gitlab-pipeline-status-waiting-icon size="small"></svg>
+
<span class='op-merge-request--pipeline-label' [ngClass]="'op-merge-request--pipeline-label_' + mergeRequest.pipelines[0].status"> {{ mergeRequest.pipelines[0].status }} </span>
</span>
@@ -32,7 +49,7 @@
[src]="mergeRequest.gitlabUser.avatarUrl"
*ngIf="mergeRequest.gitlabUser"
/>&nbsp; -->
- <span class='op-merge-request--user'>
+ <span class='op-merge-request--user'>
<a
[href]="'mailto:' + mergeRequest.gitlabUser.email"
class='op-merge-request--username'
@@ -46,7 +63,7 @@
</span>.
</div>
-<div
+<div
class="op-merge-request--labels"
[ngClass]="'op-merge-request--labels-' + mergeRequest.number" style="display: none;">
<span *ngFor="let label of mergeRequest.labels">
diff --git a/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.sass b/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.sass
index ef13e6c9f5c..8b7f11b40f7 100644
--- a/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.sass
+++ b/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.sass
@@ -43,11 +43,6 @@
&:last-child
border-bottom: none
- &--iconsize
- width: 16px
- height: 16px
- vertical-align: -3px
-
&--iconwidth
min-width: 100px
@@ -111,7 +106,7 @@
fill: #24663b
&_merged
- background-color: #cbe2f9
+ background-color: #cbe2f9
color: #0b5cad
fill: #0b5cad
@@ -164,7 +159,7 @@
fill: #24663b
&_merged
- background-color: #cbe2f9
+ background-color: #cbe2f9
color: #0b5cad
fill: #0b5cad
@@ -319,4 +314,3 @@
margin-bottom: 12px
margin-left: 0
grid-area: pipeline
-
diff --git a/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.ts b/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.ts
index 1deaddff62e..a2265e8f411 100644
--- a/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.ts
+++ b/modules/gitlab_integration/frontend/module/merge-request/merge-request.component.ts
@@ -72,4 +72,11 @@ export class MergeRequestComponent {
labelsElement.style.display = labelsElement.style.display === 'none' ? 'block' : 'none';
}
+ get pipelineIconClass():string {
+ return this.mergeRequest.pipelines ? 'op-merge-request--pipeline-icon_' + this.mergeRequest.pipelines[0].status : '';
+ }
+
+ isCurrentPipelinestate(status:string):boolean {
+ return !!this.mergeRequest.pipelines && this.mergeRequest.pipelines[0].status === status;
+ }
}
diff --git a/modules/gitlab_integration/frontend/module/tab-header-issue/tab-header-issue.template.html b/modules/gitlab_integration/frontend/module/tab-header-issue/tab-header-issue.template.html
index b3b8936dd35..e3bf36a0ecf 100644
--- a/modules/gitlab_integration/frontend/module/tab-header-issue/tab-header-issue.template.html
+++ b/modules/gitlab_integration/frontend/module/tab-header-issue/tab-header-issue.template.html
@@ -1,6 +1,6 @@
<div class="gitlab-issue-header op-tab-content--header">
- <svg class="s16x32"><use xlink:href="#issue_open" /></svg>
- <h3 class="title">
+ <svg op-gitlab-issue-open-icon size="small"></svg>
+ <h3 class="title">
{{text.title}}
</h3>
</div>
diff --git a/modules/gitlab_integration/frontend/module/tab-header-mr/tab-header-mr.template.html b/modules/gitlab_integration/frontend/module/tab-header-mr/tab-header-mr.template.html
index 7ace2a84b12..376bae1ad5b 100644
--- a/modules/gitlab_integration/frontend/module/tab-header-mr/tab-header-mr.template.html
+++ b/modules/gitlab_integration/frontend/module/tab-header-mr/tab-header-mr.template.html
@@ -1,5 +1,5 @@
<div class="gitlab-mr-header op-tab-content--header">
- <svg class="s16x32"><use xlink:href="#merge-request_open" /></svg>
+ <svg op-gitlab-merge-request-open-icon size="small"></svg>
<h3 class="title">
{{text.title}}
</h3>