Commit 662ff81d by pupi1985

Added approve and reject hints which were missing in the admin/moderate section

parent d4672378
......@@ -45,7 +45,10 @@
'answer_must_confirm' => 'Please ^5confirm your email address^6 to answer this question.',
'answer_must_login' => 'Please ^1log in^2 or ^3register^4 to answer this question.',
'answer_q_popup' => 'Answer this question',
'approve_a_popup' => 'Approve this answer',
'approve_button' => 'approve',
'approve_c_popup' => 'Approve this comment',
'approve_q_popup' => 'Approve this question',
'ask_button' => 'Ask the Question',
'ask_follow_from_a' => 'Your question will be related to this answer:',
'ask_follow_title' => 'Ask a related question',
......@@ -139,7 +142,10 @@
'recat_button' => 'recategorize',
'recat_popup' => 'Change this question\'s category',
'recat_q_title' => 'Recategorize question',
'reject_a_popup' => 'Reject this answer',
'reject_button' => 'reject',
'reject_c_popup' => 'Reject this comment',
'reject_q_popup' => 'Reject this question',
'remove_q_favorites' => 'Remove this question from my favorites',
'reopen_button' => 'reopen',
'reply_button' => 'reply',
......
......@@ -111,18 +111,26 @@
if (isset($htmlfields['what_url'])) // link directly to relevant content
$htmlfields['url']=$htmlfields['what_url'];
$posttype = qa_strtolower(isset($question['obasetype']) ? $question['obasetype'] : $question['basetype']);
$htmlfields['form']=array(
'style' => 'light',
'buttons' => array(
// Possible values for the popup (enumerated to let text searches match in the future):
// question/approve_q_popup, question/approve_a_popup and question/approve_c_popup
'approve' => array(
'tags' => 'name="admin_'.$postid.'_approve" onclick="return qa_admin_click(this);"',
'label' => qa_lang_html('question/approve_button'),
'popup' => qa_lang_html(sprintf('question/approve_%s_popup', $posttype)),
),
// Possible values for the popup (enumerated to let text searches match in the future):
// question/reject_q_popup, question/reject_a_popup and question/reject_c_popup
'reject' => array(
'tags' => 'name="admin_'.$postid.'_reject" onclick="return qa_admin_click(this);"',
'label' => qa_lang_html('question/reject_button'),
'popup' => qa_lang_html(sprintf('question/reject_%s_popup', $posttype)),
),
),
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment