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
374c853f
Commit
374c853f
authored
Apr 10, 2021
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Rails/Presence in Rubocop for HAML
Signed-off-by:
Takuya Noguchi
<
takninnovationresearch@gmail.com
>
parent
ea8a18b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
.haml-lint.yml
.haml-lint.yml
+0
-1
app/views/admin/groups/index.html.haml
app/views/admin/groups/index.html.haml
+1
-2
No files found.
.haml-lint.yml
View file @
374c853f
...
...
@@ -124,7 +124,6 @@ linters:
-
Performance/RedundantMatch
-
Performance/StringReplacement
-
Rails/LinkToBlank
-
Rails/Presence
-
Rails/RequestReferer
-
Style/ColonMethodCall
-
Style/ConditionalAssignment
...
...
app/views/admin/groups/index.html.haml
View file @
374c853f
...
...
@@ -5,9 +5,8 @@
=
form_tag
admin_groups_path
,
method: :get
,
class:
'js-search-form'
do
|
f
|
=
hidden_field_tag
:sort
,
@sort
.search-holder
-
project_name
=
params
[
:name
].
present?
?
params
[
:name
]
:
nil
.search-field-holder
=
search_field_tag
:name
,
p
roject_nam
e
,
class:
"form-control search-text-input js-search-input"
,
autofocus:
true
,
spellcheck:
false
,
placeholder:
'Search by name'
,
data:
{
qa_selector:
'group_search_field'
}
=
search_field_tag
:name
,
p
arams
[
:name
].
presenc
e
,
class:
"form-control search-text-input js-search-input"
,
autofocus:
true
,
spellcheck:
false
,
placeholder:
'Search by name'
,
data:
{
qa_selector:
'group_search_field'
}
=
sprite_icon
(
'search'
,
css_class:
'search-icon'
)
=
render
"shared/groups/dropdown"
,
options_hash:
admin_groups_sort_options_hash
=
link_to
new_admin_group_path
,
class:
"gl-button btn btn-confirm"
do
...
...
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