Skip to content

Commit

Permalink
SAK-33535 fix handlebars quoting (sakaiproject#4938)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottenhoff authored and ern committed Oct 30, 2017
1 parent 8d85bbb commit e0836f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion roster2/src/handlebars/members.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{#if ../viewProfile}}
<a href="javascript:;" class="profile" data-user-id="{{userId}}">
{{/if}}
<img class="roster-picture" src="{{profileImageUrl}}" title="{{translate 'profile_picture_alt'}} alt="{{translate 'profile_picture_alt'}} {{displayName}}" />
<img class="roster-picture" src="{{profileImageUrl}}" title="{{translate 'profile_picture_alt'}}" alt="{{translate 'profile_picture_alt'}} {{displayName}}" />
{{#if ../viewProfile}}
</a>
{{/if}}
Expand Down
20 changes: 10 additions & 10 deletions roster2/src/handlebars/permissions.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,63 @@
<tr>
<td align="left">{{translate 'permissions_allmembers'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewallmembers')}}checked="checked"{{/if}}" id="{{name}}:roster.viewallmembers"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewallmembers')}}checked="checked"{{/if}} id="{{name}}:roster.viewallmembers"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_hidden'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewhidden')}}checked="checked"{{/if}}" id="{{name}}:roster.viewhidden"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewhidden')}}checked="checked"{{/if}} id="{{name}}:roster.viewhidden"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_groups'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewgroup')}}checked="checked"{{/if}}" id="{{name}}:roster.viewgroup"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewgroup')}}checked="checked"{{/if}} id="{{name}}:roster.viewgroup"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_enrollment'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewenrollmentstatus')}}checked="checked"{{/if}}" id="{{name}}:roster.viewenrollmentstatus"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewenrollmentstatus')}}checked="checked"{{/if}} id="{{name}}:roster.viewenrollmentstatus"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_profile'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewprofile')}}checked="checked"{{/if}}" id="{{name}}:roster.viewprofile"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewprofile')}}checked="checked"{{/if}} id="{{name}}:roster.viewprofile"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_email'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewemail')}}checked="checked"{{/if}}" id="{{name}}:roster.viewemail"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewemail')}}checked="checked"{{/if}} id="{{name}}:roster.viewemail"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_user_properties'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewuserproperties')}}checked="checked"{{/if}}" id="{{name}}:roster.viewuserproperties"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewuserproperties')}}checked="checked"{{/if}} id="{{name}}:roster.viewuserproperties"/></td>
{{/each}}
</tr>
<tr>
<td align="left">{{translate 'permissions_photo'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewofficialphoto')}}checked="checked"{{/if}}" id="{{name}}:roster.viewofficialphoto"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewofficialphoto')}}checked="checked"{{/if}} id="{{name}}:roster.viewofficialphoto"/></td>
{{/each}}
</tr>
{{#if showVisits}}
<tr>
<td align="left">{{translate 'permissions_visits'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewsitevisits')}}checked="checked"{{/if}}" id="{{name}}:roster.viewsitevisits"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.viewsitevisits')}}checked="checked"{{/if}} id="{{name}}:roster.viewsitevisits"/></td>
{{/each}}
</tr>
{{/if}}
<tr>
<td align="left">{{translate 'permissions_export'}}</td>
{{#each roles}}
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.export')}}checked="checked"{{/if}}" id="{{name}}:roster.export"/></td>
<td align="center"><input type="checkbox" class="roster_permission_checkbox" {{#if (roleAllowed permission='roster.export')}}checked="checked"{{/if}} id="{{name}}:roster.export"/></td>
{{/each}}
</tr>
</tbody>
Expand Down

0 comments on commit e0836f5

Please sign in to comment.