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
537e8f21
Commit
537e8f21
authored
Jun 16, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added title attribute to enties in tree view
Closes #18353
parent
1b43f51a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
app/views/projects/tree/_blob_item.html.haml
app/views/projects/tree/_blob_item.html.haml
+3
-2
app/views/projects/tree/_tree_item.html.haml
app/views/projects/tree/_tree_item.html.haml
+3
-3
No files found.
app/views/projects/tree/_blob_item.html.haml
View file @
537e8f21
%tr
{
class:
"tree-item #{tree_hex_class(blob_item)}"
}
%td
.tree-item-file-name
=
tree_icon
(
type
,
blob_item
.
mode
,
blob_item
.
name
)
%span
.str-truncated
=
link_to
blob_item
.
name
,
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@id
||
@commit
.
id
,
blob_item
.
name
))
-
file_name
=
blob_item
.
name
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@id
||
@commit
.
id
,
blob_item
.
name
)),
title:
file_name
do
%span
.str-truncated
=
file_name
%td
.tree_time_ago.cgray
=
render
'projects/tree/spinner'
%td
.hidden-xs.tree_commit
app/views/projects/tree/_tree_item.html.haml
View file @
537e8f21
%tr
{
class:
"tree-item #{tree_hex_class(tree_item)}"
}
%td
.tree-item-file-name
=
tree_icon
(
type
,
tree_item
.
mode
,
tree_item
.
name
)
%span
.str-truncated
-
path
=
flatten_tree
(
tree_item
)
=
link_to
path
,
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
tree_join
(
@id
||
@commit
.
id
,
path
))
-
path
=
flatten_tree
(
tree_item
)
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
tree_join
(
@id
||
@commit
.
id
,
path
)),
title:
path
do
%span
.str-truncated
=
path
%td
.tree_time_ago.cgray
=
render
'projects/tree/spinner'
%td
.hidden-xs.tree_commit
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