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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
3ef515f3
Commit
3ef515f3
authored
Sep 20, 2016
by
Katarzyna Kobierska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor fields in view
parent
7dfb204e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/views/ci/lints/_create.html.haml
app/views/ci/lints/_create.html.haml
+3
-3
spec/views/ci/lints/show.html.haml_spec.rb
spec/views/ci/lints/show.html.haml_spec.rb
+1
-1
No files found.
app/views/ci/lints/_create.html.haml
View file @
3ef515f3
...
@@ -21,13 +21,13 @@
...
@@ -21,13 +21,13 @@
%br
%br
%b
Tag list:
%b
Tag list:
=
build
[
:tag_list
]
&&
build
[
:tag_list
]
.
to_a
.
join
(
", "
)
=
build
[
:tag_list
].
to_a
.
join
(
", "
)
%br
%br
%b
Refs only:
%b
Refs only:
=
@jobs
[
build
[
:name
].
to_sym
][
:only
]
&&
@jobs
[
build
[
:name
].
to_sym
][
:only
]
.
to_a
.
join
(
", "
)
=
@jobs
[
build
[
:name
].
to_sym
][
:only
].
to_a
.
join
(
", "
)
%br
%br
%b
Refs except:
%b
Refs except:
=
@jobs
[
build
[
:name
].
to_sym
][
:except
]
&&
@jobs
[
build
[
:name
].
to_sym
][
:except
]
.
to_a
.
join
(
", "
)
=
@jobs
[
build
[
:name
].
to_sym
][
:except
].
to_a
.
join
(
", "
)
%br
%br
%b
Environment:
%b
Environment:
=
build
[
:environment
]
=
build
[
:environment
]
...
...
spec/views/ci/lints/show.html.haml_spec.rb
View file @
3ef515f3
...
@@ -43,7 +43,7 @@ describe 'ci/lints/show' do
...
@@ -43,7 +43,7 @@ describe 'ci/lints/show' do
it
'shows error message'
do
it
'shows error message'
do
render
render
expect
(
rendered
).
to
have_content
(
'Status: syntax is incorrec'
)
expect
(
rendered
).
to
have_content
(
'Status: syntax is incorrec
t
'
)
expect
(
rendered
).
to
have_content
(
'Error: Undefined error'
)
expect
(
rendered
).
to
have_content
(
'Error: Undefined error'
)
expect
(
rendered
).
not_to
have_content
(
'Tag list:'
)
expect
(
rendered
).
not_to
have_content
(
'Tag list:'
)
end
end
...
...
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