- This has
=number_format($UpVotes)?> =(($UpVotes == 1) ? 'upvote' : 'upvotes')?> out of
=number_format($TotalVotes)?> total
>, including your upvote>, including your downvote.
+
=number_format($UpVotes)?> ∧
+
+
=number_format($DownVotes)?> ∨
+
+
=number_format($TotalVotes)?> Total
+
Score: =number_format($Score * 100, 1)?>
+ |
+
=number_format($UpVotes / $TotalVotes * 100, 1)?>% positive
+
+
>You have upvoted.
+
>You have downvoted.
if (check_perms('site_album_votes')) { ?>
id="vote_message">Upvote - Downvote
} ?>
diff --git a/static/functions/torrent.js b/static/functions/torrent.js
index 244eb400..b21f72e6 100644
--- a/static/functions/torrent.js
+++ b/static/functions/torrent.js
@@ -259,10 +259,11 @@ function DownVoteGroup(groupid, authkey) {
return;
}
voteLock = true;
- ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=down'+'&auth='+authkey, function (response) {
+ ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=down' + '&auth=' + authkey, function (response) {
if (response == 'noaction') {
//No increment
} else if (response == 'success') {
+ $('#downvotes').raw().innerHTML = (parseInt($('#downvotes').raw().innerHTML)) + 1;
$('#totalvotes').raw().innerHTML = (parseInt($('#totalvotes').raw().innerHTML)) + 1;
}
}
@@ -279,7 +280,7 @@ function UpVoteGroup(groupid, authkey) {
return;
}
voteLock = true;
- ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=up'+'&auth='+authkey, function (response) {
+ ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=up' + '&auth=' + authkey, function (response) {
if (response == 'noaction') {
//No increment
} else if (response == 'success') {
@@ -301,11 +302,12 @@ function UnvoteGroup(groupid, authkey) {
return;
}
voteLock = true;
- ajax.get('ajax.php?action=votefavorite&do=unvote&groupid='+groupid+'&auth='+authkey, function (response) {
+ ajax.get('ajax.php?action=votefavorite&do=unvote&groupid=' + groupid + '&auth=' + authkey, function (response) {
if (response == 'noaction') {
//No increment
} else if (response == 'success-down') {
$('#totalvotes').raw().innerHTML = (parseInt($('#totalvotes').raw().innerHTML)) - 1;
+ $('#downvotes').raw().innerHTML = (parseInt($('#downvotes').raw().innerHTML)) - 1;
} else if (response == 'success-up') {
$('#totalvotes').raw().innerHTML = (parseInt($('#totalvotes').raw().innerHTML)) - 1;
$('#upvotes').raw().innerHTML = (parseInt($('#upvotes').raw().innerHTML)) - 1;
diff --git a/static/functions/voting.js b/static/functions/voting.js
index 6e5f8eff..c33e424d 100644
--- a/static/functions/voting.js
+++ b/static/functions/voting.js
@@ -4,11 +4,11 @@ function DownVoteGroup(groupid, authkey) {
return;
}
voteLock = true;
- ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=down'+'&auth='+authkey, function (response) {return});
- $('.vote_link_'+groupid).ghide();
- $('.vote_clear_'+groupid).gshow();
- $('.voted_down_'+groupid).gshow();
- $('.voted_up_'+groupid).ghide();
+ ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=down' + '&auth=' + authkey, function (response) { return });
+ $('.vote_link_' + groupid).ghide();
+ $('.vote_clear_' + groupid).gshow();
+ $('.voted_down_' + groupid).gshow();
+ $('.voted_up_' + groupid).ghide();
voteLock = false;
}
@@ -17,11 +17,11 @@ function UpVoteGroup(groupid, authkey) {
return;
}
voteLock = true;
- ajax.get('ajax.php?action=votefavorite&do=vote&groupid='+groupid+'&vote=up'+'&auth='+authkey, function (response) {return});
- $('.vote_link_'+groupid).ghide();
- $('.vote_clear_'+groupid).gshow();
- $('.voted_down_'+groupid).ghide();
- $('.voted_up_'+groupid).gshow();
+ ajax.get('ajax.php?action=votefavorite&do=vote&groupid=' + groupid + '&vote=up' + '&auth=' + authkey, function (response) { return });
+ $('.vote_link_' + groupid).ghide();
+ $('.vote_clear_' + groupid).gshow();
+ $('.voted_down_' + groupid).ghide();
+ $('.voted_up_' + groupid).gshow();
voteLock = false;
}
@@ -30,10 +30,10 @@ function UnvoteGroup(groupid, authkey) {
return;
}
voteLock = true;
- ajax.get('ajax.php?action=votefavorite&do=unvote&groupid='+groupid+'&auth='+authkey, function (response) {return});
- $('.vote_link_'+groupid).gshow();
- $('.vote_clear_'+groupid).ghide();
- $('.voted_down_'+groupid).ghide();
- $('.voted_up_'+groupid).ghide();
+ ajax.get('ajax.php?action=votefavorite&do=unvote&groupid=' + groupid + '&auth=' + authkey, function (response) { return });
+ $('.vote_link_' + groupid).gshow();
+ $('.vote_clear_' + groupid).ghide();
+ $('.voted_down_' + groupid).ghide();
+ $('.voted_up_' + groupid).ghide();
voteLock = false;
}
diff --git a/static/styles/anorex/style.css b/static/styles/anorex/style.css
index d195a852..0a95b66e 100644
--- a/static/styles/anorex/style.css
+++ b/static/styles/anorex/style.css
@@ -468,14 +468,15 @@ td.colhead, .colhead td, .colhead th {
.colhead .sign, .colhead_dark .sign {
padding: 0px 8px 0px 8px;
- vertical-align:middle;
- text-align:center;
+ vertical-align: middle;
+ text-align: center;
font-size: 12pt;
font-weight: bold;
}
.colhead_dark {
background: #b78234 url(images/woodnavcenter.png) repeat-x;
+ font-weight: bold;
}
td.label {
@@ -511,7 +512,7 @@ table.slice {
}
.hide {
- display:none;
+ display: none;
}
/* Layout (home page) */
@@ -561,27 +562,27 @@ ul.poll li.graph {
}
.filter_torrents {
- width:750px;
- margin-left:auto;
- margin-right:auto;
- margin-bottom:15px;
+ width: 750px;
+ margin-left: auto;
+ margin-right: auto;
+ margin-bottom: 15px;
}
.filter_torrents .submit {
- text-align:right;
- padding-top:5px;
+ text-align: right;
+ padding-top: 5px;
}
.filter_torrents .inputtext {
- width:400px;
+ width: 400px;
}
.filter_torrents .smaller {
- width:300px;
+ width: 300px;
}
.filter_torrents .smallest {
- width:50px;
+ width: 50px;
}
.filter_torrents option {
diff --git a/static/styles/global.css b/static/styles/global.css
index 34dc1a65..db3452d3 100644
--- a/static/styles/global.css
+++ b/static/styles/global.css
@@ -298,6 +298,11 @@ span.secondary_class {
font-weight: bold;
}
+.favoritecount_small {
+ font-size: 110%;
+ font-weight: bold;
+}
+
ul.votedalbums li {
list-style: none;
list-style-type: none;
@@ -605,4 +610,14 @@ tr.torrent .bookmark>a:after {
.permission_subcontainer {
margin-bottom: 10px;
-}
\ No newline at end of file
+}
+
+.vote_tag_up, .vote_artist_up, .vote_album_up {
+ color: green;
+ font-weight: bolder;
+}
+
+.vote_tag_down, .vote_artist_down, .vote_album_down {
+ color: red;
+ font-weight: bolder;
+}