fix(core): fixed some html string and css style

This commit is contained in:
OldHawk
2017-10-11 15:23:48 +08:00
parent abb0c1a829
commit 0da12667e8
6 changed files with 19 additions and 22 deletions

View File

@@ -243,6 +243,7 @@
TORRENT_THUMBS_FAILED: 'Thumbs-up for torrent failed',
TORRENT_RATING_SUCCESSFULLY: 'Rating torrent successfully',
TORRENT_RATING_FAILED: 'Rating torrent failed',
EDIT_THIS_OVERVIEW: 'Edit this Overview',
ANNOUNCE_URL: 'Announce Url',
TORRENT_FILENAME: 'Torrent Filename',

View File

@@ -243,6 +243,7 @@
TORRENT_THUMBS_FAILED: '为种子点赞失败',
TORRENT_RATING_SUCCESSFULLY: '为种子投票成功',
TORRENT_RATING_FAILED: '为种子投票失败',
EDIT_THIS_OVERVIEW: '编辑详情介绍',
ANNOUNCE_URL: 'Tracker 地址',
TORRENT_FILENAME: '种子文件名',
@@ -703,7 +704,7 @@
ARTIST: '艺人名称',
BELONGS_TO_COLLECTION: '集合',
GENRES: '类型',
OVERVIEW: '剧情',
OVERVIEW: '详情介绍',
POPULARITY: 'popularity',
PRODUCTION_COMPANIES: '制作',
PRODUCTION_COUNTRIES: '国家',

View File

@@ -85,10 +85,10 @@
};
/**
* getVarietyTopInfo
* initTopOneVarietyInfo
*/
vm.getVarietyTopInfo = function () {
if (vm.sportsTopOne.resource_detail_info.cover) {
vm.initTopOneVarietyInfo = function () {
if (vm.varietyTopOne.resource_detail_info.cover) {
$('.variety-backdrop').css('backgroundImage', 'url(/modules/torrents/client/uploads/cover/' + vm.varietyTopOne.resource_detail_info.cover + ')');
}
};

View File

@@ -82,17 +82,16 @@ body {
height: 100%;
}
.img-circle {
//opacity: 0;
transition-property: transform, opacity;
transition-duration: 1s;
transition-timing-function: ease;
cursor: pointer;
max-height: 400px;
max-width: 120px;
//transition: transform .5s ease-in-out;
&:hover {
/* csslint ignore:start */
transform: scale(1.1);
transform: scale(1.2);
/* csslint ignore:end */
}
}
@@ -106,13 +105,6 @@ body {
.se-info {
color: @mt-base-color;
}
.img-circle {
&:hover {
/* csslint ignore:start */
transform: scale(1.2);
/* csslint ignore:end */
}
}
.down-torrent {
margin-top: 20px;
}
@@ -121,6 +113,9 @@ body {
max-width: 270px;
cursor: pointer;
height: 100%;
width: 100%;
transition-property: transform, opacity;
transition-duration: 1s;
transition-timing-function: ease;
@@ -163,7 +158,7 @@ body {
cursor: pointer;
max-width: 100% !important;
height: auto !important;
border: 1px solid #999;
border: 1px solid #333;
}
}
}

View File

@@ -8,7 +8,7 @@
<div class="col-md-3">
<img ng-src="{{vm.tmdbConfig.posterImgBaseUrl}}{{vm.movieTopOne.resource_detail_info.poster_path}}"
class="img-thumbnail center-block torrent-logo"
onload="this.style.opacity='1';" ng-click="vm.openTorrentInfo(vm.movieTopOne._id);">
ng-click="vm.openTorrentInfo(vm.movieTopOne._id);">
<div class="down-torrent">
<button class="btn btn-success btn-block" ng-click="vm.downloadTorrent(vm.movieTopOne._id)"
@@ -83,7 +83,7 @@
<div class="col-xs-4 col-md-2 text-center">
<img ng-src="{{vm.tmdbConfig.castImgBaseUrl}}{{cast.profile_path}}"
on-error-src="/./modules/core/client/img/default_face.jpg"
class="img-circle img-thumbnail img-responsive center-block" onload="this.style.opacity='1';">
class="img-circle img-thumbnail img-responsive center-block">
<span class="cast-xs-info"><strong>{{cast.name}}</strong></span>
<p class="cast-xs-info character">{{cast.character}}</p>
@@ -217,7 +217,7 @@
<div class="col-md-3">
<img ng-src="{{vm.tmdbConfig.posterImgBaseUrl}}{{vm.TVTopOne.resource_detail_info.poster_path}}"
class="img-thumbnail center-block torrent-logo"
onload="this.style.opacity='1';" ng-click="vm.openTorrentInfo(vm.TVTopOne._id);">
ng-click="vm.openTorrentInfo(vm.TVTopOne._id);">
<div class="down-torrent">
<button class="btn btn-success btn-block" ng-click="vm.downloadTorrent(vm.TVTopOne._id)"
@@ -299,7 +299,7 @@
<div class="col-xs-4 col-md-2 text-center">
<img ng-src="{{vm.tmdbConfig.castImgBaseUrl}}{{cast.profile_path}}"
on-error-src="/./modules/core/client/img/default_face.jpg"
class="img-circle img-thumbnail img-responsive center-block" onload="this.style.opacity='1';">
class="img-circle img-thumbnail img-responsive center-block">
<span class="cast-xs-info"><strong>{{cast.name}}</strong></span>
<p class="cast-xs-info character">{{cast.character}}</p>
@@ -436,7 +436,7 @@
<img class="img-thumbnail center-block" torrent-logo="vm.musicTopOne"
ng-src="{{vm.TGI.getTorrentTopOneImage(vm.musicTopOne)}}"
alt="{{vm.TGI.getTorrentTitle(vm.musicTopOne)}}"
title="{{vm.TGI.getTorrentTitle(vm.musicTopOne)}}" onload="this.style.opacity='1';">
title="{{vm.TGI.getTorrentTitle(vm.musicTopOne)}}">
</div>
<div class="down-torrent">

View File

@@ -185,7 +185,7 @@
ng-bind-html="vm.getOverviewMarkedContent(vm.TGI.getTorrentOverview(vm.torrentLocalInfo))">
</div>
<div class="edit-overview-div" ng-if="vm.isOwner(vm.torrentLocalInfo) || vm.user.isOper">
<a href="#" ng-click="vm.beginEditOverview(vm.torrentLocalInfo)">Edit this Overview</a>
<a href="#" ng-click="vm.beginEditOverview(vm.torrentLocalInfo)">{{'EDIT_THIS_OVERVIEW' | translate}}</a>
</div>
</div>
</dd>
@@ -201,7 +201,7 @@
<div class="col-xs-4 col-md-2 text-center">
<img ng-src="{{vm.tmdbConfig.castImgBaseUrl}}{{cast.profile_path}}"
on-error-src="/./modules/core/client/img/default_face.jpg"
class="img-circle img-thumbnail img-responsive center-block" onload="this.style.opacity='1';">
class="img-circle img-thumbnail img-responsive center-block">
<span class="cast-xs-info"><strong>{{cast.name}}</strong></span>
<p class="cast-xs-info character">{{cast.character}}</p>