aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/views/RepositoryLog.vue
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-06-11 20:06:59 +0200
committerHampusM <hampus@hampusmat.com>2021-06-11 20:06:59 +0200
commit34bc24151ba2ca46b2b08d9cef8e3c6c866d1c0a (patch)
tree11f5812e5088c3b80f4983a9d6f5f913c75754f9 /packages/client/src/views/RepositoryLog.vue
parent5b72b479ba3acf391a61a2c04ca694e30d108565 (diff)
Fixed BaseBreadcrumb, RepositoryTree & the log and tree views
Diffstat (limited to 'packages/client/src/views/RepositoryLog.vue')
-rw-r--r--packages/client/src/views/RepositoryLog.vue25
1 files changed, 19 insertions, 6 deletions
diff --git a/packages/client/src/views/RepositoryLog.vue b/packages/client/src/views/RepositoryLog.vue
index 91d1cfc..efedd87 100644
--- a/packages/client/src/views/RepositoryLog.vue
+++ b/packages/client/src/views/RepositoryLog.vue
@@ -26,14 +26,16 @@
<tbody>
<tr v-for="(commit, index) in commits" :key="index">
<td>
- <router-link :to="'log/' + commit['commit']">
- {{ commit["message"] }}
+ <router-link :to="'log/' + commit.id">
+ {{ commit.message }}
</router-link>
</td>
- <td>{{ commit["author_name"] }}</td>
- <td>{{ format(new Date(commit["date"]), "yyyy-MM-dd hh:mm") }}</td>
- <td>{{ commit["files_changed"] }}</td>
- <td><span class="text-danger">-{{ commit["deletions"] }}</span> / <span class="text-success">+{{ commit["insertions"] }}</span></td>
+ <td>{{ commit.author.name }}</td>
+ <td>{{ format(new Date(commit.date), "yyyy-MM-dd hh:mm") }}</td>
+ <td>{{ commit.files_changed }}</td>
+ <td class="add-del">
+ <span>-{{ commit.deletions }}</span> / <span>+{{ commit.insertions }}</span>
+ </td>
</tr>
</tbody>
</table>
@@ -124,6 +126,17 @@ table {
padding-left: 0;
}
+.add-del {
+ span {
+ &:nth-child(1) {
+ color: colors.$success;
+ }
+ &:nth-child(2) {
+ color: colors.$danger;
+ }
+ }
+}
+
@media (max-width: 576px) {
table > :not(caption) > * > * {
padding: 0.1rem;