Skip to content

Commit cecb5a2

Browse files
committed
Merge pull request #75 from claroline/5.x-stable
5.x stable
2 parents 94827c2 + 0b5653c commit cecb5a2

7 files changed

+18
-18
lines changed

Resources/views/Forum/editCategoryForm.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<h3 class="panel-title">{{ 'forum_category_edit'|trans({}, 'forum') }}</h3>
1919
</div>
2020
{% form_theme form 'ClarolineCoreBundle::form_theme.html.twig' %}
21-
<form novalidate="novalidate" action="{{ _path('claro_forum_edit_category', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
21+
<form novalidate="novalidate" action="{{ path('claro_forum_edit_category', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
2222
<div class="panel-body">
2323
{{ form_widget(form) }}
2424
</div>
2525
<div class="panel-footer">
2626
<button type="submit" class="btn btn-primary">{{ 'ok'|trans({}, 'platform') }}</button>
27-
<a class="btn btn-default" href="{{ _path('claro_forum_categories', { 'forum': _resource.getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
27+
<a class="btn btn-default" href="{{ path('claro_forum_categories', { 'forum': _resource.getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
2828
</div>
2929
</form>
3030
{% endblock %}

Resources/views/Forum/editSubjectForm.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
<h3 class="panel-title">{{ 'forum_subject_edit'|trans({}, 'forum') }}</h3>
1919
</div>
2020
{% form_theme form 'ClarolineCoreBundle::form_theme.html.twig' %}
21-
<form novalidate="novalidate" action="{{ _path('claro_forum_edit_subject', {'subjectId': subject.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
21+
<form novalidate="novalidate" action="{{ path('claro_forum_edit_subject', {'subjectId': subject.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
2222
<div class="panel-body">
2323
{{ form_widget(form) }}
2424
</div>
2525
<div class="panel-footer">
2626
<button type="submit" class="btn btn-primary">{{ 'ok'|trans({}, 'platform') }}</button>
27-
<a class="btn btn-default" href="{{ _path('claro_forum_subjects', { 'category': subject.getCategory().getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
27+
<a class="btn btn-default" href="{{ path('claro_forum_subjects', { 'category': subject.getCategory().getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
2828
</div>
2929
</form>
3030
{% endblock %}

Resources/views/Forum/forumsDesktopWidget.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<a
4242
class="link-subject"
4343
title="{{ message.getSubject().getTitle() }}"
44-
href="{{ _path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}">
44+
href="{{ path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}">
4545
{{ message.getSubject().getTitle() | truncate(80) }}
4646
</a>
4747
</li>

Resources/views/Forum/forumsWorkspaceWidget.html.twig

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li class="list-group-item">
88
<div class="list-group-item-text">
99
<a class="link-subject"
10-
href="{{ _path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}"
10+
href="{{ path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}"
1111
>
1212
{{ message.getSubject().getTitle() }}
1313
</a>

Resources/views/Forum/subjectForm.html.twig

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<h3 class="panel-title">{{ _resource.getResourceNode().getName() }} ({{ 'new_subject'|trans({}, 'forum') }})</h3>
2020
</div>
2121
{% form_theme form 'ClarolineCoreBundle::form_theme.html.twig' %}
22-
<form novalidate="novalidate" action="{{ _path('claro_forum_create_subject', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
22+
<form novalidate="novalidate" action="{{ path('claro_forum_create_subject', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
2323
<div class="panel-body">
2424
{{ form_errors(form.title) }}
2525
{{ form_row(form.title) }}
@@ -29,7 +29,7 @@
2929
</div>
3030
<div class="panel-footer">
3131
<button type="submit" class="btn btn-primary">{{ 'ok'|trans({}, 'platform') }}</button>
32-
<a class="btn btn-default" href="{{ _path('claro_forum_subjects', { 'category': category.getId() }) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
32+
<a class="btn btn-default" href="{{ path('claro_forum_subjects', { 'category': category.getId() }) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
3333
</div>
3434
</form>
3535
{% endblock %}

