mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 16:24:43 +03:00
parent
d7a5c1d9c1
commit
f5c80e7b5c
@ -107,6 +107,13 @@ widget_gateway:
|
||||
|
||||
# Operators' pages
|
||||
|
||||
## About page
|
||||
about:
|
||||
path: /operator/about
|
||||
defaults:
|
||||
_controller: Mibew\Controller\AboutController::indexAction
|
||||
_access_check: Mibew\AccessControl\Check\LoggedInCheck
|
||||
|
||||
## Banned visitors
|
||||
ban_add:
|
||||
path: /operator/ban/add
|
||||
|
47
src/mibew/libs/classes/Mibew/Controller/AboutController.php
Normal file
47
src/mibew/libs/classes/Mibew/Controller/AboutController.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is a part of Mibew Messenger.
|
||||
*
|
||||
* Copyright 2005-2014 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace Mibew\Controller;
|
||||
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
/**
|
||||
* Contains all about page relates actions.
|
||||
*/
|
||||
class AboutController extends AbstractController
|
||||
{
|
||||
/**
|
||||
* Generates "about" page.
|
||||
*
|
||||
* @param Request $request
|
||||
* @return string Rendered page content
|
||||
*/
|
||||
public function indexAction(Request $request)
|
||||
{
|
||||
$page = array_merge(
|
||||
array(
|
||||
'title' => getlocal('About'),
|
||||
'menuid' => 'about',
|
||||
),
|
||||
prepare_menu($this->getOperator())
|
||||
);
|
||||
|
||||
return $this->render('about', $page);
|
||||
}
|
||||
}
|
@ -899,6 +899,23 @@ table.awaiting .no-visitors {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
/* about page */
|
||||
.about-page h2 {
|
||||
font-size: 1.5em;
|
||||
margin-bottom: 0.3em;
|
||||
}
|
||||
.about-page h3 {
|
||||
font-size: 1.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
.about-page ul {
|
||||
padding-left: 2em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.about-page li {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
/* pagination controls */
|
||||
.pagination .next-page,
|
||||
.pagination .prev-page {
|
||||
@ -960,3 +977,7 @@ table.awaiting .no-visitors {
|
||||
.rtl input.search-button {
|
||||
background: url("../images/buttons/search_rtl.png") top left no-repeat;
|
||||
}
|
||||
.rtl .about-page ul {
|
||||
padding-left: 0;
|
||||
padding-right: 2em;
|
||||
}
|
||||
|
BIN
src/mibew/styles/pages/default/images/dash/information.png
Normal file
BIN
src/mibew/styles/pages/default/images/dash/information.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
@ -37,6 +37,7 @@
|
||||
<li{{#ifEqual menuid "translation"}} class="active"{{/ifEqual}}><a href="{{route "translations"}}">{{l10n "Localize"}}</a></li>
|
||||
<li{{#ifEqual menuid "mail_templates"}} class="active"{{/ifEqual}}><a href="{{route "mail_templates"}}">{{l10n "Mail templates"}}</a></li>
|
||||
<li{{#ifEqual menuid "updates"}} class="active"{{/ifEqual}}><a href="{{route "updates"}}">{{l10n "Updates"}}</a></li>
|
||||
<li{{#ifEqual menuid "about"}} class="active"{{/ifEqual}}><a href="{{route "about"}}">{{l10n "About"}}</a></li>
|
||||
{{/if}}
|
||||
{{#if currentopid}}
|
||||
<li{{#ifEqual menuid "profile"}} class="active"{{/ifEqual}}><a href="{{route "operator_edit" operator_id=currentopid}}">{{l10n "Profile"}}</a></li>
|
||||
|
@ -0,0 +1,86 @@
|
||||
{{#extends "_layout"}}
|
||||
{{#override "menu"}}{{> _menu}}{{/override}}
|
||||
|
||||
{{#override "content"}}
|
||||
<div class="about-page">
|
||||
<div class="form-wrapper">
|
||||
<div class="form-header">
|
||||
<div class="form-header-inwards"></div>
|
||||
</div>
|
||||
|
||||
<div class="form-inwards">
|
||||
<h2>{{l10n "Credits"}}</h2>
|
||||
|
||||
<h3>{{l10n "Developers:"}}</h3>
|
||||
<ul>
|
||||
<li>Dmitriy Simushev</li>
|
||||
<li>Fedor A. Fetisov</li>
|
||||
</ul>
|
||||
|
||||
<h3>{{l10n "Former developers:"}}</h3>
|
||||
<ul>
|
||||
<li>Evgeny Gryaznov</li>
|
||||
</ul>
|
||||
|
||||
<h3>{{l10n "Contributors:"}}</h3>
|
||||
<ul>
|
||||
<li>Borja Rubio</li>
|
||||
<li>ChrisS</li>
|
||||
<li>Ed Kraus</li>
|
||||
<li>falcon</li>
|
||||
<li>Haynes</li>
|
||||
<li>Ido Green</li>
|
||||
<li>novagen</li>
|
||||
<li>Peter Harkins</li>
|
||||
<li>Seyed Mahmood Reza Sajjadi</li>
|
||||
<li>YuFei Zhu</li>
|
||||
<li>X Chen</li>
|
||||
</ul>
|
||||
|
||||
<h3>{{l10n "Designers:"}}</h3>
|
||||
<ul>
|
||||
<li>Logo – Michael Tunnell</li>
|
||||
<li>Silver theme – Alekin Pavel</li>
|
||||
</ul>
|
||||
|
||||
<h3>{{l10n "Translators:"}}</h3>
|
||||
<ul>
|
||||
<li>Arabic – Mostafa Khattab and Active4web.net Developers; Tallal Suliman Eshaq</li>
|
||||
<li>Belarusian – Berasneu</li>
|
||||
<li>Bulgarian – Teodor Todorov</li>
|
||||
<li>Catalan – Enric Garcia Barrios</li>
|
||||
<li>Deutsch – Gregor</li>
|
||||
<li>Dutch – Martin van der Linden; Erik Kerkhoven, Zen4All</li>
|
||||
<li>English – Olimax</li>
|
||||
<li>French – Hominn, Bard of LLYDAW</li>
|
||||
<li>Hebrew – MediaCMS Team</li>
|
||||
<li>Hrvatski – Gorana Rabar</li>
|
||||
<li>Hungarian – bercy; Istvan Somlai</li>
|
||||
<li>Indonesian – Adi Nugroho</li>
|
||||
<li>Italiano – CT32; Luca Sasdelli; Christopher Pecoraro</li>
|
||||
<li>Japanese – flashbay.com</li>
|
||||
<li>Korean – flashbay.fr</li>
|
||||
<li>Lithuanian – LiveChat.lt</li>
|
||||
<li>Norwegian – onlinehjelpen.no, V. Kopperud</li>
|
||||
<li>Persian – Amir Khani; Great Cyrus</li>
|
||||
<li>Polski – Kacper Wierzbicki, WebTower</li>
|
||||
<li>Português Brasil – Leandro Luquetti</li>
|
||||
<li>Português Portugal – Carlos Silva</li>
|
||||
<li>Romanian – Tallal Suliman Eshaq</li>
|
||||
<li>Russian – Evgeny Gryaznov</li>
|
||||
<li>Spanish – Christian Mauricio Castillo Estrada, Lamies; Jesus Plaza; Yordan Soares</li>
|
||||
<li>Swedish – Sverok – Oliver Sundström, Nina Högberg, Andreas Brodin and David Stenström; Peter Törnqvist</li>
|
||||
<li>Thai – Bongkoch P.</li>
|
||||
<li>Simplified Chinese – codion; Xiaoyu; X Chen</li>
|
||||
<li>Traditional Chinese – Dawei; X Chen</li>
|
||||
<li>Ukrainian – azzepis</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="form-footer">
|
||||
<div class="form-footer-inwards"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/override}}
|
||||
{{/extends}}
|
@ -152,6 +152,16 @@
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
<div class="dashboard-item">
|
||||
<div class="dashboard-item-content">
|
||||
<img src="{{asset "@CurrentStyle/images/dash/information.png"}}" alt=""/>
|
||||
<a href="{{route "about"}}">
|
||||
{{l10n "About"}}
|
||||
</a>
|
||||
{{l10n "View about page."}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dashboard-item">
|
||||
<div class="dashboard-item-content">
|
||||
<img src="{{asset "@CurrentStyle/images/dash/exit.png"}}" alt=""/>
|
||||
|
Loading…
Reference in New Issue
Block a user