Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ccb8015a
Commit
ccb8015a
authored
May 07, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
4a9afc76
5cd079e4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
40 deletions
+51
-40
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+15
-3
app/assets/stylesheets/pages/todos.scss
app/assets/stylesheets/pages/todos.scss
+27
-34
app/views/dashboard/todos/_todo.html.haml
app/views/dashboard/todos/_todo.html.haml
+1
-1
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+3
-2
changelogs/unreleased/61278-next.yml
changelogs/unreleased/61278-next.yml
+5
-0
No files found.
app/assets/javascripts/main.js
View file @
ccb8015a
...
...
@@ -139,10 +139,22 @@ function deferredInitialisation() {
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
'
)
{
document
.
querySelector
(
'
.js-canary-badge
'
).
classList
.
remove
(
'
hidden
'
);
document
.
querySelector
(
'
.js-canary-link
'
).
classList
.
add
(
'
hidden
'
);
const
canaryBadge
=
document
.
querySelector
(
'
.js-canary-badge
'
);
const
canaryLink
=
document
.
querySelector
(
'
.js-canary-link
'
);
if
(
canaryBadge
)
{
canaryBadge
.
classList
.
remove
(
'
hidden
'
);
}
if
(
canaryLink
)
{
canaryLink
.
classList
.
add
(
'
hidden
'
);
}
}
}
...
...
app/assets/stylesheets/pages/todos.scss
View file @
ccb8015a
...
...
@@ -110,45 +110,38 @@
}
.todo-body
{
.todo-note
{
word-wrap
:
break-word
;
.md
{
color
:
$gl-grayish-blue
;
font-size
:
$gl-font-size
;
.badge.badge-pill
{
color
:
$gl-text-color
;
}
.badge.badge-pill
,
p
{
color
:
$gl-text-color
;
}
p
{
color
:
$gl-text-color
;
}
}
.md
{
color
:
$gl-grayish-blue
;
font-size
:
$gl-font-size
;
}
code
{
white-space
:
pre-wrap
;
}
code
{
white-space
:
pre-wrap
;
}
pre
{
border
:
0
;
background
:
$gray-light
;
border-radius
:
0
;
color
:
$gl-gray-500
;
margin
:
0
20px
;
overflow
:
hidden
;
}
pre
{
border
:
0
;
background
:
$gray-light
;
border-radius
:
0
;
color
:
$gl-gray-500
;
margin
:
0
20px
;
overflow
:
hidden
;
}
.note-image-attach
{
margin-top
:
4px
;
margin-left
:
0
;
max-width
:
200px
;
float
:
none
;
}
.note-image-attach
{
margin-top
:
4px
;
margin-left
:
0
;
max-width
:
200px
;
float
:
none
;
}
p
:last-child
{
margin-bottom
:
0
;
}
p
:last-child
{
margin-bottom
:
0
;
}
}
}
...
...
app/views/dashboard/todos/_todo.html.haml
View file @
ccb8015a
...
...
@@ -34,7 +34,7 @@
=
todo_due_date
(
todo
)
.todo-body
.todo-note
.todo-note
.break-word
.md
=
first_line_in_markdown
(
todo
,
:body
,
150
,
project:
todo
.
project
)
...
...
app/views/layouts/header/_default.html.haml
View file @
ccb8015a
...
...
@@ -17,8 +17,9 @@
-
if
logo_text
.
present?
%span
.logo-text.d-none.d-lg-block.prepend-left-8
=
logo_text
%span
.js-canary-badge.badge.badge-pill.green-badge.align-self-center
=
_
(
'Next'
)
-
if
Gitlab
.
com?
%span
.js-canary-badge.badge.badge-pill.green-badge.align-self-center
=
_
(
'Next'
)
-
if
current_user
=
render
"layouts/nav/dashboard"
...
...
changelogs/unreleased/61278-next.yml
0 → 100644
View file @
ccb8015a
---
title
:
Render Next badge only for gitlab.com
merge_request
:
28056
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment