Commit 077617d5 authored by Jacob Schatz's avatar Jacob Schatz

Adds commit link to list of files in tree view.

parent 85b358ed
...@@ -48,7 +48,9 @@ export default RepoFile; ...@@ -48,7 +48,9 @@ export default RepoFile;
</td> </td>
<td v-if="!isMini" class="hidden-sm hidden-xs"> <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>
<td v-if="!isMini" class="hidden-xs"> <td v-if="!isMini" class="hidden-xs">
......
...@@ -216,12 +216,12 @@ const RepoHelper = { ...@@ -216,12 +216,12 @@ const RepoHelper = {
}, },
serializeRepoEntity(type, entity) { serializeRepoEntity(type, entity) {
const { url, name, icon } = entity; const { url, name, icon, last_commit } = entity;
return { return {
type, type,
name, name,
url, url,
lastCommitUrl: `${Store.projectUrl}/commit/${last_commit.id}`,
icon: RepoHelper.toFA(icon), icon: RepoHelper.toFA(icon),
level: 0, level: 0,
loading: false, loading: false,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment