From 0f60e8ece523cda8dce44d24e41370c08bf50f12 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 31 Oct 2014 10:16:32 -0500 Subject: [PATCH 1/4] Fix lang variable - refs #7347 --- main/template/default/skill/profile.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/template/default/skill/profile.tpl b/main/template/default/skill/profile.tpl index 22f1865d57..171c7146f1 100755 --- a/main/template/default/skill/profile.tpl +++ b/main/template/default/skill/profile.tpl @@ -55,7 +55,7 @@

{{ user['user'].complete_name }}

-

Usuario:{{user['user'].username}}

+

{{ 'User' | get_lang }}: {{user['user'].username}}

{{ "Skills"|get_lang }} {{ user.total_found_skills }} / {{ total_search_skills }}
From 59f1e2503b3ca387b93d2bb95d633ad6ea09faec Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 31 Oct 2014 10:21:46 -0500 Subject: [PATCH 2/4] Minor - Format code - refs #7347 --- main/template/default/skill/profile.tpl | 112 ++++++++++++------------ 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/main/template/default/skill/profile.tpl b/main/template/default/skill/profile.tpl index 171c7146f1..db2800a761 100755 --- a/main/template/default/skill/profile.tpl +++ b/main/template/default/skill/profile.tpl @@ -28,68 +28,68 @@ {% if order_user_list is not null %} {% for count, user_list in order_user_list %} -
-
-
-

- {% if count == total_search_skills %} - {{ "CompleteMatch"|get_lang }} - {% else %} - {% if (total_search_skills - count) == 1 %} - {{ "MissingOneStepToMatch"|get_lang }} - {% else %} - {{ "MissingXStepsToMatch"|get_lang | format(total_search_skills - count)}} - {% endif %} - {% endif %} -

-
-
- -
- {% for user in user_list %} -
-
-
-
- -
-
-

{{ user['user'].complete_name }}

-

{{ 'User' | get_lang }}: {{user['user'].username}}

-
-
{{ "Skills"|get_lang }} {{ user.total_found_skills }} / {{ total_search_skills }}
-
-
    - {% for skill_data in user.skills %} -
  • - {% if skill_list[skill_data.skill_id].name is not null %} - {% if skill_data.found %} - {{ skill_list[skill_data.skill_id].name }} - {% else %} - {{ skill_list[skill_data.skill_id].name }} - {% endif %} - +
    +
    +
    +

    + {% if count == total_search_skills %} + {{ "CompleteMatch"|get_lang }} + {% else %} + {% if (total_search_skills - count) == 1 %} + {{ "MissingOneStepToMatch"|get_lang }} {% else %} - {{ "SkillNotFound"|get_lang }} + {{ "MissingXStepsToMatch"|get_lang | format(total_search_skills - count)}} {% endif %} - {# if $skill_data.found - "IHaveThisSkill"|get_lang - #} -

  • - {% endfor %} -
+ {% endif %} +
-
-
- {% endfor %} - {% endfor %} -
+ +
+ {% for user in user_list %} +
+
+
+
+ +
+
+

{{ user['user'].complete_name }}

+

{{ 'User' | get_lang }}: {{user['user'].username}}

+
+
{{ "Skills"|get_lang }} {{ user.total_found_skills }} / {{ total_search_skills }}
+
+
    + {% for skill_data in user.skills %} +
  • + {% if skill_list[skill_data.skill_id].name is not null %} + {% if skill_data.found %} + {{ skill_list[skill_data.skill_id].name }} + {% else %} + {{ skill_list[skill_data.skill_id].name }} + {% endif %} + + {% else %} + {{ "SkillNotFound"|get_lang }} + {% endif %} + {# if $skill_data.found + "IHaveThisSkill"|get_lang + #} +
  • + {% endfor %} +
+
+
+
+
+ {% endfor %} + {% endfor %} +
{% else %} - {% if search_skill_list is null %} -
{{"NoResults"|get_lang}}
- {% endif %} + {% if search_skill_list is null %} +
{{"NoResults"|get_lang}}
+ {% endif %} {% endif %}
{% endfor %} - {% endfor %} + - - {% else %} - {% if search_skill_list is null %} -
{{"NoResults"|get_lang}}
- {% endif %} + {% endfor %} +{% else %} + {% if search_skill_list is null %} +
{{"NoResults"|get_lang}}
{% endif %} +{% endif %}