github.com/cs3org/reva/v2@v2.27.7/pkg/siteacc/email/template.go (about)

     1  // Copyright 2018-2020 CERN
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  //
    15  // In applying this license, CERN does not waive the privileges and immunities
    16  // granted to it by virtue of its status as an Intergovernmental Organization
    17  // or submit itself to any jurisdiction.
    18  
    19  package email
    20  
    21  const accountCreatedTemplate = `
    22  Dear {{.Account.FirstName}} {{.Account.LastName}},
    23  
    24  Your ScienceMesh Site Administrator Account has been successfully created!
    25  
    26  Log in to your account by visiting the user account panel:
    27  {{.AccountsAddress}}
    28  
    29  Using this panel, you can modify your information, request access to the GOCDB, and more. 
    30  
    31  Kind regards,
    32  The ScienceMesh Team
    33  `
    34  
    35  const siteAccessGrantedTemplate = `
    36  Dear {{.Account.FirstName}} {{.Account.LastName}},
    37  
    38  You have been granted access to the global configuration of your site.
    39  
    40  Log in to your account to access this configuration:
    41  {{.AccountsAddress}} 
    42  
    43  Kind regards,
    44  The ScienceMesh Team
    45  `
    46  
    47  const gocdbAccessGrantedTemplate = `
    48  Dear {{.Account.FirstName}} {{.Account.LastName}},
    49  
    50  You have been granted access to the ScienceMesh GOCDB instance:
    51  {{.GOCDBAddress}}
    52  
    53  Simply use your regular ScienceMesh Site Administrator Account credentials to log in to the GOCDB. 
    54  
    55  Kind regards,
    56  The ScienceMesh Team
    57  `
    58  
    59  const passwordResetTemplate = `
    60  Dear {{.Account.FirstName}} {{.Account.LastName}},
    61  
    62  Your password has been successfully reset!
    63  Your new password is: {{.Account.Password.Value}}
    64  
    65  We recommend to change this password immediately after logging in.
    66  
    67  Kind regards,
    68  The ScienceMesh Team
    69  `
    70  
    71  const contactFormTemplate = `
    72  {{.Account.FirstName}} {{.Account.LastName}} ({{.Account.Email}}) has sent the following message:
    73  
    74  {{.Params.Subject}}
    75  ---------------------------------------------------------------------------------------------------
    76  
    77  {{.Params.Message}}
    78  `
    79  
    80  const alertFiringNotificationTemplate = `
    81  Site '{{.Params.Site}}' has generated an alert:
    82  
    83    Type:     {{.Params.Name}}
    84    Service:  {{.Params.Service}}
    85    Instance: {{.Params.Instance}}
    86    Job:      {{.Params.Job}}
    87    Severity: {{.Params.Severity}}
    88  
    89  {{.Params.Description | indent 2}}
    90  
    91  {{.Params.StartDate}} ({{.Params.Fingerprint}})
    92  `
    93  
    94  const alertResolvedNotificationTemplate = `
    95  Site '{{.Params.Site}}' has resolved an alert:
    96  
    97    Type:     {{.Params.Name}}
    98    Service:  {{.Params.Service}}
    99    Instance: {{.Params.Instance}}
   100    Job:      {{.Params.Job}}
   101    Severity: {{.Params.Severity}}
   102  
   103  {{.Params.Description | indent 2}}
   104  
   105  {{.Params.StartDate}} - {{.Params.EndDate}} ({{.Params.Fingerprint}})
   106  `