Skip to content

Commit

Permalink
More code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-armstrong committed Mar 22, 2016
1 parent 08bcde2 commit fee4f63
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions lms/static/js/student_profile/views/learner_profile_fields.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
;(function(define, undefined) {
'use strict';
define([
'gettext', 'jquery', 'underscore', 'backbone', 'js/views/fields', 'js/views/image_field',
'gettext', 'jquery', 'underscore', 'backbone',
'edx-ui-toolkit/js/utils/html-utils',
'edx-ui-toolkit/js/utils/string-utils',
'js/views/fields',
'js/views/image_field',
'backbone-super'
], function(gettext, $, _, Backbone, FieldViews, ImageFieldView, HtmlUtils) {
], function(gettext, $, _, Backbone, HtmlUtils, StringUtils, FieldViews, ImageFieldView) {

var LearnerProfileFieldViews = {};

Expand Down Expand Up @@ -56,7 +59,7 @@
},

imageAltText: function() {
return HtmlUtils.interpolateHtml(
return StringUtils.interpolate(
gettext('Profile image for {username}'),
{username: this.model.get('username')}
);
Expand Down
2 changes: 1 addition & 1 deletion lms/templates/components/header/header.underscore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="page-header-main">
<div class="sr-is-focusable" tabindex="-1"></div>
<% if (breadcrumbs !== null && breadcrumbs.length > 0) { %>
<nav class="breadcrumbs" aria-label="<%= HtmlUtils.ensureHtml(nav_aria_label) %>">
<nav class="breadcrumbs" aria-label="<%- nav_aria_label %>">
<% _.each(breadcrumbs, function (breadcrumb) { %>
<a class="nav-item" href="<%= breadcrumb.url %>"><%= HtmlUtils.ensureHtml(breadcrumb.title) %></a>
<span class="icon fa-angle-right" aria-hidden="true"></span>
Expand Down

0 comments on commit fee4f63

Please sign in to comment.