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
Léo-Paul Géneau
gitlab-ce
Commits
2b98b7fa
Commit
2b98b7fa
authored
Jan 26, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Styles for file list change."
This reverts commit
a1408948
.
parent
9a1ec97f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
36 deletions
+37
-36
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+0
-4
app/assets/stylesheets/pages/tree.scss
app/assets/stylesheets/pages/tree.scss
+0
-6
app/views/projects/repositories/_download_archive.html.haml
app/views/projects/repositories/_download_archive.html.haml
+35
-25
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+2
-1
No files found.
app/assets/stylesheets/framework/buttons.scss
View file @
2b98b7fa
...
@@ -191,7 +191,3 @@
...
@@ -191,7 +191,3 @@
@include
btn-green
@include
btn-green
}
}
}
}
.btn-icon
{
}
\ No newline at end of file
app/assets/stylesheets/pages/tree.scss
View file @
2b98b7fa
...
@@ -14,15 +14,9 @@
...
@@ -14,15 +14,9 @@
.tree-table
{
.tree-table
{
margin-bottom
:
0
;
margin-bottom
:
0
;
tr
:nth-child
(
odd
)
{
background-color
:
#F7F9FB
;
}
tr
{
tr
{
>
td
,
>
th
{
>
td
,
>
th
{
line-height
:
26px
;
line-height
:
26px
;
border-top
:
1px
solid
#EEF0F2
;
border-bottom
:
1px
solid
#EEF0F2
;
}
}
&
:hover
{
&
:hover
{
...
...
app/views/projects/repositories/_download_archive.html.haml
View file @
2b98b7fa
-
ref
=
ref
||
nil
-
ref
=
ref
||
nil
-
btn_class
=
btn_class
||
''
-
btn_class
=
btn_class
||
''
-
split_button
=
split_button
||
false
.btn-group
-
if
split_button
==
true
%button
.btn.dropdown-toggle
{
'data-toggle'
=>
'dropdown'
,
class:
btn_class
}
%span
.btn-group
{
class:
btn_class
}
=
icon
(
'download'
)
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'zip'
),
class:
'btn col-xs-10'
,
rel:
'nofollow'
do
Download
%i
.fa.fa-download
%span
.caret
%span
Download zip
%span
.sr-only
%a
.col-xs-2.btn.dropdown-toggle
{
'data-toggle'
=>
'dropdown'
}
Select Archive Format
%span
.caret
%ul
.col-xs-10.dropdown-menu
{
role:
'menu'
}
%span
.sr-only
%li
Select Archive Format
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'zip'
),
rel:
'nofollow'
do
%ul
.col-xs-10.dropdown-menu
{
role:
'menu'
}
%i
.fa.fa-download
%li
%span
Download zip
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'zip'
),
rel:
'nofollow'
do
%li
%i
.fa.fa-download
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar.gz'
),
rel:
'nofollow'
do
%span
Download zip
%i
.fa.fa-download
%li
%span
Download tar.gz
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar.gz'
),
rel:
'nofollow'
do
%li
%i
.fa.fa-download
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar.bz2'
),
rel:
'nofollow'
do
%span
Download tar.gz
%i
.fa.fa-download
%li
%span
Download tar.bz2
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar.bz2'
),
rel:
'nofollow'
do
%li
%i
.fa.fa-download
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar'
),
rel:
'nofollow'
do
%span
Download tar.bz2
%i
.fa.fa-download
%li
%span
Download tar
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar'
),
rel:
'nofollow'
do
\ No newline at end of file
%i
.fa.fa-download
%span
Download tar
-
else
%span
.btn-group
{
class:
btn_class
}
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'zip'
),
class:
'btn'
,
rel:
'nofollow'
do
%i
.fa.fa-download
%span
zip
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar.gz'
),
class:
'btn'
,
rel:
'nofollow'
do
%i
.fa.fa-download
%span
tar.gz
app/views/projects/tree/show.html.haml
View file @
2b98b7fa
...
@@ -6,8 +6,9 @@
...
@@ -6,8 +6,9 @@
=
render
'projects/last_push'
=
render
'projects/last_push'
.tree-controls
.tree-controls
=
render
'projects/find_file_link'
-
if
can?
current_user
,
:download_code
,
@project
-
if
can?
current_user
,
:download_code
,
@project
=
render
'projects/repositories/download_archive'
,
ref:
@ref
,
btn_class:
'hidden-xs hidden-sm btn-grouped
btn-success'
=
render
'projects/repositories/download_archive'
,
ref:
@ref
,
btn_class:
'hidden-xs hidden-sm btn-grouped
'
,
split_button:
true
#tree-holder
.tree-holder.clearfix
#tree-holder
.tree-holder.clearfix
.nav-block
.nav-block
...
...
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