BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b512fbc0
Unverified
Commit
b512fbc0
authored
Jan 02, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Style search page for twbs3
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7617ff56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
_diffs.html.haml
app/views/projects/commits/_diffs.html.haml
+2
-2
show.html.haml
app/views/search/show.html.haml
+13
-9
No files found.
app/views/projects/commits/_diffs.html.haml
View file @
b512fbc0
-
@suppress_diff
||=
@suppress_diff
||
@force_suppress_diff
-
if
@suppress_diff
.alert.alert-
block
.alert.alert-
warning
%p
%strong
Warning! This is a large diff.
%p
...
...
@@ -67,7 +67,7 @@
-
next
unless
file
.
respond_to?
(
'text?'
)
-
if
file
.
text?
-
if
params
[
:view
]
==
'parallel'
=
render
"projects/commits/parallel_view"
,
diff:
diff
,
project:
project
,
file:
file
,
index:
i
=
render
"projects/commits/parallel_view"
,
diff:
diff
,
project:
project
,
file:
file
,
index:
i
-
else
=
render
"projects/commits/text_file"
,
diff:
diff
,
index:
i
-
elsif
file
.
image?
...
...
app/views/search/show.html.haml
View file @
b512fbc0
=
form_tag
search_path
,
method: :get
,
class:
'form-inline'
do
|
f
|
.search-holder
=
label_tag
:search
do
%span
Looking for
.col-sm-10
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"issue 143"
,
class:
"form-control search-text-input"
,
id:
"dashboard_search"
=
form_tag
search_path
,
method: :get
,
class:
'form-horizontal'
do
|
f
|
.search-holder.clearfix
.form-group
=
label_tag
:search
,
class:
'control-label'
do
%span
Looking for
.col-sm-6
=
search_field_tag
:search
,
params
[
:search
],
placeholder:
"issue 143"
,
class:
"form-control search-text-input"
,
id:
"dashboard_search"
.col-sm-4
=
submit_tag
'Search'
,
class:
"btn btn-create"
.form-group
.col-sm-2
.col-sm-10
=
render
'filter'
,
f:
f
=
hidden_field_tag
:project_id
,
params
[
:project_id
]
=
hidden_field_tag
:group_id
,
params
[
:group_id
]
=
hidden_field_tag
:search_code
,
params
[
:search_code
]
=
submit_tag
'Search'
,
class:
"btn btn-create"
.prepend-top-10
=
render
'filter'
,
f:
f
.results.prepend-top-10
-
if
params
[
:search
].
present?
...
...
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