mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 10:08:05 +00:00
Add the About page
This commit is contained in:
parent
c1e3f56e5d
commit
86983f3f9b
8 changed files with 50 additions and 5 deletions
13
flexiapi/app/Http/Controllers/AboutController.php
Normal file
13
flexiapi/app/Http/Controllers/AboutController.php
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
class AboutController extends Controller
|
||||||
|
{
|
||||||
|
public function about(Request $request)
|
||||||
|
{
|
||||||
|
return view('about');
|
||||||
|
}
|
||||||
|
}
|
||||||
2
flexiapi/public/css/far.css
vendored
2
flexiapi/public/css/far.css
vendored
|
|
@ -225,6 +225,7 @@ ul.tabs li.current {
|
||||||
header nav {
|
header nav {
|
||||||
padding: 3rem 1rem;
|
padding: 3rem 1rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
min-height: 6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
header nav a {
|
header nav a {
|
||||||
|
|
@ -476,7 +477,6 @@ h3 {
|
||||||
font-size: 1.75rem;
|
font-size: 1.75rem;
|
||||||
color: var(--second-6);
|
color: var(--second-6);
|
||||||
padding: 0.5rem 0;
|
padding: 0.5rem 0;
|
||||||
margin-top: 1.25rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
|
|
|
||||||
BIN
flexiapi/public/img/logo_linphone.png
Normal file
BIN
flexiapi/public/img/logo_linphone.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
18
flexiapi/resources/views/about.blade.php
Normal file
18
flexiapi/resources/views/about.blade.php
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
@extends('layouts.main', ['welcome' => true])
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div style="max-width: 40rem; width: 100%; padding: 1rem;">
|
||||||
|
<img style="float: right; margin-top: 1rem;" src="/img/logo_linphone.png">
|
||||||
|
<h2>About</h2>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
<p><a href="https://linphone.org/">https://linphone.org</a></p>
|
||||||
|
|
||||||
|
<p><a href="{{ config('app.terms_of_use_url') }}">Terms and Conditions</a> and <a
|
||||||
|
href="{{ config('app.privacy_policy_url') }}">Privacy policy</a></p>
|
||||||
|
|
||||||
|
<p>GNU General Public Licence v3.0 (Licence)</p>
|
||||||
|
|
||||||
|
<p>{{ config('instance.copyright') }}</p>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
@extends('layouts.main')
|
@extends('layouts.main', ['welcome' => true])
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
|
<div>
|
||||||
{{-- This view is only a wrapper for the markdown page --}}
|
{{-- This view is only a wrapper for the markdown page --}}
|
||||||
{!! $documentation !!}
|
{!! $documentation !!}
|
||||||
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
@ -460,6 +460,14 @@ JSON parameters:
|
||||||
<span class="badge badge-warning">Admin</span>
|
<span class="badge badge-warning">Admin</span>
|
||||||
Delete a contacts list.
|
Delete a contacts list.
|
||||||
|
|
||||||
|
### `POST /contacts_lists/{contacts_list_id}/contacts/{contact_id}`
|
||||||
|
<span class="badge badge-warning">Admin</span>
|
||||||
|
Add a contact to the contacts list.
|
||||||
|
|
||||||
|
### `DELETE /contacts_lists/{contacts_list_id}/contacts/{contact_id}`
|
||||||
|
<span class="badge badge-warning">Admin</span>
|
||||||
|
Remove a contact from the contacts list.
|
||||||
|
|
||||||
### `POST /accounts/{id}/contacts_lists/{contacts_list_id}`
|
### `POST /accounts/{id}/contacts_lists/{contacts_list_id}`
|
||||||
<span class="badge badge-warning">Admin</span>
|
<span class="badge badge-warning">Admin</span>
|
||||||
Add a contacts list to the account.
|
Add a contacts list to the account.
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@
|
||||||
<a id="menu" class="on_mobile" href="#" onclick="document.body.classList.toggle('show_menu')"></a>
|
<a id="menu" class="on_mobile" href="#" onclick="document.body.classList.toggle('show_menu')"></a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
<a class="oppose" href="{{ route('about') }}">
|
||||||
|
<i class="material-icons">info</i><span class="on_desktop">About</span>
|
||||||
|
</a>
|
||||||
@if (auth()->user())
|
@if (auth()->user())
|
||||||
<a class="oppose" href="{{ route('account.dashboard') }}">
|
<a class="oppose" href="{{ route('account.dashboard') }}">
|
||||||
<i class="material-icons">account_circle</i><span class="on_desktop">{{ auth()->user()->identifier }}</span>
|
<i class="material-icons">account_circle</i><span class="on_desktop">{{ auth()->user()->identifier }}</span>
|
||||||
|
|
|
||||||
|
|
@ -37,6 +37,7 @@ use Illuminate\Support\Facades\Route;
|
||||||
|
|
||||||
Route::redirect('/', '/login')->name('account.home');
|
Route::redirect('/', '/login')->name('account.home');
|
||||||
Route::get('documentation', 'Account\AccountController@documentation')->name('account.documentation');
|
Route::get('documentation', 'Account\AccountController@documentation')->name('account.documentation');
|
||||||
|
Route::get('about', 'AboutController@about')->name('about');
|
||||||
|
|
||||||
if (config('app.web_panel')) {
|
if (config('app.web_panel')) {
|
||||||
Route::get('login', 'Account\AuthenticateController@login')->name('account.login');
|
Route::get('login', 'Account\AuthenticateController@login')->name('account.login');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue