If there are more than 1 category show category title.

1.10.x
jmontoya 10 years ago
parent 72d8aae519
commit 197a7eedbc
  1. 2
      main/newscorm/lp_list.php
  2. 4
      main/template/default/learnpath/list.tpl

@ -819,9 +819,9 @@ $template = new Template($nameTools);
$template->assign('is_allowed_to_edit', $is_allowed_to_edit); $template->assign('is_allowed_to_edit', $is_allowed_to_edit);
$template->assign('is_invitee', api_is_invitee()); $template->assign('is_invitee', api_is_invitee());
$template->assign('actions', $actions); $template->assign('actions', $actions);
$template->assign('categories', $categories);
$template->assign('message', $message); $template->assign('message', $message);
$template->assign('introduction_section', $introductionSection); $template->assign('introduction_section', $introductionSection);
$template->assign('data', $data); $template->assign('data', $data);
$template->assign('lp_is_shown', $lpIsShown); $template->assign('lp_is_shown', $lpIsShown);

@ -12,7 +12,9 @@
{% for lp_data in data %} {% for lp_data in data %}
<h3 class="page-header"> <h3 class="page-header">
{{ lp_data.category.getName() }} {% if (categories|length) > 1 %}
{{ lp_data.category.getName() }}
{% endif %}
{% if lp_data.category.getId() > 0 and is_allowed_to_edit %} {% if lp_data.category.getId() > 0 and is_allowed_to_edit %}
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}"> <a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}">

Loading…
Cancel
Save