Resources/views/Forum/subjects.html.twig

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<i class="fa fa-chevron-left"></i> {{ 'forum_back_to_categories'|trans({}, 'forum') }}
5555
</a>
5656
{% if canCreateSubject %}
57-
<a class="btn btn-primary" href="{{ _path('claro_forum_form_subject_creation', {'category': category.getId()}) }}">
57+
<a class="btn btn-primary" href="{{ path('claro_forum_form_subject_creation', {'category': category.getId()}) }}">
5858
<i class="fa fa-plus"></i> {{ 'new_subject'|trans({}, 'forum') }}
5959
</a>
6060
{% endif %}
@@ -113,7 +113,7 @@
113113
</td>
114114
<td>
115115
<a class="link-subject"
116-
href="{{ _path('claro_forum_messages', {'subject': subject['id'] }) }}"
116+
href="{{ path('claro_forum_messages', {'subject': subject['id'] }) }}"
117117
>
118118
<b>{{ subject['title'] }}</b>
119119
</a>
@@ -173,7 +173,7 @@
173173
{% endif %}
174174
</td>
175175
<td>
176-
<a id="delete-subject" href="{{ _path('claro_forum_delete_subject', {'subject': subject['id']}) }}">
176+
<a id="delete-subject" href="{{ path('claro_forum_delete_subject', {'subject': subject['id']}) }}">
177177
<i class="fa fa-trash-o"></i> {{ 'delete' | trans({}, 'platform') }}
178178
</a>
179179
</td>

Resources/views/index.html.twig

+7-7
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
</div>
2626
{% else %}
2727
{% if hasSubscribed %}
28-
<a class="btn btn-primary" href="{{ _path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
28+
<a class="btn btn-primary" href="{{ path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
2929
{{ 'unsubscribe_mail_list'|trans({}, 'forum') }}
3030
</a>
3131
{% else %}
32-
<a class="btn btn-primary" href="{{ _path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
32+
<a class="btn btn-primary" href="{{ path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
3333
{{ 'subscribe_mail_list'|trans({}, 'forum') }}
3434
</a>
3535
{% endif %}
@@ -54,30 +54,30 @@
5454
</div>
5555
<div id="bottom-div" class="panel">
5656
{% if isModerator %}
57-
<a class="btn btn-primary" href="{{ _path('claro_forum_form_category_creation', {'forum': _resource.getId()}) }}">
57+
<a class="btn btn-primary" href="{{ path('claro_forum_form_category_creation', {'forum': _resource.getId()}) }}">
5858
<i class="fa fa-plus"></i> {{ 'new_category'|trans({}, 'forum') }}
5959
</a>
6060

6161
{% if is_mailer_available() %}
6262

6363
{% if _resource.getActivateNotifications() %}
6464
<a class="btn btn-primary"
65-
href="{{ _path('claro_forum_disable_global_notifications', {'forum': _resource.getId()}) }}">
65+
href="{{ path('claro_forum_disable_global_notifications', {'forum': _resource.getId()}) }}">
6666
{{ 'disable_global_notifications'|trans({}, 'forum') }}
6767
</a>
6868
{% else %}
6969
<a class="btn btn-primary"
70-
href="{{ _path('claro_forum_activate_global_notifications', {'forum': _resource.getId()}) }}">
70+
href="{{ path('claro_forum_activate_global_notifications', {'forum': _resource.getId()}) }}">
7171
{{ 'activate_global_notifications'|trans({}, 'forum') }}
7272
</a>
7373
{% endif %}
7474

7575
{% if hasSubscribed %}
76-
<a class="btn btn-primary" href="{{ _path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
76+
<a class="btn btn-primary" href="{{ path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
7777
{{ 'unsubscribe_mail_list'|trans({}, 'forum') }}
7878
</a>
7979
{% else %}
80-
<a class="btn btn-primary" href="{{ _path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
80+
<a class="btn btn-primary" href="{{ path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
8181
{{ 'subscribe_mail_list'|trans({}, 'forum') }}
8282
</a>
8383
{% endif %}

0 commit comments

Comments
 (0)