Skip to content

Commit

Permalink
Merge pull request #75 from claroline/5.x-stable
Browse files Browse the repository at this point in the history
5.x stable
  • Loading branch information
ngodfraind committed Oct 2, 2015
2 parents 94827c2 + 0b5653c commit cecb5a2
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Resources/views/Forum/editCategoryForm.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<h3 class="panel-title">{{ 'forum_category_edit'|trans({}, 'forum') }}</h3>
</div>
{% form_theme form 'ClarolineCoreBundle::form_theme.html.twig' %}
<form novalidate="novalidate" action="{{ _path('claro_forum_edit_category', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
<form novalidate="novalidate" action="{{ path('claro_forum_edit_category', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
<div class="panel-body">
{{ form_widget(form) }}
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-primary">{{ 'ok'|trans({}, 'platform') }}</button>
<a class="btn btn-default" href="{{ _path('claro_forum_categories', { 'forum': _resource.getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
<a class="btn btn-default" href="{{ path('claro_forum_categories', { 'forum': _resource.getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
</div>
</form>
{% endblock %}
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/Forum/editSubjectForm.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<h3 class="panel-title">{{ 'forum_subject_edit'|trans({}, 'forum') }}</h3>
</div>
{% form_theme form 'ClarolineCoreBundle::form_theme.html.twig' %}
<form novalidate="novalidate" action="{{ _path('claro_forum_edit_subject', {'subjectId': subject.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
<form novalidate="novalidate" action="{{ path('claro_forum_edit_subject', {'subjectId': subject.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
<div class="panel-body">
{{ form_widget(form) }}
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-primary">{{ 'ok'|trans({}, 'platform') }}</button>
<a class="btn btn-default" href="{{ _path('claro_forum_subjects', { 'category': subject.getCategory().getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
<a class="btn btn-default" href="{{ path('claro_forum_subjects', { 'category': subject.getCategory().getId()}) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
</div>
</form>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/Forum/forumsDesktopWidget.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<a
class="link-subject"
title="{{ message.getSubject().getTitle() }}"
href="{{ _path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}">
href="{{ path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}">
{{ message.getSubject().getTitle() | truncate(80) }}
</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/Forum/forumsWorkspaceWidget.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<li class="list-group-item">
<div class="list-group-item-text">
<a class="link-subject"
href="{{ _path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}"
href="{{ path('claro_forum_messages', {'subject': message.getSubject().getId() }) }}"
>
{{ message.getSubject().getTitle() }}
</a>
Expand Down
4 changes: 2 additions & 2 deletions Resources/views/Forum/subjectForm.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<h3 class="panel-title">{{ _resource.getResourceNode().getName() }} ({{ 'new_subject'|trans({}, 'forum') }})</h3>
</div>
{% form_theme form 'ClarolineCoreBundle::form_theme.html.twig' %}
<form novalidate="novalidate" action="{{ _path('claro_forum_create_subject', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
<form novalidate="novalidate" action="{{ path('claro_forum_create_subject', {'category': category.getId()}) }}" method="post" {{ form_enctype(form) }} id="subject_form">
<div class="panel-body">
{{ form_errors(form.title) }}
{{ form_row(form.title) }}
Expand All @@ -29,7 +29,7 @@
</div>
<div class="panel-footer">
<button type="submit" class="btn btn-primary">{{ 'ok'|trans({}, 'platform') }}</button>
<a class="btn btn-default" href="{{ _path('claro_forum_subjects', { 'category': category.getId() }) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
<a class="btn btn-default" href="{{ path('claro_forum_subjects', { 'category': category.getId() }) }}">{{ 'cancel' | trans({}, 'platform') }}</a>
</div>
</form>
{% endblock %}
6 changes: 3 additions & 3 deletions Resources/views/Forum/subjects.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<i class="fa fa-chevron-left"></i> {{ 'forum_back_to_categories'|trans({}, 'forum') }}
</a>
{% if canCreateSubject %}
<a class="btn btn-primary" href="{{ _path('claro_forum_form_subject_creation', {'category': category.getId()}) }}">
<a class="btn btn-primary" href="{{ path('claro_forum_form_subject_creation', {'category': category.getId()}) }}">
<i class="fa fa-plus"></i> {{ 'new_subject'|trans({}, 'forum') }}
</a>
{% endif %}
Expand Down Expand Up @@ -113,7 +113,7 @@
</td>
<td>
<a class="link-subject"
href="{{ _path('claro_forum_messages', {'subject': subject['id'] }) }}"
href="{{ path('claro_forum_messages', {'subject': subject['id'] }) }}"
>
<b>{{ subject['title'] }}</b>
</a>
Expand Down Expand Up @@ -173,7 +173,7 @@
{% endif %}
</td>
<td>
<a id="delete-subject" href="{{ _path('claro_forum_delete_subject', {'subject': subject['id']}) }}">
<a id="delete-subject" href="{{ path('claro_forum_delete_subject', {'subject': subject['id']}) }}">
<i class="fa fa-trash-o"></i> {{ 'delete' | trans({}, 'platform') }}
</a>
</td>
Expand Down
14 changes: 7 additions & 7 deletions Resources/views/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
</div>
{% else %}
{% if hasSubscribed %}
<a class="btn btn-primary" href="{{ _path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
<a class="btn btn-primary" href="{{ path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
{{ 'unsubscribe_mail_list'|trans({}, 'forum') }}
</a>
{% else %}
<a class="btn btn-primary" href="{{ _path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
<a class="btn btn-primary" href="{{ path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
{{ 'subscribe_mail_list'|trans({}, 'forum') }}
</a>
{% endif %}
Expand All @@ -54,30 +54,30 @@
</div>
<div id="bottom-div" class="panel">
{% if isModerator %}
<a class="btn btn-primary" href="{{ _path('claro_forum_form_category_creation', {'forum': _resource.getId()}) }}">
<a class="btn btn-primary" href="{{ path('claro_forum_form_category_creation', {'forum': _resource.getId()}) }}">
<i class="fa fa-plus"></i> {{ 'new_category'|trans({}, 'forum') }}
</a>

{% if is_mailer_available() %}

{% if _resource.getActivateNotifications() %}
<a class="btn btn-primary"
href="{{ _path('claro_forum_disable_global_notifications', {'forum': _resource.getId()}) }}">
href="{{ path('claro_forum_disable_global_notifications', {'forum': _resource.getId()}) }}">
{{ 'disable_global_notifications'|trans({}, 'forum') }}
</a>
{% else %}
<a class="btn btn-primary"
href="{{ _path('claro_forum_activate_global_notifications', {'forum': _resource.getId()}) }}">
href="{{ path('claro_forum_activate_global_notifications', {'forum': _resource.getId()}) }}">
{{ 'activate_global_notifications'|trans({}, 'forum') }}
</a>
{% endif %}

{% if hasSubscribed %}
<a class="btn btn-primary" href="{{ _path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
<a class="btn btn-primary" href="{{ path('claro_forum_unsubscribe', {'forum': _resource.getId()}) }}">
{{ 'unsubscribe_mail_list'|trans({}, 'forum') }}
</a>
{% else %}
<a class="btn btn-primary" href="{{ _path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
<a class="btn btn-primary" href="{{ path('claro_forum_subscribe', {'forum': _resource.getId()}) }}">
{{ 'subscribe_mail_list'|trans({}, 'forum') }}
</a>
{% endif %}
Expand Down

0 comments on commit cecb5a2

Please sign in to comment.