Skip to content

Commit

Permalink
If there are more than 1 category show category title.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Feb 9, 2016
1 parent 72d8aae commit 197a7ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/newscorm/lp_list.php
Expand Up @@ -819,9 +819,9 @@ function confirmation(name) {
$template->assign('is_allowed_to_edit', $is_allowed_to_edit);
$template->assign('is_invitee', api_is_invitee());
$template->assign('actions', $actions);
$template->assign('categories', $categories);
$template->assign('message', $message);
$template->assign('introduction_section', $introductionSection);

$template->assign('data', $data);
$template->assign('lp_is_shown', $lpIsShown);

Expand Down
4 changes: 3 additions & 1 deletion main/template/default/learnpath/list.tpl
Expand Up @@ -12,7 +12,9 @@

{% for lp_data in data %}
<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 %}
<a href="{{ 'lp_controller.php?' ~ _p.web_cid_query ~ '&action=add_lp_category&id=' ~ lp_data.category.getId() }}" title="{{ "Edit"|get_lang }}">
Expand Down

0 comments on commit 197a7ee

Please sign in to comment.