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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
fc60c391
Commit
fc60c391
authored
Jan 09, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve search page UX
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b49ebf57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
app/views/search/_project_results.html.haml
app/views/search/_project_results.html.haml
+2
-2
app/views/search/_results.html.haml
app/views/search/_results.html.haml
+8
-4
No files found.
app/views/search/_project_results.html.haml
View file @
fc60c391
%ul
.nav.nav-
pills.append-bottom-2
0
%ul
.nav.nav-
tabs.append-bottom-1
0
%li
{
class:
(
"active"
if
params
[
:search_code
].
present?
)}
%li
{
class:
(
"active"
if
params
[
:search_code
].
present?
)}
=
link_to
search_path
(
params
.
merge
(
search_code:
true
))
do
=
link_to
search_path
(
params
.
merge
(
search_code:
true
))
do
Repository Code
Repository Code
%li
{
class:
(
"active"
if
params
[
:search_code
].
blank?
)}
%li
{
class:
(
"active"
if
params
[
:search_code
].
blank?
)}
=
link_to
search_path
(
params
.
merge
(
search_code:
nil
))
do
=
link_to
search_path
(
params
.
merge
(
search_code:
nil
))
do
Everything else
Issues and Merge requests
.search_results
.search_results
-
if
params
[
:search_code
].
present?
-
if
params
[
:search_code
].
present?
...
...
app/views/search/_results.html.haml
View file @
fc60c391
%fieldset
%h4
%legend
#{
@search_results
[
:total_results
]
}
results found
Search results
-
if
@project
%span
.cgray
(
#{
@search_results
[
:total_results
]
}
)
for
#{
link_to
@project
.
name_with_namespace
,
@project
}
-
elsif
@group
for
#{
link_to
@group
.
name
,
@group
}
%hr
-
if
@project
-
if
@project
=
render
"project_results"
=
render
"project_results"
...
...
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