Commit 71d66316 by Davorin Sego

Courseware search: Change name of results page from "Searching [course name]"

and patch up some style issues
parent 76010467
......@@ -31,7 +31,6 @@ define([
render: function () {
this.$el.html(this.listTemplate({
courseName: this.courseName,
totalCount: this.collection.totalCount,
totalCountMsg: this.totalCountMsg(),
pageSize: this.collection.pageSize,
......
......@@ -348,7 +348,6 @@ define([
this.listView.render();
expect(this.listView.$el.find('ol')[0]).toExist();
expect(this.listView.$el.find('li').length).toEqual(1);
expect(this.listView.$el).toContainHtml('Test Course');
expect(this.listView.$el).toContainHtml('this is a short excerpt');
this.collection.set(searchResults);
......
......@@ -48,7 +48,8 @@
.search-info {
padding-bottom: lh(.75);
border-bottom: 1px solid lighten($border-color, 10%);
margin-bottom: lh(.50);
border-bottom: 1px solid $border-color-3;
.search-count {
float: right;
color: $gray;
......@@ -61,7 +62,7 @@
.search-results-item {
position: relative;
border-bottom: 1px solid lighten($border-color, 10%);
border-bottom: 1px solid $border-color-1;
list-style-type: none;
margin-bottom: lh(.75);
padding-bottom: lh(.75);
......
<div class="search-info">
<%- interpolate(gettext("Searching %s"), [courseName]) %>
<div class="search-count"><%- totalCountMsg %></div>
<%= gettext("Search Results") %>
<div class="search-count"><%= totalCountMsg %></div>
</div>
<% if (totalCount > 0 ) { %>
......@@ -9,13 +9,13 @@
<% if (hasMoreResults) { %>
<a class="search-load-next" href="javascript:void(0);">
<%- interpolate(gettext("Load next %s results"), [pageSize]) %>
<%= interpolate(gettext("Load next %s results"), [pageSize]) %>
<i class="icon fa-spinner fa-spin"></i>
</a>
<% } %>
<% } else { %>
<p><%- gettext("Sorry, no results were found.") %></p>
<p><%= gettext("Sorry, no results were found.") %></p>
<% } %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment