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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
3ec81bfa
Commit
3ec81bfa
authored
Apr 07, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't show Copy contents button on Blame page
# Conflicts: # app/views/projects/blob/_header.html.haml
parent
453cc447
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/views/projects/blame/show.html.haml
app/views/projects/blame/show.html.haml
+1
-1
app/views/projects/blob/_header.html.haml
app/views/projects/blob/_header.html.haml
+4
-3
No files found.
app/views/projects/blame/show.html.haml
View file @
3ec81bfa
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
#blob-content-holder
.tree-holder
#blob-content-holder
.tree-holder
.file-holder
.file-holder
=
render
"projects/blob/header"
,
blob:
@blob
=
render
"projects/blob/header"
,
blob:
@blob
,
displaying_blame:
true
.table-responsive.file-content.blame.code.js-syntax-highlight
.table-responsive.file-content.blame.code.js-syntax-highlight
%table
%table
...
...
app/views/projects/blob/_header.html.haml
View file @
3ec81bfa
-
displaying_blame
=
local_assigns
.
fetch
(
:displaying_blame
,
false
)
.js-file-title.file-title-flex-parent
.js-file-title.file-title-flex-parent
.file-header-content
.file-header-content
=
blob_icon
blob
.
mode
,
blob
.
name
=
blob_icon
blob
.
mode
,
blob
.
name
...
@@ -12,15 +13,15 @@
...
@@ -12,15 +13,15 @@
.file-actions.hidden-xs
.file-actions.hidden-xs
.btn-group
{
role:
"group"
}
<
.btn-group
{
role:
"group"
}
<
=
copy_blob_content_button
(
blob
)
if
blob_text_viewable?
(
blob
)
=
copy_blob_content_button
(
blob
)
if
!
displaying_blame
&&
blob_text_viewable?
(
blob
)
=
open_raw_file_button
(
namespace_project_raw_path
(
@project
.
namespace
,
@project
,
@id
))
=
open_raw_file_button
(
namespace_project_raw_path
(
@project
.
namespace
,
@project
,
@id
))
=
view_on_environment_button
(
@commit
.
sha
,
@path
,
@environment
)
if
@environment
=
view_on_environment_button
(
@commit
.
sha
,
@path
,
@environment
)
if
@environment
.btn-group
{
role:
"group"
}
<
.btn-group
{
role:
"group"
}
<
-# only show normal/blame view links for text files
-# only show normal/blame view links for text files
-
if
blob_text_viewable?
(
blob
)
-
if
blob_text_viewable?
(
blob
)
-
if
current_page?
namespace_project_blame_path
(
@project
.
namespace
,
@project
,
@id
)
-
if
displaying_blame
=
link_to
'Normal
V
iew'
,
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
@id
),
=
link_to
'Normal
v
iew'
,
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
@id
),
class:
'btn btn-sm'
class:
'btn btn-sm'
-
else
-
else
=
link_to
'Blame'
,
namespace_project_blame_path
(
@project
.
namespace
,
@project
,
@id
),
=
link_to
'Blame'
,
namespace_project_blame_path
(
@project
.
namespace
,
@project
,
@id
),
...
...
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