Moved main_template.html.twig into KekRozsakFrontBundle

Logical reasons.

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely POLONKAI 2012-08-15 12:31:02 +02:00
parent 78878d4117
commit 8d27d0c290
27 changed files with 222 additions and 219 deletions

View File

@ -1,197 +0,0 @@
{# vim: ft=htmljinja
#}
<!DOCTYPE html>
<html>
<head>
<title>Kék Rózsák{% block title %}{% endblock %}</title>
<meta charset="utf8" />
<link rel="stylesheet" type="text/css" href="{{ asset('css/kekrozsak_front.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('js/jquery-cluetip/jquery.cluetip.css') }}" />
{% stylesheets 'bundles/kekrozsakfront/css/*' filter='cssrewrite' output='css/kekrozsak.css' %}
<link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %}
{% block additional_css %}{% endblock %}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/lib/jquery.hoverIntent.js')}}"></script>
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/jquery.cluetip.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/jquery.tinyscrollbar.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script type="text/javascript" src="{{ path('fos_js_routing_js', {callback: 'fos.Router.setData'}) }}"></script>
{% block additional_js %}{% endblock %}
</head>
<body>
<div id="popup-container">
<div id="popup-close"></div>
<div id="popup-inside">
<div id="popup-title"></div>
<div id="popup-scrollable">
<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview" id="popup-content"></div>
</div>
</div>
</div>
</div>
<div id="top-line-wrapper">
<div id="top-line">
{% if app.user %}
{% include ':Box:UserProfile.html.twig' %}
{% include ':Box:Events.html.twig' %}
<div id="konyvtar-gomb">
<span class="gomb"><a href="{{ path('KekRozsakFrontBundle_bookList') }}">[könyvtár gomb]</a></span>
</div>
{% else %}
{% include ':Box:Login.html.twig' %}
{% endif %}
{#
<div id="search-box">
<input type="text" />
<button type="submit">Keresés</button>
</div>
#}
</div>
<div id="top-line-padding"></div>
</div>
<div id="wrapper">
<div id="menu">
<ul>
<li><a href="{{ path('KekRozsakFrontBundle_homepage') }}">Főoldal - Aktuális</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'rolunk' }) }}">Rólunk</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'a-magiarol-roviden' }) }}">A Mágiáról röviden</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'rendek' }) }}">Rendek</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'a-regiek' }) }}">A régiek</a></li>
{% if app.user %}
<li><a href="{{ path('KekRozsakSecurityBundle_logout') }}">Kijelentkezés</a></li>
{% else %}
<li><a href="{{ path('KekRozsakSecurityBundle_registration') }}">Jelentkezés</a></li>
{% endif %}
</ul>
</div>
<div id="header">
<h1>Kék Rózsák</h1>
</div>
<div id="content-wrapper">
<div id="content-outline">
<div id="content">
{% block content %}{% endblock %}
</div>
</div>
<div id="hirek">
<h3>Hírek</h3>
{% for news in recentNews %}
<div class="hir">
<p class="hir-cim">{{ news.title }}</p>
<p class="hir-szoveg">{{ news.text|raw }}</p>
{% if app.user %}
<p class="hir-szerzo">{{ news.createdBy|userdataspan }}</p>
{% endif %}
<p class="hir-datum">{{ news.createdAt|date('Y-m-d H:i') }}</p>
</div>
{% endfor %}
</div>
</div>{# div#content-wrapper #}
</div>{# div#wrapper #}
<div id="bottom-line-wrapper">
<div id="bottom-line-padding"></div>
<div id="bottom-line"{% if app.environment == 'dev' %} style="bottom: 40px;"{% endif %}>
</div>
</div>
<script type="text/javascript">
{% if app.user %}
$('#profil-mutato').click(function() {
if ($('#profil-box').is(':visible'))
{
$('#profil-box').hide();
}
else
{
$('#profil-box').show();
}
});
$('#jog-lista').cluetip({
splitTitle: '|',
showTitle: false
});
$('.program').cluetip({
cluezIndex: 1000
});
$('#event-shower').click(function() {
if ($('#event-box').is(':visible'))
{
$('#event-box').hide();
}
else
{
$('#event-box').show();
}
});
$('.userdata').cluetip();
$('.userdata-secret').cluetip({
splitTitle: '|',
showTitle: false
});
{% else %}
$('#login-mutato').click(function() {
if ($('#login-box').is(':visible'))
{
$('#login-box').hide();
}
else
{
$('#login-box').show();
}
});
{% endif %}
jQuery.fn.center = function() {
this.css('top', Math.max(0, (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop()) + 'px');
this.css('left', Math.max(0, (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft()) + 'px');
return this;
};
$('#popup-close').click(function() { $('#popup-container').fadeOut(); });
$('#popup-scrollable').tinyscrollbar();
function doPopup(title, content, url, w, h, callback)
{
$('#popup-title').html(title);
$('#popup-content').html(content);
$('#popup-container').css('width', w + 'px');
$('#popup-container').css('height', h + 'px');
$('#popup-inside').css('width', (w - 8) + 'px');
$('#popup-inside').css('height', (h - 8) + 'px');
$('#popup-scrollable').css('width', (w - 8) + 'px');
$('#popup-scrollable .viewport').css('width', (w - 28) + 'px');
$('#popup-scrollable .viewport').css('height', (h - 54) + 'px');
$('#popup-container').center();
$('#popup-container').fadeIn();
$.ajax({
method: 'GET',
url: url
}).done(function(data) {
$('#popup-content').html(data);
$('#popup-scrollable').tinyscrollbar();
$('.userdata').cluetip();
if (callback != null)
callback();
}).error(function() {
$('#popup-content').html('Nem sikerült betölteni a könyv adatait.');
});
}
$(document).ready(function() {
bottomLineTop = $('#bottom-line').position().top;
contentOutlineTop = $('#content-outline').position().top;
contentHeight = $('#content-outline').outerHeight();
newsHeight = $('#hirek').outerHeight();
minHeight = bottomLineTop - contentOutlineTop;
height = Math.max(contentHeight, newsHeight, minHeight);
if ($('#content-outline').outerHeight() < height)
$('#content-outline').css('height', height + 'px');
if ($('#hirek').outerHeight() < height)
$('#hirek').css('height', height + 'px');
});
</script>
{% block bottomscripts %}{% endblock %}
</body>
</html>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Csoport jelentkezők {% endblock %}
{% block content %}
<h3>Csoport jelentkezők</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Jelentkezők{% endblock %}
{% block content %}
<h3>Jelentkezők</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title%} - {{ article.title }}{% endblock title %}
{% block content %}
{{ article.text|raw }}

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Könyvtár{% endblock %}
{% block content %}
<h3>Könyvtár</h3>

View File

@ -0,0 +1,200 @@
{# vim: ft=htmljinja
#}
<!DOCTYPE html>
<html>
<head>
<title>Kék Rózsák{% block title %}{% endblock %}</title>
<meta charset="utf8" />
<link rel="stylesheet" type="text/css" href="{{ asset('css/kekrozsak_front.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ asset('js/jquery-cluetip/jquery.cluetip.css') }}" />
{% stylesheets 'bundles/kekrozsakfront/css/*' filter='cssrewrite' output='css/kekrozsak.css' %}
<link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %}
{% block additional_css %}{% endblock %}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/lib/jquery.hoverIntent.js')}}"></script>
<script type="text/javascript" src="{{ asset('js/jquery-cluetip/jquery.cluetip.js') }}"></script>
<script type="text/javascript" src="{{ asset('js/jquery.tinyscrollbar.min.js') }}"></script>
<script type="text/javascript" src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script type="text/javascript" src="{{ path('fos_js_routing_js', {callback: 'fos.Router.setData'}) }}"></script>
{% block additional_js %}{% endblock %}
</head>
<body>
<div id="popup-container">
<div id="popup-close"></div>
<div id="popup-inside">
<div id="popup-title"></div>
<div id="popup-scrollable">
<div class="scrollbar"><div class="track"><div class="thumb"><div class="end"></div></div></div></div>
<div class="viewport">
<div class="overview" id="popup-content"></div>
</div>
</div>
</div>
</div>
<div id="top-line-wrapper">
<div id="top-line">
{% if app.user %}
{% include 'KekRozsakFrontBundle:Box:UserProfile.html.twig' %}
{% include 'KekRozsakFrontBundle:Box:Events.html.twig' %}
<div id="konyvtar-gomb">
<span class="gomb"><a href="{{ path('KekRozsakFrontBundle_bookList') }}">[könyvtár gomb]</a></span>
</div>
{% else %}
{% include 'KekRozsakFrontBundle:Box:Login.html.twig' %}
{% endif %}
{#
<div id="search-box">
<input type="text" />
<button type="submit">Keresés</button>
</div>
#}
</div>
<div id="top-line-padding"></div>
</div>
<div id="wrapper">
<div id="menu">
<ul>
<li><a href="{{ path('KekRozsakFrontBundle_homepage') }}">Főoldal - Aktuális</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'rolunk' }) }}">Rólunk</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'a-magiarol-roviden' }) }}">A Mágiáról röviden</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'rendek' }) }}">Rendek</a></li>
<li><a href="{{ path('KekRozsakFrontBundle_articleView', { slug: 'a-regiek' }) }}">A régiek</a></li>
{% if app.user %}
<li><a href="{{ path('KekRozsakSecurityBundle_logout') }}">Kijelentkezés</a></li>
{% else %}
<li><a href="{{ path('KekRozsakSecurityBundle_registration') }}">Jelentkezés</a></li>
{% endif %}
</ul>
</div>
<div id="header">
<h1>Kék Rózsák</h1>
</div>
<div id="content-wrapper">
<div id="content-outline">
<div id="content">
{% block content %}{% endblock %}
</div>
</div>
<div id="hirek">
<h3>Hírek</h3>
{% for news in recentNews %}
<div class="hir">
<p class="hir-cim">{{ news.title }}</p>
<p class="hir-szoveg">{{ news.text|raw }}</p>
{% if app.user %}
<p class="hir-szerzo">{{ news.createdBy|userdataspan }}</p>
{% endif %}
<p class="hir-datum">{{ news.createdAt|date('Y-m-d H:i') }}</p>
</div>
{% endfor %}
</div>
</div>{# div#content-wrapper #}
</div>{# div#wrapper #}
<div id="bottom-line-wrapper">
<div id="bottom-line-padding"></div>
<div id="bottom-line"{% if app.environment == 'dev' %} style="bottom: 40px;"{% endif %}>
</div>
</div>
<script type="text/javascript">
{% if app.user %}
$('#profil-mutato').click(function() {
if ($('#profil-box').is(':visible'))
{
$('#profil-box').hide();
}
else
{
$('#profil-box').show();
}
});
$('#jog-lista').cluetip({
splitTitle: '|',
showTitle: false
});
$('.program').cluetip({
cluezIndex: 1000
});
$('#event-shower').click(function() {
if ($('#event-box').is(':visible'))
{
$('#event-box').hide();
}
else
{
$('#event-box').show();
}
});
$('.userdata').cluetip();
$('.userdata-secret').cluetip({
splitTitle: '|',
showTitle: false
});
{% else %}
$('#login-mutato').click(function() {
if ($('#login-box').is(':visible'))
{
$('#login-box').hide();
}
else
{
$('#login-box').show();
}
});
{% endif %}
jQuery.fn.center = function() {
this.css('top', Math.max(0, (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop()) + 'px');
this.css('left', Math.max(0, (($(window).width() - this.outerWidth()) / 2) + $(window).scrollLeft()) + 'px');
return this;
};
$('#popup-close').click(function() { $('#popup-container').fadeOut(); });
$('#popup-scrollable').tinyscrollbar();
function doPopup(title, content, url, w, h, callback)
{
$('#popup-title').html(title);
$('#popup-content').html(content);
$('#popup-container').css('width', w + 'px');
$('#popup-container').css('height', h + 'px');
$('#popup-inside').css('width', (w - 8) + 'px');
$('#popup-inside').css('height', (h - 8) + 'px');
$('#popup-scrollable').css('width', (w - 8) + 'px');
$('#popup-scrollable .viewport').css('width', (w - 28) + 'px');
$('#popup-scrollable .viewport').css('height', (h - 54) + 'px');
$('#popup-container').center();
$('#popup-container').fadeIn();
$.ajax({
method: 'GET',
url: url
}).done(function(data) {
$('#popup-content').html(data);
$('#popup-scrollable').tinyscrollbar();
$('.userdata').cluetip();
if (callback != null) {
callback();
}
}).error(function() {
$('#popup-content').html('Nem sikerült betölteni a könyv adatait.');
});
}
$(document).ready(function() {
bottomLineTop = $('#bottom-line').position().top;
contentOutlineTop = $('#content-outline').position().top;
contentHeight = $('#content-outline').outerHeight();
newsHeight = $('#hirek').outerHeight();
minHeight = bottomLineTop - contentOutlineTop;
height = Math.max(contentHeight, newsHeight, minHeight);
if ($('#content-outline').outerHeight() < height) {
$('#content-outline').css('height', height + 'px');
}
if ($('#hirek').outerHeight() < height) {
$('#hirek').css('height', height + 'px');
}
});
</script>
{% block bottomscripts %}{% endblock %}
</body>
</html>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% form_theme form 'KekRozsakFrontBundle:Form:user_form.html.twig' %}
{% block title %} - Profil szerkesztése{% endblock %}
{% block content %}

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Dokumentum létrehozása{% endblock %}
{% block content %}
<h3>Új dokumentum létrehozása</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Dokumentum szerkesztése - {{ document.title }}{% endblock %}
{% block content %}
<h3>Dokumentum szerkesztése - {{ document.title }}</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Dokumentum - {{ document.title }}{% endblock %}
{% block content %}
<h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Események - {{ day|date('Y-m-d') }}{% endblock %}
{% block content %}
<h3>Események - {{ day|date('Y-m-d') }}</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Esemény - {{ event.title }}{% endblock %}
{% block content %}
<h3>Esemény - {{ event.title }}</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Fórum - {{ topicGroup.title }} - {{ topic.title }}{% endblock %}
{% block content %}
<h3><a href="{{ path('KekRozsakFrontBundle_forumTopicGroupList') }}">Fórum</a> - <a href="{{ path('KekRozsakFrontBundle_forumTopicList', {slug: topicGroup.slug}) }}">{{ topicGroup.title }}</a> - {{ topic.title }}</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Fórum{% endblock %}
{% block content %}
<h3>Fórum</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Fórum - {{ topicGroup.title }}{% endblock %}
{% block content %}
<h3><a href="{{ path('KekRozsakFrontBundle_forumTopicGroupList') }}">Fórum</a> - {{ topicGroup.title }}</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Csoport létrehozása{% endblock %}
{% block content %}
<h3>Csoport létrehozása</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - {{ group.name }}{% endblock %}
{% block additional_css %}
<link rel="stylesheet" href="{{ asset('css/group.css') }}" type="text/css" />

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Csoportok{% endblock title %}
{% block content %}
<h3>Jelentkezés</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Csoportok{% endblock %}
{% block content %}
<h3>Csoportok</h3>

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - {{ group.name }}{% endblock %}
{% block additional_css %}
<link rel="stylesheet" href="{{ asset('css/group.css') }}" type="text/css" />

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - {{ group.name }}{% endblock %}
{% block additional_css %}
<link rel="stylesheet" href="{{ asset('css/group.css') }}" type="text/css" />

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %}- Bejelentkezés{% endblock %}
{% block content %}
{% if error %}

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% block title %} - Sikeres regisztráció{% endblock %}
{% block content %}
A regisztrációd sikeres volt. A Vének hamarosan kapcsolatba lépnek Veled, és elbírálják jelentkezésedet. Kérünk, addig légy türelemmel!

View File

@ -1,6 +1,6 @@
{# vim: ft=htmljinja:
#}
{% extends '::main_template.html.twig' %}
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
{% form_theme form 'KekRozsakFrontBundle:Form:user_form.html.twig' %}
{% block title %} - Regisztráció {% endblock %}
{% block content %}