Added basic design to forum pages
This commit is contained in:
@@ -3,19 +3,17 @@
|
||||
{% block content %}
|
||||
<h3><a href="{{ path('KekRozsakFrontBundle_forum_main') }}">Fórum</a> - <a href="{{ path('KekRozsakFrontBundle_forum_topic_list', { topicGroupSlug: topicGroup.slug }) }}">{{ topicGroup.title }}</a> - {{ topic.title }}</h3>
|
||||
{% if topic.posts|length > 0 %}
|
||||
<table>
|
||||
<thead>
|
||||
</thead>
|
||||
<table class="post-lista">
|
||||
<tbody>
|
||||
{% for post in topic.posts %}
|
||||
<tr>
|
||||
<td>
|
||||
<td class="szoveg"><div>{{ post.text|raw }}</div></td>
|
||||
<td class="felado">
|
||||
{{ post.createdBy.displayName }}<br />
|
||||
{{ post.createdAt|date('Y-m-d H:i') }}<br />
|
||||
Admin<br />
|
||||
Szint<br />
|
||||
Tagság kezdete: {{ post.createdBy.RegisteredAt|date('Y-m-d') }}
|
||||
</td>
|
||||
<td>{{ post.text }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{% block content %}
|
||||
<h3>Fórum</h3>
|
||||
{% for topicGroup in topicGroups %}
|
||||
<table id="temakor-lista">
|
||||
<table class="forum-lista">
|
||||
<thead>
|
||||
<tr>
|
||||
<td colspan="2"><a href="{{ path('KekRozsakFrontBundle_forum_topic_list', {topicGroupSlug: topicGroup.slug}) }}">{{ topicGroup.title }}</a></td>
|
||||
@@ -15,8 +15,8 @@
|
||||
<tbody>
|
||||
{% if topicGroup.topics|length > 0 %}
|
||||
{% for topic in topicGroup.topics %}
|
||||
<tr>
|
||||
<td>[]</td>
|
||||
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
|
||||
<td>[ikon]</td>
|
||||
<td><a href="{{ path('KekRozsakFrontBundle_forum_post_list', {topicGroupSlug: topicGroup.slug, topicSlug: topic.slug}) }}">{{ topic.title }}</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
|
@@ -3,12 +3,15 @@
|
||||
{% block content %}
|
||||
<h3><a href="{{ path('KekRozsakFrontBundle_forum_main') }}">Fórum</a> - {{ topicGroup.title }}</h3>
|
||||
{% if topicGroup.topics|length > 0 %}
|
||||
<table>
|
||||
<table class="forum-lista">
|
||||
<thead>
|
||||
<tr>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for topic in topicGroup.topics %}
|
||||
<tr>
|
||||
<tr class="{{ cycle(['odd', 'even'], loop.index0) }}">
|
||||
<td><a href="{{ path('KekRozsakFrontBundle_forum_post_list', { topicGroupSlug: topicGroup.slug, topicSlug: topic.slug }) }}">{{ topic.title }}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
Reference in New Issue
Block a user