Lines 1-29
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Tools › Comments waiting for Approval</title> |
2 |
<title>Koha › Tools › Comments › [% IF ( status ) %] Approved comments[% ELSE %] Comments awaiting moderation[% END %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script> |
|
|
5 |
<script type="text/javascript">//<![CDATA[ |
6 |
$(document).ready(function() { |
7 |
$.tablesorter.addParser({ |
8 |
id: 'articles', |
9 |
is: function(s) {return false; }, |
10 |
format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, |
11 |
type: 'text' |
12 |
}); |
13 |
$("#commentst").tablesorter({ |
14 |
sortList: [[0,0]], |
15 |
headers: { 1: {sorter: 'articles'},2: { sorter: false },3: { sorter: false }} |
16 |
}); |
17 |
}); |
18 |
//]]> |
19 |
</script> |
20 |
</head> |
4 |
</head> |
21 |
<body> |
5 |
<body> |
22 |
[% INCLUDE 'header.inc' %] |
6 |
[% INCLUDE 'header.inc' %] |
23 |
[% INCLUDE 'cat-search.inc' %] |
7 |
[% INCLUDE 'cat-search.inc' %] |
24 |
|
8 |
|
25 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> |
9 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> |
26 |
› Comments Awaiting Moderation</div> |
10 |
› <a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a> ›[% IF ( status ) %] Approved comments[% ELSE %] Comments awaiting moderation[% END %]</div> |
27 |
|
11 |
|
28 |
<div id="doc3" class="yui-t2"> |
12 |
<div id="doc3" class="yui-t2"> |
29 |
|
13 |
|
Lines 33-38
$.tablesorter.addParser({
Link Here
|
33 |
|
17 |
|
34 |
<h1>Comments</h1> |
18 |
<h1>Comments</h1> |
35 |
|
19 |
|
|
|
20 |
<!-- The manual invoice and credit buttons --> |
21 |
<div class="toptabs"> |
22 |
<ul class="ui-tabs-nav"> |
23 |
[% IF ( status ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?status=1">Approved comments</a></li> |
24 |
[% IF ( status ) %]<li>[% ELSE %]<li class="ui-tabs-selected">[% END %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl" >Comments awaiting moderation</a></li> |
25 |
</ul> |
26 |
<div class="tabs-container"> |
27 |
|
36 |
[% IF ( reviews ) %] |
28 |
[% IF ( reviews ) %] |
37 |
<table id="commentst"> |
29 |
<table id="commentst"> |
38 |
<thead><tr> |
30 |
<thead><tr> |
Lines 61-75
$.tablesorter.addParser({
Link Here
|
61 |
[% review.review |html %] |
53 |
[% review.review |html %] |
62 |
</td> |
54 |
</td> |
63 |
<td> |
55 |
<td> |
64 |
<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=approve&reviewid=[% review.reviewid %]">Approve</a> | |
56 |
[% IF ( status ) %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=unapprove&reviewid=[% review.reviewid %]">Unapprove</a>[% ELSE %]<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=approve&reviewid=[% review.reviewid %]">Approve</a>[% END %] | |
65 |
<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=delete&reviewid=[% review.reviewid %]">Delete</a> |
57 |
<a href="/cgi-bin/koha/reviews/reviewswaiting.pl?op=delete&reviewid=[% review.reviewid %]">Delete</a> |
66 |
</td> |
58 |
</td> |
67 |
</tr> |
59 |
</tr> |
68 |
[% END %]</tbody> |
60 |
[% END %]</tbody> |
69 |
</table> |
61 |
</table> |
|
|
62 |
<div class="pages">[% pagination_bar %]</div> |
70 |
[% ELSE %] |
63 |
[% ELSE %] |
71 |
<b>No comments to moderate</b> |
64 |
[% IF ( status ) %]<p><b>No comments have been approved.</b></p>[% ELSE %]<p><b>No comments to moderate.</b></p>[% END %] |
72 |
[% END %] |
65 |
[% END %] |
|
|
66 |
</div> |
67 |
</div> |
73 |
|
68 |
|
74 |
</div> |
69 |
</div> |
75 |
</div> |
70 |
</div> |