MDL-52923 cbe: Improve the course competencies template.

Just padding fixes - and don't show the grade if it is not set.
This commit is contained in:
Damyon Wiese 2016-01-28 17:01:02 +08:00 committed by Frederic Massart
parent f45d0b372d
commit f194761408

View File

@ -41,7 +41,9 @@
<p>{{{competency.description}}}</p>
{{/competency}}
{{#usercompetency}}
{{#grade}}
<span class="label {{^proficiency}}label-important{{/proficiency}}">{{gradename}}</span>
{{/grade}}
{{/usercompetency}}
{{#canmanagecoursecompetencies}}
<div data-region="coursecompetency-ruleoutcome">
@ -56,6 +58,7 @@
</div>
{{/canmanagecoursecompetencies}}
<div data-region="coursecompetencyactivities">
<p>
<ul class="inline">
{{#coursemodules}}
<li><a href="{{url}}"><img src="{{iconurl}}"> {{name}} </a></li>
@ -64,6 +67,7 @@
<li><span class="alert">{{#str}}noactivities, tool_lp{{/str}}</span></li>
{{/coursemodules}}
</ul>
</p>
</div>
</td>
</tr>