mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
synced 2024-11-15 11:11:37 +00:00
The unique poll-id (hash) is now invisibly with color=background-color placed into the lower right corner of the poll div. This allows admins an easier maintainance of polls, if this is needed.
This commit is contained in:
parent
ca9992ed07
commit
ac7f0e1401
Notes:
Thomas Gries
2012-03-12 18:26:50 +00:00
|
@ -90,3 +90,9 @@
|
|||
margin-top: 20px;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.ajaxpoll .ajaxpoll-id-info {
|
||||
color:#FAFAFA;
|
||||
font-size: 100%;
|
||||
float: right;
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
* @author Jack Phoenix <jack@countervandalism.net>
|
||||
* @author Thomas Gries
|
||||
* @maintainer Thomas Gries
|
||||
* @version 1.64
|
||||
* @version 1.65
|
||||
* @link http://www.mediawiki.org/wiki/Extension:AJAX_Poll Documentation
|
||||
*/
|
||||
|
||||
|
@ -31,7 +31,7 @@ if( !defined( 'MEDIAWIKI' ) ) {
|
|||
$wgExtensionCredits['parserhook'][] = array(
|
||||
'path' => __FILE__,
|
||||
'name' => 'AJAX Poll',
|
||||
'version' => '1.64 20120312',
|
||||
'version' => '1.65 20120312',
|
||||
'author' => array( 'Dariusz Siedlecki', 'Jack Phoenix', 'Thomas Gries' ),
|
||||
'descriptionmsg' => 'ajaxpoll-desc',
|
||||
'url' => 'https://www.mediawiki.org/wiki/Extension:AJAX_Poll',
|
||||
|
|
|
@ -297,9 +297,7 @@ function mout(x){
|
|||
</script>
|
||||
<div class="ajaxpoll-question">' . strip_tags( $lines[0] ) . '</div>';
|
||||
|
||||
// Different message depending on if the user has already voted or not.
|
||||
|
||||
// $message = ( isset( $row[0] ) ) ? $ourLastVoteDate : wfMsg( 'ajaxpoll-no-vote' );
|
||||
// Different message depending on if the user has already voted or not, or is entitled to vote
|
||||
|
||||
if ( $wgUser->isAllowed( 'ajaxpoll-vote' ) ) {
|
||||
$message = ( isset( $row[0] ) ) ? $ourLastVoteDate : wfMsg( 'ajaxpoll-no-vote' );
|
||||
|
@ -367,9 +365,7 @@ function mout(x){
|
|||
$wgLang->timeanddate( wfTimestamp( TS_MW, $start_date ), true /* adjust? */ )
|
||||
);
|
||||
|
||||
$ret .= '<div id="ajaxpoll-info-' . $ID . '" class="ajaxpoll-info">' . $pollSummary . '</div>';
|
||||
|
||||
$ret .= '</div>';
|
||||
$ret .= '<div id="ajaxpoll-info-' . $ID . '" class="ajaxpoll-info">' . $pollSummary . '<div class="ajaxpoll-id-info">poll-id ' . $ID . '</div></div></div>';
|
||||
} else {
|
||||
$ret = '';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue