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
91bd0bf9
Commit
91bd0bf9
authored
Jan 18, 2016
by
Rubén Dávila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some CSS and sorting fixes.
parent
ed4934db
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
19 deletions
+30
-19
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+27
-16
app/controllers/projects/forks_controller.rb
app/controllers/projects/forks_controller.rb
+2
-2
app/views/projects/forks/index.html.haml
app/views/projects/forks/index.html.haml
+1
-1
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
91bd0bf9
...
@@ -391,22 +391,6 @@ pre.light-well {
...
@@ -391,22 +391,6 @@ pre.light-well {
padding-bottom
:
0
;
padding-bottom
:
0
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
&
.fork-search-form
{
margin
:
0
;
margin-top
:
-
$gl-padding
;
padding-bottom
:
0
;
width
:
540px
;
input
{
width
:
calc
(
100%
-
277px
);
}
.fork_link
{
float
:
right
;
margin-left
:
$gl-padding
;
}
}
input
{
input
{
display
:
inline-block
;
display
:
inline-block
;
width
:
calc
(
100%
-
151px
);
width
:
calc
(
100%
-
151px
);
...
@@ -414,6 +398,7 @@ pre.light-well {
...
@@ -414,6 +398,7 @@ pre.light-well {
.btn
{
.btn
{
display
:
inline-block
;
display
:
inline-block
;
width
:
135px
;
}
}
}
}
...
@@ -584,6 +569,32 @@ pre.light-well {
...
@@ -584,6 +569,32 @@ pre.light-well {
* Forks list rendered on Project's forks page
* Forks list rendered on Project's forks page
*/
*/
.projects-search-form
{
&
.fork-search-form
{
margin
:
0
;
margin-top
:
-
$gl-padding
;
padding-bottom
:
0
;
width
:
540px
;
input
{
width
:
calc
(
100%
-
300px
);
}
button
.sort-forks
{
width
:
160px
;
}
.fork_link
{
float
:
right
;
margin-left
:
$gl-padding
;
a
.btn-new
{
width
:
110px
;
}
}
}
}
.private-forks-notice
.private-fork-icon
{
.private-forks-notice
.private-fork-icon
{
i
.fa-circle
{
i
.fa-circle
{
color
:
#2AA056
;
color
:
#2AA056
;
...
...
app/controllers/projects/forks_controller.rb
View file @
91bd0bf9
...
@@ -4,8 +4,8 @@ class Projects::ForksController < Projects::ApplicationController
...
@@ -4,8 +4,8 @@ class Projects::ForksController < Projects::ApplicationController
before_action
:authorize_download_code!
before_action
:authorize_download_code!
def
index
def
index
@
all_forks
=
project
.
forks
.
includes
(
:creator
)
@
sort
=
params
[
:sort
]
||
'id_desc'
@all_forks
=
@all_forks
.
sort
(
params
[
:sort
])
if
params
[
:sort
]
@all_forks
=
project
.
forks
.
includes
(
:creator
).
order_by
(
@sort
)
@public_forks
,
@protected_forks
=
@all_forks
.
partition
do
|
project
|
@public_forks
,
@protected_forks
=
@all_forks
.
partition
do
|
project
|
can?
(
current_user
,
:read_project
,
project
)
can?
(
current_user
,
:read_project
,
project
)
...
...
app/views/projects/forks/index.html.haml
View file @
91bd0bf9
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
spellcheck:
false
,
data:
{
'filter-selector'
=>
'span.namespace-name'
}
spellcheck:
false
,
data:
{
'filter-selector'
=>
'span.namespace-name'
}
.dropdown.inline.prepend-left-10
.dropdown.inline.prepend-left-10
%button
.dropdown-toggle.btn
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%button
.dropdown-toggle.btn
.sort-forks
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.light
sort:
%span
.light
sort:
-
if
@sort
.
present?
-
if
@sort
.
present?
=
sort_options_hash
[
@sort
]
=
sort_options_hash
[
@sort
]
...
...
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