Browse Source

Add abuse contact and parent website

master
Les De Ridder 2 years ago
parent
commit
e1b5f41a66
No known key found for this signature in database
3 changed files with 40 additions and 1 deletions
  1. 3
    0
      .env.example
  2. 34
    0
      config/app.php
  3. 3
    1
      resources/views/main.blade.php

+ 3
- 0
.env.example View File

@@ -1,5 +1,8 @@
1 1
 APP_NAME=pastethingy
2 2
 APP_REPO=https://git.fuwafuwa.moe/lesderid/pastethingy
3
+APP_ABUSE_CONTACT=abuse@example.com
4
+APP_PARENT_NAME=example.com
5
+APP_PARENT_URL=https://example.com
3 6
 
4 7
 APP_DEBUG=true
5 8
 APP_URL=http://pastethingy.app

+ 34
- 0
config/app.php View File

@@ -24,6 +24,40 @@ return [
24 24
 
25 25
     'repo' => env('APP_REPO', 'https://git.fuwafuwa.moe/lesderid/pastethingy'),
26 26
 
27
+    /*
28
+    |--------------------------------------------------------------------------
29
+    | Abuse contact
30
+    |--------------------------------------------------------------------------
31
+    |
32
+    | E-mail address for abuse reports.
33
+    |
34
+    */
35
+
36
+    'abusecontact' => env('APP_ABUSE_CONTACT'),
37
+
38
+    /*
39
+    |--------------------------------------------------------------------------
40
+    | Parent name
41
+    |--------------------------------------------------------------------------
42
+    |
43
+    | Name of the parent website.
44
+    |
45
+    */
46
+
47
+    'parentname' => env('APP_PARENT_NAME'),
48
+
49
+    /*
50
+    |--------------------------------------------------------------------------
51
+    | Parent URL
52
+    |--------------------------------------------------------------------------
53
+    |
54
+    | URL of the parent website.
55
+    |
56
+    */
57
+
58
+    'parenturl' => env('APP_PARENT_URL'),
59
+
60
+
27 61
     /*
28 62
     |--------------------------------------------------------------------------
29 63
     | Application Debug Mode

+ 3
- 1
resources/views/main.blade.php View File

@@ -44,7 +44,7 @@
44 44
 			section, form {
45 45
 				height: 100%;
46 46
 				display: flex;
47
-				flex-direction: column; 
47
+				flex-direction: column;
48 48
 			}
49 49
 
50 50
 			input, select, textarea, div, label {
@@ -191,6 +191,8 @@
191 191
 						<a href="/?js=1">Tab key support (requires JS)</a>
192 192
 					@endif
193 193
 					<p>&middot; <a href="{{ config('app.repo') }}">Source code</a></p>
194
+					<p>&middot; <a href="mailto:{{ config('app.abusecontact') }}">Report abuse</a></p>
195
+					<p>&middot; <a href="{{ config('app.parenturl') }}">{{ config('app.parentname') }}</a></p>
194 196
 					<p>&middot; Dates and times are UTC.</p>
195 197
 				</div>
196 198
 			</footer>

Loading…
Cancel
Save