소스 검색

Update Timeline.vue, add profile links to grid mode

Daniel Supernault 5 년 전
부모
커밋
fa40f51bce
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      resources/assets/js/components/Timeline.vue

+ 2 - 2
resources/assets/js/components/Timeline.vue

@@ -368,9 +368,9 @@
 						</div>
 						</div>
 					</div>
 					</div>
 					<div class="py-3 media align-items-center">
 					<div class="py-3 media align-items-center">
-						<img :src="s.account.avatar" class="mr-3 rounded-circle shadow-sm" :alt="s.account.username + ' \'s avatar'" width="30px" height="30px" onerror="this.onerror=null;this.src='/storage/avatars/default.png?v=2'">
+						<a class="text-decoration-none" :href="s.account.url"><img :src="s.account.avatar" class="mr-3 rounded-circle shadow-sm" :alt="s.account.username + ' \'s avatar'" width="30px" height="30px" onerror="this.onerror=null;this.src='/storage/avatars/default.png?v=2'"></a>
 						<div class="media-body">
 						<div class="media-body">
-							<p class="mb-0 font-weight-bold small">{{s.account.username}}</p>
+							<p class="mb-0 font-weight-bold small"><a class="text-dark" :href="s.account.url">{{s.account.username}}</a></p>
 							<p class="mb-0" style="line-height: 0.7;">
 							<p class="mb-0" style="line-height: 0.7;">
 								<a :href="statusUrl(s)" class="small text-lighter">
 								<a :href="statusUrl(s)" class="small text-lighter">
 									<timeago :datetime="s.created_at" :auto-update="60" :converter-options="{includeSeconds:true}" :title="timestampFormat(s.created_at)" v-b-tooltip.hover.bottom></timeago>
 									<timeago :datetime="s.created_at" :auto-update="60" :converter-options="{includeSeconds:true}" :title="timestampFormat(s.created_at)" v-b-tooltip.hover.bottom></timeago>