removed faq

This commit is contained in:
flash 2016-12-08 21:01:33 +01:00
parent 64cb72c4a7
commit e5197f4092
5 changed files with 34 additions and 44 deletions

View file

@ -85,20 +85,6 @@ class MetaController extends Controller
return Template::render('meta/index');
}
/**
* Displays the FAQ.
* @return string
*/
public function faq(): string
{
// Get faq entries
$questions = DB::table('faq')
->orderBy('faq_id')
->get();
return view('meta/faq', compact('questions'));
}
/**
* Search page.
* @return string

View file

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Sakura\DB;
class CacheParsedBbcode extends Migration
{
/**
* Run the migrations.
* @return void
*/
public function up()
{
$schema = DB::getSchemaBuilder();
$schema->drop('faq');
}
/**
* Reverse the migrations.
* @return void
*/
public function down()
{
$schema = DB::getSchemaBuilder();
$schema->create('faq', function (Blueprint $table) {
$table->increments('faq_id');
$table->string('faq_shorthand', 255);
$table->string('faq_question', 255);
$table->text('faq_answer');
});
}
}

View file

@ -210,7 +210,6 @@
</ul>
<ul class="footer__section">
<li class="footer__item footer__item--head">Information</li>
<li class="footer__item"><a class="footer__link" href="{{ route('main.faq') }}">FAQ</a></li>
<li class="footer__item"><a class="footer__link" href="{{ route('info.rules') }}">Rules</a></li>
<li class="footer__item"><a class="footer__link" href="{{ route('status.index') }}">Server Status</a></li>
<li class="footer__item"><a class="footer__link" href="{{ route('info.terms') }}">Terms of Service</a></li>

View file

@ -1,28 +0,0 @@
{% extends 'master.twig' %}
{% set title = 'Frequently Asked Questions' %}
{% block content %}
<div class="content settings">
<div class="content--right">
<div class="content__header content__header--alt">
Frequently Asked Questions
</div>
<div class="settings__navigation">
{% for question in questions %}
<a href="#{{ question.faq_shorthand }}" class="settings__navigation-link">{{ question.faq_question }}</a>
{% endfor %}
</div>
</div>
<div class="content--left">
{% for question in questions %}
<div class="content__header" id="{{ question.faq_shorthand }}">
{{ question.faq_question }}
<a href="#{{ question.faq_shorthand }}" class="fa fa-quote-right news-rss default"></a>
</div>
<p>{{ question.faq_answer }}</p>
{% endfor %}
</div>
<div class="clear"></div>
</div>
{% endblock %}

View file

@ -20,7 +20,6 @@ Router::filter('maintenance', function () {
Router::group(['before' => 'maintenance'], function () {
// Meta pages
Router::get('/', 'MetaController@index', 'main.index');
Router::get('/faq', 'MetaController@faq', 'main.faq');
Router::get('/search', 'MetaController@search', 'main.search');
// Auth