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
Jérome Perrin
gitlab-ce
Commits
57749022
Commit
57749022
authored
8 years ago
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed dropdown JS to align instead favours HTML class
parent
4366af51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
12 deletions
+2
-12
app/assets/javascripts/dropdowns.js.coffee
app/assets/javascripts/dropdowns.js.coffee
+0
-10
app/views/projects/branches/index.html.haml
app/views/projects/branches/index.html.haml
+1
-1
app/views/projects/tags/_download.html.haml
app/views/projects/tags/_download.html.haml
+1
-1
No files found.
app/assets/javascripts/dropdowns.js.coffee
deleted
100644 → 0
View file @
4366af51
$
->
$
(
'[data-toggle="dropdown"]'
).
each
->
$dropdown
=
$
(
@
).
parent
()
$menu
=
$dropdown
.
find
(
'.dropdown-menu'
)
$dropdown
.
on
'shown.bs.dropdown'
,
->
dropdownRight
=
$menu
.
offset
().
left
+
$menu
.
outerWidth
()
if
dropdownRight
>=
$
(
window
).
width
()
$menu
.
addClass
'dropdown-menu-align-right'
This diff is collapsed.
Click to expand it.
app/views/projects/branches/index.html.haml
View file @
57749022
...
...
@@ -16,7 +16,7 @@
-
else
Name
%b
.caret
%ul
.dropdown-menu
%ul
.dropdown-menu
.dropdown-menu-align-right
%li
=
link_to
namespace_project_branches_path
(
sort:
nil
)
do
Name
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/tags/_download.html.haml
View file @
57749022
...
...
@@ -6,7 +6,7 @@
%span
.caret
%span
.sr-only
Select Archive Format
%ul
.
col-xs-10.dropdown-menu
{
role:
'menu'
}
%ul
.
dropdown-menu.dropdown-menu-align-right
{
role:
'menu'
}
%li
=
link_to
archive_namespace_project_repository_path
(
project
.
namespace
,
project
,
ref:
ref
,
format:
'zip'
),
rel:
'nofollow'
do
%i
.fa.fa-download
...
...
This diff is collapsed.
Click to expand it.
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