From a18fe4fe49197254fe3586daeb919d1d720d13a7 Mon Sep 17 00:00:00 2001 From: TheMrGong Date: Mon, 29 Apr 2024 18:06:19 -0400 Subject: [PATCH] feat: render friend icons in previous instance info dialogue --- html/src/index.pug | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/html/src/index.pug b/html/src/index.pug index 954b71396..df615a6d9 100644 --- a/html/src/index.pug +++ b/html/src/index.pug @@ -2519,9 +2519,20 @@ html template(#content) span {{ scope.row.created_at | formatDate('long') }} span {{ scope.row.created_at | formatDate('short') }} + el-table-column(:label="$t('table.gameLog.icon')" prop="isFriend" width="70") + template(v-once #default="scope") + template(v-if="gameLogIsFriend(scope.row)") + el-tooltip(v-if="gameLogIsFavorite(scope.row)" placement="top" content="Favorite") + span ⭐ + el-tooltip(v-else placement="top" content="Friend") + span 💚 el-table-column(:label="$t('table.previous_instances.display_name')" prop="displayName" sortable) template(v-once #default="scope") - span.x-link(v-text="scope.row.displayName" @click="lookupUser(scope.row)") + span.x-link( + v-text="scope.row.displayName" + @click="lookupUser(scope.row)" + :class="{ 'x-tag-friend': gameLogIsFriend(scope.row) }" + ) el-table-column(:label="$t('table.previous_instances.time')" prop="time" width="90" sortable) template(v-once #default="scope") span(v-text="scope.row.timer")