From 34bc24151ba2ca46b2b08d9cef8e3c6c866d1c0a Mon Sep 17 00:00:00 2001
From: HampusM <hampus@hampusmat.com>
Date: Fri, 11 Jun 2021 20:06:59 +0200
Subject: Fixed BaseBreadcrumb, RepositoryTree & the log and tree views

---
 packages/client/src/views/RepositoryLog.vue | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)

(limited to 'packages/client/src/views/RepositoryLog.vue')

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;
-- 
cgit v1.2.3-18-g5258

