]> BookStack Code Mirror - bookstack/commitdiff
Merge branch 'feature-send-test-email' of git://github.com/timoschwarzer/BookStack...
authorDan Brown <redacted>
Wed, 23 Oct 2019 18:53:51 +0000 (19:53 +0100)
committerDan Brown <redacted>
Wed, 23 Oct 2019 18:53:51 +0000 (19:53 +0100)
1  2 
resources/lang/en/settings.php
resources/views/settings/maintenance.blade.php

index 63b6f6d43b28303bdebb430578233044920e172d,3bcd517ca87acb1434bf9e2e1d772e8b09bbc4e1..ac3be1f3f0e044f81e28f7fd2f8a1da2eb7f0f0a
@@@ -63,6 -63,13 +63,13 @@@ return 
      'maint_image_cleanup_warning' => ':count potentially unused images were found. Are you sure you want to delete these images?',
      'maint_image_cleanup_success' => ':count potentially unused images found and deleted!',
      'maint_image_cleanup_nothing_found' => 'No unused images found, Nothing deleted!',
+     'maint_send_test_email' => 'Send a Test E-Mail',
+     'maint_send_test_email_desc' => 'This sends a test e-mail to your e-mail address specified in your profile.',
+     'maint_send_test_email_run' => 'Send test e-mail',
+     'maint_send_test_email_success' => 'E-Mail sent to :address',
+     'maint_send_test_email_mail_subject' => 'Test E-Mail',
+     'maint_send_test_email_mail_greeting' => 'E-Mail delivery seems to work!',
+     'maint_send_test_email_mail_text' => 'Congratulations! As you received this e-mail notification, your e-mail settings seem to be configured properly.',
  
      // Role Settings
      'roles' => 'Roles',
      'users_social_connected' => ':socialAccount account was successfully attached to your profile.',
      'users_social_disconnected' => ':socialAccount account was successfully disconnected from your profile.',
  
 -    //! Since these labels are already localized this array does not need to be
 -    //! translated in the language-specific files.
 -    //! DELETE BELOW IF COPIED FROM EN
 +    //! If editing translations files directly please ignore this in all
 +    //! languages apart from en. Content will be auto-copied from en.
      //!////////////////////////////////
      'language_select' => [
          'en' => 'English',
          'sk' => 'Slovensky',
          'cs' => 'Česky',
          'sv' => 'Svenska',
 -        'kr' => '한국어',
 +        'ko' => '한국어',
          'ja' => '日本語',
          'pl' => 'Polski',
          'it' => 'Italian',
          'ru' => 'Русский',
          'uk' => 'Українська',
          'zh_CN' => '简体中文',
 -      'zh_TW' => '繁體中文',
 -      'hu' => 'Magyar'
 +        'zh_TW' => '繁體中文',
 +        'hu' => 'Magyar',
 +        'tr' => 'Türkçe',
      ]
      //!////////////////////////////////
  ];
index 2522599cfdf98b7f12a858b16e466a2a0c3b04b6,ecd4702a68668be460e1bafd5d74592389eec61f..7311bbbe20c96ab7ea15fe5d48ed817985a358e8
@@@ -7,14 -7,12 +7,13 @@@
          <div class="py-m">
              @include('settings.navbar', ['selected' => 'maintenance'])
          </div>
 -        <div class="text-right mb-l px-m">
 -            <br>
 +        <div class="text-right p-m">
 +            <a target="_blank" rel="noopener noreferrer" href="https://github.com/BookStackApp/BookStack/releases">
              BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}
 +            </a>
          </div>
      </div>
  
      <div id="image-cleanup" class="card content-wrap auto-height">
          <h2 class="list-heading">{{ trans('settings.maint_image_cleanup') }}</h2>
          <div class="grid half gap-xl">
          </div>
      </div>
  
+     <div id="send-test-email" class="card content-wrap auto-height">
+         <h2 class="list-heading">{{ trans('settings.maint_send_test_email') }}</h2>
+         <div class="grid half gap-xl">
+             <div>
+                 <p class="small text-muted">{{ trans('settings.maint_send_test_email_desc') }}</p>
+             </div>
+             <div>
+                 <form method="POST" action="{{ url('/settings/maintenance/send-test-email') }}">
+                     {!! csrf_field()  !!}
+                     <button class="button outline">{{ trans('settings.maint_send_test_email_run') }}</button>
+                 </form>
+             </div>
+         </div>
+     </div>
  </div>
  @stop