Skip to content

Commit ecfc785

Browse files
committed
Add telegram rules page
1 parent 1693d3c commit ecfc785

File tree

5 files changed

+69
-47
lines changed

5 files changed

+69
-47
lines changed

composer.lock

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
phpofby_website_annotation:
22
resource: "@PhpOfByWebsiteBundle/Controller"
33
type: annotation
4+
5+
phpofby_website_telegram_rules:
6+
path: /rules
7+
controller: Symfony\Bundle\FrameworkBundle\Controller\TemplateController
8+
defaults:
9+
template: '@PhpOfByWebsite/static/rules.html.twig'

src/PhpOfBy/WebsiteBundle/Resources/views/default/index.html.twig

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
{% extends 'base.html.twig' %}
22

3-
{% block stylesheets %}
4-
{{ encore_entry_link_tags('css/front') }}
5-
{% endblock %}
6-
7-
{% block hero %}
8-
<div class="hero">
9-
<h1 class="title">PhpOfBy</h1>
10-
<h3><!-- Sample header --></h3>
11-
</div>
12-
{% endblock %}
13-
143
{% block content %}
154
<div class="row intro">
165
<div class="col c2">&nbsp;</div>
@@ -70,19 +59,4 @@
7059
<div class="col c2">&nbsp;</div>
7160
</div>
7261

73-
<div class="row intro">
74-
<div class="col c3">
75-
<a href="https://www.facebook.com/groups/minsk.user.group"><img src="{{ asset('/bundles/phpofbywebsite/images/fb-link.png') }}"></a>
76-
</div>
77-
<div class="col c3">
78-
<a href="https://hoster.by"><img src="{{ asset('/bundles/phpofbywebsite/images/hosterby.png') }}"></a>
79-
</div>
80-
<div class="col c3">
81-
<a href="https://www.youtube.com/channel/UC1QF6l3BUs8b1i-DWqCquhw"><img src="{{ asset('/bundles/phpofbywebsite/images/youtube-link.png') }}"></a>
82-
</div>
83-
<div class="col c3" style="width: 81px;">
84-
<a href="https://community-z.com/communities/php-of-by/"><img src="{{ asset('/bundles/phpofbywebsite/images/community-z-link.svg') }}"></a>
85-
</div>
86-
</div>
87-
8862
{% endblock %}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{% set title = 'Правила Telegram канала' %}
2+
{% extends 'base.html.twig' %}
3+
4+
{% block content %}
5+
6+
<div class="row">
7+
<div class="col c2">&nbsp;</div>
8+
<div class="col c8">
9+
<h3 class="intro-title">Правила поведения в Telegram чате:</h3>
10+
<ol>
11+
<li>Запрещены объявления о поиске работников.</li>
12+
<li>Запрещены оскорбления и высказывания, умаляющие достоинство.</li>
13+
<li>Без голосовых сообщений</li>
14+
<li>Без открытых вопросов в стиле “есть кто-нибудь кто работал с XXX - лучше сразу конкретизировать (смотри <a href="https://nometa.xyz/" rel="nofollow">https://nometa.xyz/</a>)</li>
15+
</ol>
16+
</div>
17+
<div class="col c2">&nbsp;</div>
18+
</div>
19+
{% endblock content %}

templates/base.html.twig

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,45 @@
88
<title>{% if title is defined %}{{ title }} - {% endif %}PhpOfBy</title>
99
{{ encore_entry_script_tags('css/common') }}
1010
{{ encore_entry_link_tags('css/common') }}
11-
{% block stylesheets %}{% endblock %}
11+
{% block stylesheets %}
12+
{{ encore_entry_link_tags('css/front') }}
13+
{% endblock %}
1214
{{ macros.getGoogleAnalyticsCode(google_analytics_id) }}
1315
</head>
1416
<body>
1517

1618
{{ macros.getTopMenu() }}
1719

18-
{% block hero %}{% endblock %}
20+
{% block hero %}
21+
<div class="hero">
22+
<h1 class="title">PhpOfBy</h1>
23+
<h3><!-- Sample header --></h3>
24+
</div>
25+
{% endblock %}
1926

2027
<div class="container">
2128
{% if title is defined %}
22-
<h1>{{ title }}</h1>
29+
<h1 class="intro">{{ title }}</h1>
2330
{% endif %}
2431

2532
<section id="content">
2633
{% block content %}{% endblock %}
34+
<br/>
35+
<div class="row intro">
36+
<div class="col c3">
37+
<a href="https://www.facebook.com/groups/minsk.user.group"><img src="{{ asset('/bundles/phpofbywebsite/images/fb-link.png') }}"></a>
38+
</div>
39+
<div class="col c3">
40+
<a href="https://hoster.by"><img src="{{ asset('/bundles/phpofbywebsite/images/hosterby.png') }}"></a>
41+
</div>
42+
<div class="col c3">
43+
<a href="https://www.youtube.com/channel/UC1QF6l3BUs8b1i-DWqCquhw"><img src="{{ asset('/bundles/phpofbywebsite/images/youtube-link.png') }}"></a>
44+
</div>
45+
<div class="col c3" style="width: 81px;">
46+
<a href="https://community-z.com/communities/php-of-by/"><img src="{{ asset('/bundles/phpofbywebsite/images/community-z-link.svg') }}"></a>
47+
</div>
48+
</div>
49+
2750
</section>
2851
</div>
2952
{% block javascripts %}{% endblock %}

0 commit comments

Comments
 (0)