Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
search content list item bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
talhasch committed Aug 10, 2018
1 parent 031692d commit 1dcfed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/directives/content-list-item-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default () => {
<div class="content-author-pic" author-bg-img-style author="{{ content.author }}"></div>
<div class="content-info-right-side">
<span class="content-author"><a ng-click="authorClicked()">{{ content.author }}</a></span>
<span class="content-parent">{{ 'IN' | translate }} <a ng-click="parentClicked()">{{ content.category }}</a></span>
<span class="content-parent" ng-if="content.category">{{ 'IN' | translate }} <a ng-click="parentClicked()">{{ content.category }}</a></span>
<span class="content-mark content-mark-read"><svg width="10" height="10" viewBox="0 0 1660 1660"><path d="M896 256q-130 0-248.5 51t-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5-51-248.5-136.5-204-204-136.5-248.5-51zm768 640q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z" /></svg></span>
<span class="content-mark content-mark-unread"><svg width="10" height="10" viewBox="0 0 1660 1660"><path d="M1152 896q0 106-75 181t-181 75-181-75-75-181 75-181 181-75 181 75 75 181zm-256-544q-148 0-273 73t-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273-73-273-198-198-273-73zm768 544q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z" /></svg></span>
<span class="content-date"><a ng-click="createdClicked()" title="{{ content.created|dateFormatted }}"> {{content.created|timeAgo}}</a></span>
Expand Down Expand Up @@ -48,7 +48,7 @@ export default () => {

$scope.isVisited = helperService.isPostRead($scope.content.author, $scope.content.permlink);

$scope.content.category = $scope.content.meta.tags[0];
$scope.content.category = $scope.content.meta.tags ? $scope.content.meta.tags[0] : '';
$scope.contentImage = $scope.content.meta.image ? $scope.content.meta.image[0] : null;

const goDetail = () => {
Expand Down

0 comments on commit 1dcfed8

Please sign in to comment.