# You must use a tab-size of 4 spaces to edit this file.
---
zenario__social:
    ord: -770
    css_class: zenario__social
    label: Social
    tooltip: Manage comments added to the site
    nav:
        comments:
            name: Pending comments
            tooltip: >
                Approve or delete any comments that are awaiting approval
            panel:
                title: Comments awaiting approval
                db_items:
                    table: |
                        [[DB_PREFIX]][[ZENARIO_ANONYMOUS_COMMENTS_PREFIX]]user_comments cm
                        INNER JOIN [[DB_PREFIX]]content_items c 
                         ON cm.content_id = c.id
                        AND cm.content_type = c.type
                        LEFT JOIN [[DB_PREFIX]]menu_nodes AS mi
                         ON mi.target_loc = 'int'
                        AND mi.equiv_id = c.equiv_id
                        AND mi.content_type = c.type
                        AND mi.redundancy = 'primary'
                        LEFT JOIN [[DB_PREFIX]]menu_text AS mt
                         ON mt.menu_id = mi.id
                        AND    mt.language_id = c.language_id
                    where_statement: |
                        WHERE cm.status='pending'
                    id_column: cm.id
                default_sort_column: comment_on_page
                default_sort_column: comment_last_edit
                default_sort_desc: Yes
                columns:
                    content_id:
                        db_column: c.id
                    content_type:
                        db_column: c.type
                    comment_on_page:
                        show_by_default: Yes
                        title: Comment
                        width: xxlarge
                    content_item:
                        title: Content Item
                        searchable: Yes
                        db_column: c.tag_id
                        show_by_default: Yes
                        disallow_filtering: Yes
                        item_link: content_item
                    summary:
                        db_column: cm.message_text
                    comment_date:
                        title: Date/time created
                        db_column: cm.date_posted
                        show_by_default: Yes
                        format: datetime
                    comment_last_edit:
                        title: Date/time last edited
                        db_column: IF(cm.date_updated,cm.date_updated,cm.date_posted)
                        show_by_default: Yes
                        format: datetime
                    poster_name:
                        db_column: cm.poster_name
                item:
                    css_class: pending_comment
                inline_buttons:
                    view_frontend:
                        css_class: view_frontend
                        tooltip: View in front-end window
                        frontend_link: true
                        visible_if: >
                            zenario.engToBoolean(item.frontend_link)
                    inspect:
                        css_class: inspect
                        tooltip: View in floating box
                        popout:
                            iframe: Yes
                        visible_if: >
                            zenario.engToBoolean(item.frontend_link)
                item_buttons:
                    approve:
                        priv: _PRIV_MODERATE_USER_COMMENTS
                        label: Approve
                        multiple_select_tooltip: Approve comments
                        css_class: sign_off
                        multiple_select: Yes
                        ajax:
                            confirm:
                                message_type: warning
                                message: Are you sure you wish to approve this comment?
                                multiple_select_message: Are you sure you wish to approve selected comments?
                                button_message: Approve
                                cancel_button_message: Cancel
                            request:
                                action: approve_comment
                    delete:
                        priv: _PRIV_MODERATE_USER_COMMENTS
                        label: Delete
                        multiple_select_tooltip: Delete comments
                        css_class: delete
                        multiple_select: Yes
                        ajax:
                            confirm:
                                message_type: warning
                                message: Are you sure you wish to delete this comment?
                                multiple_select_message: Are you sure you wish to delete selected comments?
                                button_message: Delete
                                cancel_button_message: Cancel
                            request:
                                action: delete_comment