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
97a7bdd2
Commit
97a7bdd2
authored
May 17, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated services UI
parent
28eea9bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
39 deletions
+46
-39
app/views/projects/services/_form.html.haml
app/views/projects/services/_form.html.haml
+15
-17
app/views/projects/services/index.html.haml
app/views/projects/services/index.html.haml
+31
-22
No files found.
app/views/projects/services/_form.html.haml
View file @
97a7bdd2
%h3
.page-title
.row.prepend-top-default.append-bottom-default
=
@service
.
title
.col-lg-3
=
boolean_to_icon
@service
.
activated?
%h4
.prepend-top-0
=
@service
.
title
=
boolean_to_icon
@service
.
activated?
%p
=
@service
.
description
%p
=
@service
.
description
.col-lg-9
%hr
=
form_for
(
@service
,
as: :service
,
url:
namespace_project_service_path
(
@project
.
namespace
,
@project
,
@service
.
to_param
),
method: :put
,
html:
{
class:
'form-horizontal'
})
do
|
form
|
=
render
'shared/service_settings'
,
form:
form
=
form_for
(
@service
,
as: :service
,
url:
namespace_project_service_path
(
@project
.
namespace
,
@project
,
@service
.
to_param
),
method: :put
,
html:
{
class:
'form-horizontal'
})
do
|
form
|
=
form
.
submit
'Save changes'
,
class:
'btn btn-save'
=
render
'shared/service_settings'
,
form:
form
-
if
@service
.
valid?
&&
@service
.
activated?
.form-actions
-
disabled
=
@service
.
can_test?
?
''
:
'disabled'
=
form
.
submit
'Save changes'
,
class:
'btn btn-save'
=
link_to
'Test settings'
,
test_namespace_project_service_path
(
@project
.
namespace
,
@project
,
@service
.
to_param
),
class:
"btn
#{
disabled
}
"
=
link_to
"Cancel"
,
namespace_project_services_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-cancel"
-
if
@service
.
valid?
&&
@service
.
activated?
-
disabled
=
@service
.
can_test?
?
''
:
'disabled'
=
link_to
'Test settings'
,
test_namespace_project_service_path
(
@project
.
namespace
,
@project
,
@service
.
to_param
),
class:
"btn
#{
disabled
}
"
=
link_to
"Cancel"
,
namespace_project_services_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-cancel"
app/views/projects/services/index.html.haml
View file @
97a7bdd2
-
page_title
"Services"
-
page_title
"Services"
%h3
.page-title
Project services
%p
.light
Project services allow you to integrate GitLab with other applications
.table-holder
.row.prepend-top-default.append-bottom-default
%table
.table
.col-lg-3
%thead
%h4
.prepend-top-0
%tr
Project services
%th
%p
Project services allow you to integrate GitLab with other applications
%th
Service
.col-lg-9
%th
Description
.table-responsive
%th
Last edit
%table
.table
-
@services
.
sort_by
(
&
:title
).
each
do
|
service
|
%colgroup
%tr
%col
%td
%col
=
boolean_to_icon
service
.
activated?
%col
%td
%col
{
width:
"120"
}
=
link_to
edit_namespace_project_service_path
(
@project
.
namespace
,
@project
,
service
.
to_param
)
do
%thead
%strong
=
service
.
title
%tr
%td
%th
=
service
.
description
%th
Service
%td
.light
%th
Description
=
time_ago_in_words
service
.
updated_at
%th
Last edit
ago
-
@services
.
sort_by
(
&
:title
).
each
do
|
service
|
%tr
%td
=
boolean_to_icon
service
.
activated?
%td
=
link_to
edit_namespace_project_service_path
(
@project
.
namespace
,
@project
,
service
.
to_param
)
do
%strong
=
service
.
title
%td
=
service
.
description
%td
.light
=
time_ago_in_words
service
.
updated_at
ago
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