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
077617d5
Commit
077617d5
authored
7 years ago
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds commit link to list of files in tree view.
parent
85b358ed
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/repo/repo_file.vue
app/assets/javascripts/repo/repo_file.vue
+3
-1
app/assets/javascripts/repo/repo_helper.js
app/assets/javascripts/repo/repo_helper.js
+2
-2
No files found.
app/assets/javascripts/repo/repo_file.vue
View file @
077617d5
...
...
@@ -48,7 +48,9 @@ export default RepoFile;
</td>
<td
v-if=
"!isMini"
class=
"hidden-sm hidden-xs"
>
<div
class=
"commit-message"
>
{{
file
.
lastCommitMessage
}}
</div>
<div
class=
"commit-message"
>
<a
:href=
"file.lastCommitUrl"
>
{{
file
.
lastCommitMessage
}}
</a>
</div>
</td>
<td
v-if=
"!isMini"
class=
"hidden-xs"
>
...
...
This diff is collapsed.
Click to expand it.
app/assets/javascripts/repo/repo_helper.js
View file @
077617d5
...
...
@@ -216,12 +216,12 @@ const RepoHelper = {
},
serializeRepoEntity
(
type
,
entity
)
{
const
{
url
,
name
,
icon
}
=
entity
;
const
{
url
,
name
,
icon
,
last_commit
}
=
entity
;
return
{
type
,
name
,
url
,
lastCommitUrl
:
`
${
Store
.
projectUrl
}
/commit/
${
last_commit
.
id
}
`
,
icon
:
RepoHelper
.
toFA
(
icon
),
level
:
0
,
loading
:
false
,
...
...
This diff is collapsed.
Click to expand it.
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