mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-06 20:21:01 +01:00
fix(torrents): thumbs-up link css
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user