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
d47273f2
Commit
d47273f2
authored
Jul 20, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added repo bundle to project#show
parent
9c5a8d43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
app/helpers/tree_helper.rb
app/helpers/tree_helper.rb
+2
-2
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+4
-0
app/views/projects/tree/_tree_content.html.haml
app/views/projects/tree/_tree_content.html.haml
+1
-1
No files found.
app/helpers/tree_helper.rb
View file @
d47273f2
...
...
@@ -12,8 +12,8 @@ module TreeHelper
tree
.
html_safe
end
def
repo_url
request
.
original_url
def
repo_url
(
project
)
controller_name
==
'projects'
?
project_tree_url
(
project
,
project
.
default_branch
)
:
request
.
original_url
end
# Return an image icon depending on the file type and mode
...
...
app/views/projects/show.html.haml
View file @
d47273f2
...
...
@@ -6,6 +6,10 @@
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'repo'
=
content_for
flash_message_container
do
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
@project
)
=
render
'shared/no_ssh'
...
...
app/views/projects/tree/_tree_content.html.haml
View file @
d47273f2
...
...
@@ -19,7 +19,7 @@
%ul
#tabs
{
"v-if"
=>
"isMini"
,
":style"
=>
"{height: 41 + scrollWidth + 'px'}"
,
"v-cloak"
=>
"1"
}
%li
{
is:
"repo-tab"
,
"v-for"
=>
"tab in openedFiles"
,
":key"
=>
"tab.id"
,
":tab"
=>
"tab"
,
":class"
=>
"{'active' : tab.active}"
}
#repo-file-buttons
#ide
{
data:
{
url:
repo_url
}
}
#ide
{
data:
{
url:
repo_url
(
@project
)
}
}
#binary-viewer
{
"v-if"
=>
"binary"
}
%img
{
"v-if"
=>
"binaryTypes.png"
,
":src"
=>
"pngBlobWithDataURI"
,
":alt"
=>
"activeFile.name"
,
alt:
''
}
%div
{
"v-if"
=>
"binaryTypes.markdown"
,
"v-html"
=>
"activeFile.html"
}
...
...
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