aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/views/RepositoryLog.vue
diff options
context:
space:
mode:
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;