Make application name configurable and add repo URL

This commit is contained in:
Les De Ridder 2016-12-18 02:47:24 +01:00
parent 0f1f9b9ede
commit 0b44d10f06
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
4 changed files with 35 additions and 9 deletions

View File

@ -1,3 +1,6 @@
APP_NAME=pastethingy
APP_REPO=https://git.fuwafuwa.moe/lesderid/pastethingy
APP_DEBUG=true
APP_URL=http://pastethingy.app

View File

@ -2,6 +2,28 @@
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| Global human-readable name for the application.
|
*/
'name' => env('APP_NAME', 'pastethingy'),
/*
|--------------------------------------------------------------------------
| Application Repository URL
|--------------------------------------------------------------------------
|
| Repository URL for the application.
|
*/
'repo' => env('APP_REPO', 'https://git.fuwafuwa.moe/lesderid/pastethingy'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>pastethingy</title>
<title>{{ config('app.name') }}</title>
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono:400,300' rel='stylesheet' type='text/css'>
@ -98,7 +98,7 @@
@endif
</head>
<body>
<header>pastethingy</header>
<header>{{ config('app.name') }}</header>
<section>
<form action="/paste" method="post">
@ -190,6 +190,7 @@
@else
<a href="/?js=1">Tab key support (requires JS)</a>
@endif
<p>&middot; <a href="{{ config('app.repo') }}">Source code</a></p>
<p>&middot; Dates and times are UTC.</p>
</div>
</footer>

View File

@ -38,7 +38,7 @@
<body>
<div class="container">
<div class="content">
<div class="title">pastethingy</div>
<div class="title">{{ config('app.name') }}</div>
</div>
</div>
</body>