explicit template includes

This commit is contained in:
flash 2017-03-23 16:01:53 +01:00
parent 25f38a480e
commit e82f082ada
51 changed files with 75 additions and 75 deletions

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@nova/master.twig' %}
{% set banner_classes = user.isActive ? "banner--large" : "banner--insane landing__banner" %} {% set banner_classes = user.isActive ? "banner--large" : "banner--insane landing__banner" %}
{% set banner = user.isActive ? route('user.header', user.id) : "https://i.flash.moe/7131467636550.jpg" %} {% set banner = user.isActive ? route('user.header', user.id) : "https://i.flash.moe/7131467636550.jpg" %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@nova/master.twig' %}
{% set title = 'Status' %} {% set title = 'Status' %}
{% set banner = '/images/status-banner.png' %} {% set banner = '/images/status-banner.png' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Request activation' %} {% set title = 'Request activation' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Activation failed' %} {% set title = 'Activation failed' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Register' %} {% set title = 'Register' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Reset password' %} {% set title = 'Reset password' %}
{% set verified = get.u is defined and get.k is defined %} {% set verified = get.u is defined and get.k is defined %}

View file

@ -29,7 +29,7 @@
<ul class="comment__replies"> <ul class="comment__replies">
{% set comment_depth = comment_depth + 1 %} {% set comment_depth = comment_depth + 1 %}
{% for comment in comment.replies %} {% for comment in comment.replies %}
{% include 'elements/comment.twig' %} {% include '@yuuno/elements/comment.twig' %}
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>

View file

@ -27,7 +27,7 @@
{% if comments %} {% if comments %}
{% for comment in comments %} {% for comment in comments %}
{% set comment_depth = 0 %} {% set comment_depth = 0 %}
{% include 'elements/comment.twig' %} {% include '@yuuno/elements/comment.twig' %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<h1 class="comments__placeholder">There are no comments yet!</h1> <h1 class="comments__placeholder">There are no comments yet!</h1>

View file

@ -1 +1 @@
{% include 'errors/404.twig' %} {% include '@yuuno/errors/404.twig' %}

View file

@ -13,11 +13,11 @@
{% endif %} {% endif %}
</div> </div>
{% for forum in forum.forums %} {% for forum in forum.forums %}
{% include 'forum/elements/forumEntry.twig' %} {% include '@yuuno/forum/elements/forumEntry.twig' %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% else %} {% else %}
{% include 'forum/elements/forumEntry.twig' %} {% include '@yuuno/forum/elements/forumEntry.twig' %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</div> </div>
@ -27,15 +27,15 @@
{% set pagination_pages = topics %} {% set pagination_pages = topics %}
{% set pagination_url %}{{ route('forums.forum', forum.id) }}{% endset %} {% set pagination_url %}{{ route('forums.forum', forum.id) }}{% endset %}
{% include 'forum/elements/forumBtns.twig' %} {% include '@yuuno/forum/elements/forumBtns.twig' %}
{% if forum.topics %} {% if forum.topics %}
{% for topic in topics[get.page|default(1) - 1] %} {% for topic in topics[get.page|default(1) - 1] %}
{% include 'forum/elements/topicEntry.twig' %} {% include '@yuuno/forum/elements/topicEntry.twig' %}
{% endfor %} {% endfor %}
{% else %} {% else %}
<h1 class="forum-list__empty">There are no posts in this forum!</h1> <h1 class="forum-list__empty">There are no posts in this forum!</h1>
{% endif %} {% endif %}
{% include 'forum/elements/forumBtns.twig' %} {% include '@yuuno/forum/elements/forumBtns.twig' %}
{% endif %} {% endif %}

View file

@ -1,4 +1,4 @@
{% from 'macros.twig' import pagination %} {% from '@yuuno/macros.twig' import pagination %}
<div class="forum-list__buttons"> <div class="forum-list__buttons">
<div> <div>
@ -15,7 +15,7 @@
<a href="{{ forumMarkRead }}" class="input__button"><span class="fa fa-check-square-o"></span> Mark as Read</a> <a href="{{ forumMarkRead }}" class="input__button"><span class="fa fa-check-square-o"></span> Mark as Read</a>
{% endif %} {% endif %}
{% if topic.id is defined and showMod is defined %} {% if topic.id is defined and showMod is defined %}
{% include 'forum/elements/forumMod.twig' %} {% include '@yuuno/forum/elements/forumMod.twig' %}
{% endif %} {% endif %}
</div> </div>
{% if pagination_url is defined %} {% if pagination_url is defined %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Forums / ' ~ forum.name %} {% set title = 'Forums / ' ~ forum.name %}
{% set forumBackLink = route('forums.index') %} {% set forumBackLink = route('forums.index') %}
@ -7,6 +7,6 @@
{% block content %} {% block content %}
<div class="content"> <div class="content">
{% include 'forum/elements/forumBase.twig' %} {% include '@yuuno/forum/elements/forumBase.twig' %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Forums' %} {% set title = 'Forums' %}
@ -63,7 +63,7 @@
</div> </div>
</div> </div>
<div class="content--left"> <div class="content--left">
{% include 'forum/elements/forumBase.twig' %} {% include '@yuuno/forum/elements/forumBase.twig' %}
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</div> </div>

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set forumBackLink = route('forums.forum', forum.id) %} {% set forumBackLink = route('forums.forum', forum.id) %}
{% set title = topic is defined ? topic.title : 'Creating topic in ' ~ forum.name %} {% set title = topic is defined ? topic.title : 'Creating topic in ' ~ forum.name %}
@ -158,7 +158,7 @@
</span> </span>
</div> </div>
{% include 'forum/elements/forumBtns.twig' %} {% include '@yuuno/forum/elements/forumBtns.twig' %}
<div class="posts"> <div class="posts">
@ -280,9 +280,9 @@
</div> </div>
{% if forumReplyLink is defined or topic is not defined %} {% if forumReplyLink is defined or topic is not defined %}
{% include 'forum/elements/replyForm.twig' %} {% include '@yuuno/forum/elements/replyForm.twig' %}
{% endif %} {% endif %}
{% include 'forum/elements/forumBtns.twig' %} {% include '@yuuno/forum/elements/forumBtns.twig' %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -1,5 +1,5 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% from 'macros.twig' import news_post %} {% from '@yuuno/macros.twig' import news_post %}
{% block content %} {% block content %}
<div class="content"> <div class="content">

View file

@ -1,4 +1,4 @@
{% extends 'info/master.twig' %} {% extends '@yuuno/info/master.twig' %}
{% set title = 'Contact' %} {% set title = 'Contact' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% block content %} {% block content %}
<div class="content content--alt bbcode"> <div class="content content--alt bbcode">

View file

@ -1,4 +1,4 @@
{% extends 'info/master.twig' %} {% extends '@yuuno/info/master.twig' %}
{% set title = 'Privacy Policy' %} {% set title = 'Privacy Policy' %}

View file

@ -1,4 +1,4 @@
{% extends 'info/master.twig' %} {% extends '@yuuno/info/master.twig' %}
{% set title = 'Rules' %} {% set title = 'Rules' %}

View file

@ -1,4 +1,4 @@
{% extends 'info/master.twig' %} {% extends '@yuuno/info/master.twig' %}
{% set title = 'Terms of Service' %} {% set title = 'Terms of Service' %}

View file

@ -1,4 +1,4 @@
{% extends 'info/master.twig' %} {% extends '@yuuno/info/master.twig' %}
{% set title = 'Welcome!' %} {% set title = 'Welcome!' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = category ~ ' / ' ~ mode %} {% set title = category ~ ' / ' ~ mode %}

View file

@ -1,4 +1,4 @@
{% extends 'manage/overview/master.twig' %} {% extends '@yuuno/manage/overview/master.twig' %}
{% set mode = 'Index' %} {% set mode = 'Index' %}

View file

@ -1,3 +1,3 @@
{% extends 'manage/master.twig' %} {% extends '@yuuno/manage/master.twig' %}
{% set category = 'Overview' %} {% set category = 'Overview' %}

View file

@ -3,7 +3,7 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
{% include '_layout/metadata.twig' %} {% include '@yuuno/_layout/metadata.twig' %}
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css"> <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"> <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
@ -59,7 +59,7 @@
</div> </div>
</div> </div>
{% include 'auth/header_auth.twig' %} {% include '@yuuno/auth/header_auth.twig' %}
<div id="contentwrapper" class="container__content"> <div id="contentwrapper" class="container__content">
<div id="notifications" class="alerts"></div> <div id="notifications" class="alerts"></div>

View file

@ -1,5 +1,5 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% from 'macros.twig' import news_post, pagination %} {% from '@yuuno/macros.twig' import news_post, pagination %}
{% set title = 'News' %} {% set title = 'News' %}
{% set posts = category.posts|batch(3) %} {% set posts = category.posts|batch(3) %}

View file

@ -1,5 +1,5 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% from 'macros.twig' import news_post %} {% from '@yuuno/macros.twig' import news_post %}
{% block content %} {% block content %}
<div class="content"> <div class="content">

View file

@ -1,5 +1,5 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% from 'macros.twig' import news_post %} {% from '@yuuno/macros.twig' import news_post %}
{% set title = post.title %} {% set title = post.title %}
@ -11,7 +11,7 @@
<div class="content__header">{{ post.title }}</div> <div class="content__header">{{ post.title }}</div>
{{ news_post(post) }} {{ news_post(post) }}
<a href="{{ route('news.category', post.category.id) }}" class="input__button"><span class="fa fa-backward"></span> Back</a> <a href="{{ route('news.category', post.category.id) }}" class="input__button"><span class="fa fa-backward"></span> Back</a>
{% include 'elements/comments.twig' %} {% include '@yuuno/elements/comments.twig' %}
</div> </div>
{% endblock %} {% endblock %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Purchase complete!' %} {% set title = 'Purchase complete!' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Something went wrong!' %} {% set title = 'Something went wrong!' %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title %}Support {{ config('general.name') }}{% endset %} {% set title %}Support {{ config('general.name') }}{% endset %}

View file

@ -3,4 +3,4 @@
<div class="new-profile-mode-title"> <div class="new-profile-mode-title">
<h1>Comments</h1> <h1>Comments</h1>
</div> </div>
{% include 'elements/comments.twig' %} {% include '@yuuno/elements/comments.twig' %}

View file

@ -1,4 +1,4 @@
{% from 'macros.twig' import pagination %} {% from '@yuuno/macros.twig' import pagination %}
{% set friends = profile.friends(2)|batch(12) %} {% set friends = profile.friends(2)|batch(12) %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/account/master.twig' %} {% extends '@yuuno/settings/account/master.twig' %}
{% set mode = 'Details' %} {% set mode = 'Details' %}

View file

@ -1,3 +1,3 @@
{% extends 'settings/master.twig' %} {% extends '@yuuno/settings/master.twig' %}
{% set category = 'Account' %} {% set category = 'Account' %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/account/master.twig' %} {% extends '@yuuno/settings/account/master.twig' %}
{% set mode = 'Profile' %} {% set mode = 'Profile' %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/account/master.twig' %} {% extends '@yuuno/settings/account/master.twig' %}
{% set mode = 'Ranks' %} {% set mode = 'Ranks' %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/account/master.twig' %} {% extends '@yuuno/settings/account/master.twig' %}
{% set mode = 'Signature' %} {% set mode = 'Signature' %}
@ -18,5 +18,5 @@
<button type="reset" class="input__button">Reset</button> <button type="reset" class="input__button">Reset</button>
<button type="button" class="input__button" onclick="settingsPreview()">Preview</button> <button type="button" class="input__button" onclick="settingsPreview()">Preview</button>
</form> </form>
{% include 'settings/account/_preview.twig' %} {% include '@yuuno/settings/account/_preview.twig' %}
{% endblock %} {% endblock %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/account/master.twig' %} {% extends '@yuuno/settings/account/master.twig' %}
{% set mode = 'Userpage' %} {% set mode = 'Userpage' %}
@ -18,5 +18,5 @@
<button type="reset" class="input__button">Reset</button> <button type="reset" class="input__button">Reset</button>
<button type="button" class="input__button" onclick="settingsPreview()">Preview</button> <button type="button" class="input__button" onclick="settingsPreview()">Preview</button>
</form> </form>
{% include 'settings/account/_preview.twig' %} {% include '@yuuno/settings/account/_preview.twig' %}
{% endblock %} {% endblock %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/advanced/master.twig' %} {% extends '@yuuno/settings/advanced/master.twig' %}
{% set mode = 'Deactivate' %} {% set mode = 'Deactivate' %}

View file

@ -1,3 +1,3 @@
{% extends 'settings/master.twig' %} {% extends '@yuuno/settings/master.twig' %}
{% set category = 'Advanced' %} {% set category = 'Advanced' %}

View file

@ -1,4 +1,4 @@
{% extends 'settings/advanced/master.twig' %} {% extends '@yuuno/settings/advanced/master.twig' %}
{% set mode = 'Sessions' %} {% set mode = 'Sessions' %}

View file

@ -1,5 +1,5 @@
{% extends 'settings/friends/master.twig' %} {% extends '@yuuno/settings/friends/master.twig' %}
{% from 'macros.twig' import pagination %} {% from '@yuuno/macros.twig' import pagination %}
{% set friends = user.friends(1)|batch(12) %} {% set friends = user.friends(1)|batch(12) %}

View file

@ -1,3 +1,3 @@
{% extends 'settings/master.twig' %} {% extends '@yuuno/settings/master.twig' %}
{% set category = 'Friends' %} {% set category = 'Friends' %}

View file

@ -1,5 +1,5 @@
{% extends 'settings/friends/master.twig' %} {% extends '@yuuno/settings/friends/master.twig' %}
{% from 'macros.twig' import pagination %} {% from '@yuuno/macros.twig' import pagination %}
{% set friends = user.friends(-1)|batch(12) %} {% set friends = user.friends(-1)|batch(12) %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = category ~ ' / ' ~ mode %} {% set title = category ~ ' / ' ~ mode %}

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% set title = 'Status' %} {% set title = 'Status' %}

View file

@ -1,5 +1,5 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% from 'macros.twig' import pagination %} {% from '@yuuno/macros.twig' import pagination %}
{% set sorts = ['boxes', 'rectangles', 'list'] %} {% set sorts = ['boxes', 'rectangles', 'list'] %}
{% set sort = get is defined and get.sort is defined and get.sort in sorts ? get.sort : sorts[0] %} {% set sort = get is defined and get.sort is defined and get.sort in sorts ? get.sort : sorts[0] %}

View file

@ -1,6 +1,6 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% from 'user/profile_macros.twig' import profile_image_changer %} {% from '@yuuno/user/profile_macros.twig' import profile_image_changer %}
{% set title = 'Profile of ' ~ profile.username %} {% set title = 'Profile of ' ~ profile.username %}
{% set description = 'Everything you ever wanted to know about ' ~ profile.username ~ '!' %} {% set description = 'Everything you ever wanted to know about ' ~ profile.username ~ '!' %}
@ -112,7 +112,7 @@
<div class="content profile"> <div class="content profile">
<div class="profile__container"> <div class="profile__container">
{% include 'user/profile_header.twig' %} {% include '@yuuno/user/profile_header.twig' %}
<div class="profile__content"> <div class="profile__content">
<div class="profile__mode"> <div class="profile__mode">
{% if profile.lastfm %} {% if profile.lastfm %}
@ -131,7 +131,7 @@
<noscript><h1 style="text-align: center;">Please enable Javascript!</h1></noscript> <noscript><h1 style="text-align: center;">Please enable Javascript!</h1></noscript>
{% for name, data in sections %} {% for name, data in sections %}
<div id="profile-mode-{{ name }}" class="hidden"> <div id="profile-mode-{{ name }}" class="hidden">
{% include 'profile/' ~ name ~ '.twig' %} {% include '@yuuno/profile/' ~ name ~ '.twig' %}
</div> </div>
{% endfor %} {% endfor %}
</div> </div>

View file

@ -1,4 +1,4 @@
{% from 'user/profile_macros.twig' import profile_image_changer %} {% from '@yuuno/user/profile_macros.twig' import profile_image_changer %}
<div class="profile__header" style="background-image: url({{ route('user.header', profile.id) }});"> <div class="profile__header" style="background-image: url({{ route('user.header', profile.id) }});">
<div class="profile__info"> <div class="profile__info">

View file

@ -1,4 +1,4 @@
{% extends 'master.twig' %} {% extends '@yuuno/master.twig' %}
{% block content %} {% block content %}
<h1 style="text-align: center; margin: 2em auto;">I'll actually make reporting a thing, someday...</h1> <h1 style="text-align: center; margin: 2em auto;">I'll actually make reporting a thing, someday...</h1>