improve feedback on whether or not transcripts can be edited
This commit is contained in:
parent
16a2900fef
commit
53ed1df9f8
@ -202,6 +202,16 @@ function the_media_transcript_queue_editor() {
|
|||||||
$nonce = wp_create_nonce('what-did-they-say');
|
$nonce = wp_create_nonce('what-did-they-say');
|
||||||
$new_transcript_id = md5(rand());
|
$new_transcript_id = md5(rand());
|
||||||
|
|
||||||
|
$show_editor = false;
|
||||||
|
if (current_user_can('submit_transcriptions')) {
|
||||||
|
if (current_user_can('approve_transcriptions')) {
|
||||||
|
$show_editor = true;
|
||||||
|
} else {
|
||||||
|
$show_editor = $transcript_options->are_new_transcripts_allowed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($show_editor) {
|
||||||
?>
|
?>
|
||||||
<div style="display:none">
|
<div style="display:none">
|
||||||
<span id="wdts-opener-<?php echo $id = md5(rand()) ?>">[ <a href="#"><?php _e('Edit/Add Transcripts', 'what-did-they-say') ?></a> ]</span>
|
<span id="wdts-opener-<?php echo $id = md5(rand()) ?>">[ <a href="#"><?php _e('Edit/Add Transcripts', 'what-did-they-say') ?></a> ]</span>
|
||||||
@ -238,6 +248,7 @@ function the_media_transcript_queue_editor() {
|
|||||||
?>
|
?>
|
||||||
</script>
|
</script>
|
||||||
<?php }
|
<?php }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function wdts_header_wrapper($text) {
|
function wdts_header_wrapper($text) {
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: what-did-they-say 0.9.1\n"
|
"Project-Id-Version: what-did-they-say 0.9.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2009-10-14 07:49-0400\n"
|
"POT-Creation-Date: 2009-10-14 07:54-0400\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user