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
Kazuhiko Shiozaki
gitlab-ce
Commits
339dfa32
Commit
339dfa32
authored
Sep 17, 2012
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix ref_switcher path
parent
79a02df9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
app/views/shared/_ref_switcher.html.haml
app/views/shared/_ref_switcher.html.haml
+1
-1
app/views/tree/_head.html.haml
app/views/tree/_head.html.haml
+1
-1
app/views/tree/show.js.haml
app/views/tree/show.js.haml
+1
-1
No files found.
app/views/shared/_ref_switcher.html.haml
View file @
339dfa32
=
form_tag
switch_project_refs_path
(
@project
),
method: :get
,
class:
"project-refs-form"
do
=
select_tag
"ref"
,
grouped_options_refs
,
class:
"project-refs-select chosen"
=
hidden_field_tag
:destination
,
destination
-
if
respond_to?
(
:
path
)
-
if
defined?
(
path
)
=
hidden_field_tag
:path
,
path
app/views/tree/_head.html.haml
View file @
339dfa32
%ul
.nav.nav-tabs
%li
=
render
partial:
'shared/ref_switcher'
,
locals:
{
destination:
'tree'
,
path:
params
[
:path
]
}
=
render
partial:
'shared/ref_switcher'
,
locals:
{
destination:
'tree'
,
path:
@path
}
%li
{
class:
"#{'active' if (controller.controller_name == "
tree
") }"
}
=
link_to
project_tree_path
(
@project
,
@ref
)
do
Source
...
...
app/views/tree/show.js.haml
View file @
339dfa32
...
...
@@ -2,7 +2,7 @@
// Load Files list
$("#tree-holder").html("
#{
escape_javascript
(
render
(
partial:
"tree"
,
locals:
{
repo:
@repo
,
commit:
@commit
,
tree:
@tree
}))
}
");
$("#tree-content-holder").show("slide", { direction: "right" }, 150);
$('.project-refs-form #path').val("
#{
params
[
:path
]
}
");
$('.project-refs-form #path').val("
#{
@path
}
");
// Load last commit log for each file in tree
$('#tree-slider').waitForImages(function() {
...
...
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