Skip to content

Commit

Permalink
Merge pull request #1 from ngodfraind/5.x
Browse files Browse the repository at this point in the history
Update view.html.twig
  • Loading branch information
ptsavdar committed Oct 1, 2015
2 parents 574fc04 + 6c1bb29 commit 47e9be6
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions Resources/views/CommentAction/view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,27 @@
data-resource-name="{{ node.getName() }}"
>
</div>
{% if not is_path_mode %}
<ul class="breadcrumb">
<li><a href="{{ path('claro_workspace_list') }}"><i class="fa fa-book"></i> {{ 'workspaces'|trans({}, 'platform') }}</a></li>
<li>
{% set workspace = node.getWorkspace() %}
<a href="{{ path('claro_workspace_open_tool', {'toolName': 'home', 'workspaceId': workspace.getId() }) }}">
{{ workspace.getName() ~ ' (' ~ workspace.getCode() ~ ') ' }}
</a>
</li>
{% render(controller("ClarolineCoreBundle:Resource:renderBreadcrumbs",
{'node': node, '_breadcrumbs': app.request.query.get('_breadcrumbs', {})}))
%}
{% block resourceBreadcrumb %}
<li class="active">{{ 'comments'|trans({}, 'icap_socialmedia') }}: {{ node.getName() }}</li>
{% endblock %}
</ul>
{% endif %}
<ul class="breadcrumb">
<li><a href="{{ path('claro_workspace_list') }}"><i class="fa fa-book"></i> {{ 'workspaces'|trans({}, 'platform') }}</a></li>
<li>
{% set workspace = node.getWorkspace() %}
<a href="{{ path('claro_workspace_open_tool', {'toolName': 'home', 'workspaceId': workspace.getId() }) }}">
{{ workspace.getName() ~ ' (' ~ workspace.getCode() ~ ') ' }}
</a>
</li>
{% render(controller("ClarolineCoreBundle:Resource:renderBreadcrumbs",
{'node': node, '_breadcrumbs': app.request.query.get('_breadcrumbs', {})}))
%}
{% block resourceBreadcrumb %}
<li class="active">{{ 'comments'|trans({}, 'icap_socialmedia') }}: {{ node.getName() }}</li>
{% endblock %}
</ul>
{% endif %}
</div>
{% endblock %}
{% block leftbar %}
{% set workspace = node.getWorkspace() %}
{% if not is_path_mode and workspace is defined %}
{% if workspace is defined %}
{% if is_granted('OPEN', workspace) %}
{% render(controller("ClarolineCoreBundle:Workspace:renderToolList", {'workspace': workspace, '_breadcrumbs': app.request.query.get('_breadcrumbs', {})})) %}
{% endif %}
Expand Down Expand Up @@ -110,4 +108,4 @@
});
});
</script>
{% endblock %}
{% endblock %}

0 comments on commit 47e9be6

Please sign in to comment.