blank slate

This commit is contained in:
Brittany Cheng
2012-08-07 11:10:24 -04:00
parent 87019c4bcb
commit 1fb0e352b4
4 changed files with 19 additions and 14 deletions

View File

@@ -45,6 +45,9 @@ form label {
margin-left: 5px;
}
}
.blank {
margin: 2%;
}
//SORTING
.discussion-sort {
float: right;
@@ -237,12 +240,10 @@ form label {
}
.discussion-content-edit, .discussion-reply-new, .new-post-form {
margin: 10px 0 10px 0;
a {
&:hover {
color: #1C71DD;
text-decoration: none;
};
}
a:hover {
color: #1C71DD;
text-decoration: none;
};
.new-post-control {
margin-left: 80%;
margin-top: 1%;

View File

@@ -1,7 +1,7 @@
<div class="blank-state">
% if performed_search:
There is no result matching your search parameters.
Sorry! We can't find anything matching your search. Please try another search.
% else:
There is no post here yet. Be the first one to post!
There are no posts here yet. Be the first one to post!
% endif
</div>

View File

@@ -14,18 +14,20 @@
</div>
<div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div>
</div>
<%include file="_sort.html" />
% if len(threads) == 0:
<%include file="_blank_slate.html" />
<div class="blank">
<%include file="_blank_slate.html" />
</div>
<div class="threads"></div>
% else:
<%include file="_sort.html" />
<div class="threads">
% for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)}
% endfor
</div>
<%include file="_paginator.html" />
% endif
<%include file="_paginator.html" />
</section>
<%!

View File

@@ -6,19 +6,21 @@
<%include file="_search_bar.html" />
</div>
<div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div>
<%include file="_sort.html" />
</div>
% if len(threads) == 0:
<%include file="_blank_slate.html" />
<div class="blank">
<%include file="_blank_slate.html" />
</div>
<div class="threads"></div>
% else:
<%include file="_sort.html" />
<div class="threads">
% for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)}
% endfor
</div>
<%include file="_paginator.html" />
% endif
<%include file="_paginator.html" />
</section>
<%!