fix(torrents): thumbs-up link css

This commit is contained in:
OldHawk
2017-07-21 18:35:30 +08:00
parent 0fbed06b1a
commit 196c81ece6
2 changed files with 74 additions and 66 deletions

View File

@@ -124,77 +124,85 @@
$('.backdrop').css('backgroundImage', 'url(' + vm.tmdbConfig.backdrop_img_base_url + res.resource_detail_info.backdrop_path + ')');
}
vm.initTabLists();
vm.commentBuildPager();
vm.torrentTabs.push(
{
title: $translate.instant('TAB_VIDEO_INFO'),
templateUrl: 'videoInfo.html',
ng_show: true,
badges: []
},
{
title: $translate.instant('TAB_USER_SUBTITLE'),
templateUrl: 'subtitleInfo.html',
ng_show: true,
badges: [
{
value: vm.torrentLocalInfo._subtitles.length,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_USER_INFO'),
templateUrl: 'userInfo.html',
ng_show: true,
badges: [
{
value: '↑ ' + vm.torrentLocalInfo.torrent_seeds + ' ↓ ' + vm.torrentLocalInfo.torrent_leechers + ' √ ' + vm.torrentLocalInfo.torrent_finished,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_THUMBS_LIST'),
templateUrl: 'thumbsInfo.html',
ng_show: true,
badges: [
{
value: vm.torrentLocalInfo._thumbs.length,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_OTHER_TORRENTS'),
templateUrl: 'otherTorrents.html',
ng_show: vm.torrentLocalInfo._other_torrents.length > 0,
badges: [
{
value: vm.torrentLocalInfo._other_torrents.length,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_MY_PANEL'),
templateUrl: 'myPanel.html',
ng_show: vm.torrentLocalInfo.isCurrentUserOwner,
badges: []
},
{
title: $translate.instant('TAB_ADMIN_PANEL'),
templateUrl: 'adminPanel.html',
ng_show: vm.user ? vm.user.isOper : false,
badges: []
}
);
});
console.log(vm.torrentLocalInfo);
};
/**
* initTabLists
*/
vm.initTabLists = function () {
vm.torrentTabs = [];
vm.torrentTabs.push(
{
title: $translate.instant('TAB_VIDEO_INFO'),
templateUrl: 'videoInfo.html',
ng_show: true,
badges: []
},
{
title: $translate.instant('TAB_USER_SUBTITLE'),
templateUrl: 'subtitleInfo.html',
ng_show: true,
badges: [
{
value: vm.torrentLocalInfo._subtitles.length,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_USER_INFO'),
templateUrl: 'userInfo.html',
ng_show: true,
badges: [
{
value: '↑ ' + vm.torrentLocalInfo.torrent_seeds + ' ↓ ' + vm.torrentLocalInfo.torrent_leechers + ' √ ' + vm.torrentLocalInfo.torrent_finished,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_THUMBS_LIST'),
templateUrl: 'thumbsInfo.html',
ng_show: true,
badges: [
{
value: vm.torrentLocalInfo._thumbs.length,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_OTHER_TORRENTS'),
templateUrl: 'otherTorrents.html',
ng_show: vm.torrentLocalInfo._other_torrents.length > 0,
badges: [
{
value: vm.torrentLocalInfo._other_torrents.length,
class: 'badge_info'
}
]
},
{
title: $translate.instant('TAB_MY_PANEL'),
templateUrl: 'myPanel.html',
ng_show: vm.torrentLocalInfo.isCurrentUserOwner,
badges: []
},
{
title: $translate.instant('TAB_ADMIN_PANEL'),
templateUrl: 'adminPanel.html',
ng_show: vm.user ? vm.user.isOper : false,
badges: []
}
);
};
/**
* getResourceInfo
*/

View File

@@ -619,7 +619,7 @@
<script type="text/ng-template" id="thumbsInfo.html">
<div class="padding-top-20">
<div class="text-center"><a href="#" ng-click="vm.beginThumbsUp(vm.torrentLocalInfo);">{{'THUMBS_UP_TORRENT' | translate: ({number: vm.scoreConfig.thumbsUpScore.torrent}) }}</a></div>
<div class="text-center"><h4><a href="#" ng-click="vm.beginThumbsUp(vm.torrentLocalInfo);">{{'THUMBS_UP_TORRENT' | translate: ({number: vm.scoreConfig.thumbsUpScore.torrent}) }}</a></h4></div>
</div>
<div class="padding-top-20">
<div class="thumbs-up-list" ng-if="vm.torrentLocalInfo._thumbs.length">