# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

plugin:
  slack_notification:
    backend:
      info:
        name:
          other: Slack Notification
        description:
          other: Send notifications to Slack
      config:
        tip:
          title:
            other: Push notification service has been turned off.
        notification:
          label:
            other: Turn on push notifications
          title:
            other: Notifications
          description:
            other: Users will receive notifications on Slack.
      user_config:
        webhook_url:
          title:
            other: Webhook URL
        inbox_notifications:
          title:
            other: Inbox Notifications
          label:
            other: Turn on inbox notifications
          description:
            other: Answers to your questions, comments, invites, and more.
        all_new_questions:
          title:
            other: All New Questions
          label:
            other: Turn on all new questions
          description:
            other: Get notified of all new questions. Up to 50 questions per week.
        new_questions_for_following_tags:
          title:
            other: New Questions for Following Tags
          label:
            other: Turn on new questions for following tags
          description:
            other: Get notified of new questions for following tags.
        upvoted_answers:
          title:
            other: UpVoted Answers
          label:
            other: Turn on notification for upvoted answers
          description:
            other: Get notified of upvoted answers
        downvoted_answers:
          title:
            other: DownVoted Answers
          label:
            other: Turn on notification for downvoted answers
          description:
            other: Get notified of downvoted answers
        updated_questions:
          title:
            other: Updated Questions
          label:
            other: Turn on notification for updated questions
          description:
            other: Get notified of updated questions
        updated_answers:
          title:
            other: Updated Answers
          label:
            other: Turn on notification for updated answers
          description:
            other: Get notified of updated answers
      tpl:
        updated_questions:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> updated questions <{{.QuestionUrl}}|{{.QuestionTitle}}>"
        answer_the_question:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> answered the question <{{.AnswerUrl}}|{{.QuestionTitle}}>"
        updated_answers:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> updated answers <{{.AnswerUrl}}|{{.QuestionTitle}}>"
        accept_answer:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> accepted answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
        comment_question:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> commented question <{{.CommentUrl}}|{{.QuestionTitle}}>"
        comment_answer:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> commented answer <{{.CommentUrl}}|{{.QuestionTitle}}>"
        reply_to_you:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> replied you <{{.CommentUrl}}|{{.QuestionTitle}}>"
        mention_you:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> mentioned you <{{.CommentUrl}}|{{.QuestionTitle}}>"
        invited_you_to_answer:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> invited you to answer <{{.QuestionUrl}}|{{.QuestionTitle}}>"
        new_question:
          other: "New question:\n<{{.QuestionUrl}}|{{.QuestionTitle}}>\n{{.QuestionTags}}"
        upvoted_answer:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> upvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
        downvoted_answer:
          other: "<{{.TriggerUserUrl}}|{{.TriggerUserDisplayName}}> downvoted your answer <{{.AnswerUrl}}|{{.QuestionTitle}}>"
