Commit ccb8015a authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 4a9afc76 5cd079e4
...@@ -139,10 +139,22 @@ function deferredInitialisation() { ...@@ -139,10 +139,22 @@ function deferredInitialisation() {
loadAwardsHandler(); loadAwardsHandler();
// Toggle Canary Badge /**
* Toggle Canary Badge
*
* For GitLab.com only, when the user is using canary
* we render a Next badge and hide the option to switch
* to canay
*/
if (Cookies.get('gitlab_canary') && Cookies.get('gitlab_canary') === 'true') { if (Cookies.get('gitlab_canary') && Cookies.get('gitlab_canary') === 'true') {
document.querySelector('.js-canary-badge').classList.remove('hidden'); const canaryBadge = document.querySelector('.js-canary-badge');
document.querySelector('.js-canary-link').classList.add('hidden'); const canaryLink = document.querySelector('.js-canary-link');
if (canaryBadge) {
canaryBadge.classList.remove('hidden');
}
if (canaryLink) {
canaryLink.classList.add('hidden');
}
} }
} }
......
...@@ -110,45 +110,38 @@ ...@@ -110,45 +110,38 @@
} }
.todo-body { .todo-body {
.todo-note { .badge.badge-pill,
word-wrap: break-word; p {
color: $gl-text-color;
.md { }
color: $gl-grayish-blue;
font-size: $gl-font-size;
.badge.badge-pill {
color: $gl-text-color;
}
p { .md {
color: $gl-text-color; color: $gl-grayish-blue;
} font-size: $gl-font-size;
} }
code { code {
white-space: pre-wrap; white-space: pre-wrap;
} }
pre { pre {
border: 0; border: 0;
background: $gray-light; background: $gray-light;
border-radius: 0; border-radius: 0;
color: $gl-gray-500; color: $gl-gray-500;
margin: 0 20px; margin: 0 20px;
overflow: hidden; overflow: hidden;
} }
.note-image-attach { .note-image-attach {
margin-top: 4px; margin-top: 4px;
margin-left: 0; margin-left: 0;
max-width: 200px; max-width: 200px;
float: none; float: none;
} }
p:last-child { p:last-child {
margin-bottom: 0; margin-bottom: 0;
}
} }
} }
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
= todo_due_date(todo) = todo_due_date(todo)
.todo-body .todo-body
.todo-note .todo-note.break-word
.md .md
= first_line_in_markdown(todo, :body, 150, project: todo.project) = first_line_in_markdown(todo, :body, 150, project: todo.project)
......
...@@ -17,8 +17,9 @@ ...@@ -17,8 +17,9 @@
- if logo_text.present? - if logo_text.present?
%span.logo-text.d-none.d-lg-block.prepend-left-8 %span.logo-text.d-none.d-lg-block.prepend-left-8
= logo_text = logo_text
%span.js-canary-badge.badge.badge-pill.green-badge.align-self-center - if Gitlab.com?
= _('Next') %span.js-canary-badge.badge.badge-pill.green-badge.align-self-center
= _('Next')
- if current_user - if current_user
= render "layouts/nav/dashboard" = render "layouts/nav/dashboard"
......
---
title: Render Next badge only for gitlab.com
merge_request: 28056
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment