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
f897e756
Commit
f897e756
authored
Aug 20, 2020
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Merge branch '237868-add-an-upgrade-option-to-the-admin-license-page-mvc' into 'master'"
This reverts merge request !39597
parent
7d3a2cfb
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
20 additions
and
126 deletions
+20
-126
app/assets/stylesheets/framework/lists.scss
app/assets/stylesheets/framework/lists.scss
+3
-3
app/assets/stylesheets/pages/members.scss
app/assets/stylesheets/pages/members.scss
+4
-0
app/views/shared/members/_member.html.haml
app/views/shared/members/_member.html.haml
+1
-1
ee/app/views/admin/licenses/_breakdown.html.haml
ee/app/views/admin/licenses/_breakdown.html.haml
+4
-2
ee/app/views/admin/licenses/_info.html.haml
ee/app/views/admin/licenses/_info.html.haml
+2
-6
ee/app/views/admin/licenses/_license_history.html.haml
ee/app/views/admin/licenses/_license_history.html.haml
+3
-0
ee/app/views/admin/licenses/show.html.haml
ee/app/views/admin/licenses/show.html.haml
+3
-5
ee/changelogs/unreleased/237868-add-an-upgrade-option-to-the-admin-license-page-mvc.yml
...8-add-an-upgrade-option-to-the-admin-license-page-mvc.yml
+0
-5
ee/spec/views/admin/licenses/_info.html.haml_spec.rb
ee/spec/views/admin/licenses/_info.html.haml_spec.rb
+0
-20
ee/spec/views/admin/licenses/show.html.haml_spec.rb
ee/spec/views/admin/licenses/show.html.haml_spec.rb
+0
-81
locale/gitlab.pot
locale/gitlab.pot
+0
-3
No files found.
app/assets/stylesheets/framework/lists.scss
View file @
f897e756
...
@@ -132,11 +132,11 @@ ul.content-list {
...
@@ -132,11 +132,11 @@ ul.content-list {
a
{
a
{
color
:
$gl-text-color
;
color
:
$gl-text-color
;
}
&
.inline
-link
{
.member-group
-link
{
color
:
$blue-600
;
color
:
$blue-600
;
}
}
}
.description
{
.description
{
@include
str-truncated
;
@include
str-truncated
;
...
...
app/assets/stylesheets/pages/members.scss
View file @
f897e756
...
@@ -180,6 +180,10 @@
...
@@ -180,6 +180,10 @@
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.member-group-link
{
display
:
inline-block
;
}
.form-control
{
.form-control
{
width
:
inherit
;
width
:
inherit
;
}
}
...
...
app/views/shared/members/_member.html.haml
View file @
f897e756
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
-
if
source
.
instance_of?
(
Group
)
&&
source
!=
@group
-
if
source
.
instance_of?
(
Group
)
&&
source
!=
@group
·
·
=
link_to
source
.
full_name
,
source
,
class:
"
gl-display-inline-block inline
-link"
=
link_to
source
.
full_name
,
source
,
class:
"
member-group
-link"
.cgray
.cgray
-
if
member
.
request?
-
if
member
.
request?
...
...
ee/app/views/admin/licenses/_breakdown.html.haml
View file @
f897e756
-
if
@license
.
restricted?
(
:active_user_count
)
-
return
unless
local_assigns
.
fetch
(
:license
)
-
restricted
=
@license
.
restrictions
[
:active_user_count
]
-
if
license
.
restricted?
(
:active_user_count
)
-
restricted
=
license
.
restrictions
[
:active_user_count
]
-
licensed_users
=
number_with_delimiter
(
restricted
)
-
licensed_users
=
number_with_delimiter
(
restricted
)
-
else
-
else
-
licensed_users
=
_
(
'Unlimited'
)
-
licensed_users
=
_
(
'Unlimited'
)
...
...
ee/app/views/admin/licenses/_info.html.haml
View file @
f897e756
-
return
unless
local_assigns
.
fetch
(
:license
)
.row
.row
.col-md-6
.col-md-6
.card
.card
...
@@ -16,12 +18,6 @@
...
@@ -16,12 +18,6 @@
%li
%li
%span
.light
=
_
(
'Plan:'
)
%span
.light
=
_
(
'Plan:'
)
%strong
=
@license
.
plan
.
capitalize
%strong
=
@license
.
plan
.
capitalize
=
' - '
=
link_to
_
(
'How to upgrade'
),
help_page_path
(
'subscriptions/index.md'
,
anchor:
'upgrade-your-self-managed-subscription-tier'
),
class:
'inline-link'
,
target: :_blank
,
rel: :noreferrer
%li
%li
%span
.light
=
_
(
'Uploaded:'
)
%span
.light
=
_
(
'Uploaded:'
)
%strong
=
time_ago_with_tooltip
@license
.
created_at
%strong
=
time_ago_with_tooltip
@license
.
created_at
...
...
ee/app/views/admin/licenses/_license_history.html.haml
View file @
f897e756
-
return
unless
local_assigns
.
fetch
(
:licenses
)
-
local_assigns
.
fetch
(
:license
)
-
licensee_keys
=
@licenses
.
first
.
licensee
.
keys
-
licensee_keys
=
@licenses
.
first
.
licensee
.
keys
%h4
=
_
(
'License History'
)
%h4
=
_
(
'License History'
)
...
...
ee/app/views/admin/licenses/show.html.haml
View file @
f897e756
...
@@ -19,9 +19,7 @@
...
@@ -19,9 +19,7 @@
%h4
.gl-alert-title
=
_
(
'You do not have an active license'
)
%h4
.gl-alert-title
=
_
(
'You do not have an active license'
)
=
_
(
'You have a license that activates at a future date. Please see the License History table below.'
)
=
_
(
'You have a license that activates at a future date. Please see the License History table below.'
)
-
if
@license
.
present?
=
render
'info'
,
license:
@license
=
render
'info'
=
render
'breakdown'
,
license:
@license
=
render
'breakdown'
-
if
@licenses
.
present?
=
render
'license_history'
,
license:
@license
,
licenses:
@licenses
=
render
'license_history'
ee/changelogs/unreleased/237868-add-an-upgrade-option-to-the-admin-license-page-mvc.yml
deleted
100644 → 0
View file @
7d3a2cfb
---
title
:
Add How-to-upgrade link to admin license page
merge_request
:
39597
author
:
type
:
changed
ee/spec/views/admin/licenses/_info.html.haml_spec.rb
deleted
100644 → 0
View file @
7d3a2cfb
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
'admin/licenses/_info'
do
let_it_be
(
:license
)
{
create
(
:license
)
}
before
do
assign
(
:license
,
license
)
end
context
'when observing licensees'
do
it
'shows "How to upgrade" link'
do
render
expect
(
rendered
).
to
have_content
(
'Plan: Starter - How to upgrade'
)
expect
(
rendered
).
to
have_link
(
'How to upgrade'
)
end
end
end
ee/spec/views/admin/licenses/show.html.haml_spec.rb
deleted
100644 → 0
View file @
7d3a2cfb
# frozen_string_literal: true
require
'spec_helper'
RSpec
.
describe
'admin/licenses/show.html.haml'
do
let_it_be
(
:license
)
{
create
(
:license
)
}
before
do
stub_feature_flags
(
licenses_app:
false
)
end
context
'when trial license is present'
do
before
do
trial_license
=
create
(
:license
,
trial:
true
)
assign
(
:license
,
trial_license
)
end
it
'shows content as expected'
do
render
expect
(
rendered
).
to
have_content
(
'Buy License'
)
end
end
context
'when non trial license is present'
do
before
do
assign
(
:license
,
license
)
end
it
'shows content as expected'
do
render
expect
(
rendered
).
not_to
have_content
(
'Buy License'
)
expect
(
rendered
).
to
have_content
(
'Licensed to'
)
expect
(
rendered
).
to
have_content
(
'Users in License:'
)
expect
(
rendered
).
to
have_content
(
'Upload New License'
)
end
end
context
'when license is not present'
do
it
'does not show content'
do
render
expect
(
rendered
).
not_to
have_content
(
'Licensed to'
)
expect
(
rendered
).
not_to
have_content
(
'Users in License:'
)
expect
(
rendered
).
to
have_content
(
'Upload New License'
)
end
end
context
'when licenses are present'
do
before
do
assign
(
:licenses
,
[
license
])
end
it
'shows content as expected'
do
render
expect
(
rendered
).
to
have_content
(
'License History'
)
end
end
context
'when licenses are empty'
do
before
do
assign
(
:licenses
,
[])
end
it
'does not show content'
do
render
expect
(
rendered
).
not_to
have_content
(
'License History'
)
end
end
context
'when licenses are not defined'
do
it
'does not show content'
do
render
expect
(
rendered
).
not_to
have_content
(
'License History'
)
end
end
end
locale/gitlab.pot
View file @
f897e756
...
@@ -12587,9 +12587,6 @@ msgstr ""
...
@@ -12587,9 +12587,6 @@ msgstr ""
msgid "How many users will be evaluating the trial?"
msgid "How many users will be evaluating the trial?"
msgstr ""
msgstr ""
msgid "How to upgrade"
msgstr ""
msgid "However, you are already a member of this %{member_source}. Sign in using a different account to accept the invitation."
msgid "However, you are already a member of this %{member_source}. Sign in using a different account to accept the invitation."
msgstr ""
msgstr ""
...
...
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