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
c70c499e
Commit
c70c499e
authored
Jul 28, 2017
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply some small refactors after code review
parent
6fa078b6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
8 deletions
+5
-8
app/helpers/license_helper.rb
app/helpers/license_helper.rb
+2
-1
app/models/license.rb
app/models/license.rb
+0
-4
app/views/dashboard/projects/_zero_authorized_projects.html.haml
...ws/dashboard/projects/_zero_authorized_projects.html.haml
+1
-1
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+1
-1
app/views/layouts/header/_ee_trial_banner.html.haml
app/views/layouts/header/_ee_trial_banner.html.haml
+1
-1
No files found.
app/helpers/license_helper.rb
View file @
c70c499e
...
@@ -60,9 +60,10 @@ module LicenseHelper
...
@@ -60,9 +60,10 @@ module LicenseHelper
end
end
def
new_trial_url
def
new_trial_url
return_to_url
=
URI
.
encode
(
Gitlab
.
config
.
gitlab
.
url
)
uri
=
URI
.
parse
(
Gitlab
::
SUBSCRIPTIONS_URL
)
uri
=
URI
.
parse
(
Gitlab
::
SUBSCRIPTIONS_URL
)
uri
.
path
=
'/trials/new'
uri
.
path
=
'/trials/new'
uri
.
query
=
"return_to=
#{
Gitlab
.
config
.
gitlab
.
url
}
"
uri
.
query
=
"return_to=
#{
return_to_
url
}
"
uri
.
to_s
uri
.
to_s
end
end
...
...
app/models/license.rb
View file @
c70c499e
...
@@ -201,10 +201,6 @@ class License < ActiveRecord::Base
...
@@ -201,10 +201,6 @@ class License < ActiveRecord::Base
return
unless
license
&&
license
.
valid?
return
unless
license
&&
license
.
valid?
license
license
end
end
def
trial
all
.
detect
{
|
license
|
license
.
trial?
}
end
end
end
def
data_filename
def
data_filename
...
...
app/views/dashboard/projects/_zero_authorized_projects.html.haml
View file @
c70c499e
-
admin_without_ee_license
=
!
current_license
&&
current_user
.
admin?
-
admin_without_ee_license
=
!
current_license
&&
current_user
.
admin?
.row.blank-state-parent-container
{
class:
"#{ 'has-start-trial-container' if admin_without_ee_license }"
}
.row.blank-state-parent-container
{
class:
(
'has-start-trial-container'
if
admin_without_ee_license
)
}
.section-container.section-welcome
{
class:
"#{ 'col-md-6' if admin_without_ee_license }"
}
.section-container.section-welcome
{
class:
"#{ 'col-md-6' if admin_without_ee_license }"
}
.container.section-body
.container.section-body
.blank-state.blank-state-welcome
.blank-state.blank-state-welcome
...
...
app/views/layouts/_page.html.haml
View file @
c70c499e
.page-with-sidebar.js-page-with-sidebar
{
class:
"#{('page-with-new-sidebar' if defined?(@new_sidebar) && @new_sidebar)} #{page_gutter_class}"
}
.page-with-sidebar.js-page-with-sidebar
{
class:
[(
'page-with-new-sidebar'
if
@new_sidebar
),
page_gutter_class
]
}
-
if
show_new_nav?
-
if
show_new_nav?
-
if
defined?
(
nav
)
&&
nav
-
if
defined?
(
nav
)
&&
nav
=
render
"layouts/nav/
#{
nav
}
"
=
render
"layouts/nav/
#{
nav
}
"
...
...
app/views/layouts/header/_ee_trial_banner.html.haml
View file @
c70c499e
-
if
current_license
&
.
trial?
&&
license_message
.
present?
-
if
current_license
&
.
trial?
&&
license_message
.
present?
.alert.alert-dismissible.gitlab-ee-trial-banner.hidden.js-gitlab-ee-trial-banner
{
role:
'alert'
,
'data-license-expiry'
=>
current_license
.
expires_at
}
.alert.alert-dismissible.gitlab-ee-trial-banner.hidden.js-gitlab-ee-trial-banner
{
role:
'alert'
,
data:
{
license_expiry:
current_license
.
expires_at
}
}
%button
.close
{
type:
'button'
,
'data-dismiss'
=>
'alert'
,
'aria-label'
=>
'Dismiss banner'
}
%button
.close
{
type:
'button'
,
'data-dismiss'
=>
'alert'
,
'aria-label'
=>
'Dismiss banner'
}
=
icon
(
'times'
,
'aria-hidden'
=>
'true'
)
=
icon
(
'times'
,
'aria-hidden'
=>
'true'
)
%p
%p
...
...
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