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
f1d5f359
Commit
f1d5f359
authored
Dec 18, 2015
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dropdown chooses right default
parent
67c623d8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+5
-4
No files found.
app/views/shared/_clone_panel.html.haml
View file @
f1d5f359
...
@@ -3,14 +3,15 @@
...
@@ -3,14 +3,15 @@
.git-clone-holder
.git-clone-holder
.btn-group.clone-options
.btn-group.clone-options
%a
.clone-dropdown-btn.btn
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
%a
.clone-dropdown-btn.btn
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
%span
SSH
%span
=
default_clone_protocol
.
upcase
=
icon
(
'angle-down'
)
=
icon
(
'angle-down'
)
%ul
.dropdown-menu.dropdown-menu-right.clone-options-dropdown
%ul
.dropdown-menu.dropdown-menu-right.clone-options-dropdown
%li
%li
%a
{
href:
'#'
}
%a
{
href:
'#'
,
"data-url"
=>
@project
.
ssh_url_to_repo
}
SSH
SSH
%li
%li
%a
{
href:
'#'
}
%a
{
href:
'#'
,
"data-url"
=>
@project
.
http_url_to_repo
}
HTTPS
HTTPS
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control"
,
readonly:
true
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control"
,
readonly:
true
...
@@ -22,5 +23,5 @@
...
@@ -22,5 +23,5 @@
e
.
preventDefault
();
e
.
preventDefault
();
var
$this
=
$
(
this
);
var
$this
=
$
(
this
);
$
(
'a.clone-dropdown-btn span'
).
text
(
$this
.
text
());
$
(
'a.clone-dropdown-btn span'
).
text
(
$this
.
text
());
console
.
log
(
"got it"
,
$
(
this
).
text
(
));
$
(
'#project_clone'
).
val
(
$this
.
data
(
'url'
));
});
});
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