Commit 1fb0e352 by Brittany Cheng

blank slate

parent 87019c4b
...@@ -45,6 +45,9 @@ form label { ...@@ -45,6 +45,9 @@ form label {
margin-left: 5px; margin-left: 5px;
} }
} }
.blank {
margin: 2%;
}
//SORTING //SORTING
.discussion-sort { .discussion-sort {
float: right; float: right;
...@@ -237,12 +240,10 @@ form label { ...@@ -237,12 +240,10 @@ form label {
} }
.discussion-content-edit, .discussion-reply-new, .new-post-form { .discussion-content-edit, .discussion-reply-new, .new-post-form {
margin: 10px 0 10px 0; margin: 10px 0 10px 0;
a { a:hover {
&:hover { color: #1C71DD;
color: #1C71DD; text-decoration: none;
text-decoration: none; };
};
}
.new-post-control { .new-post-control {
margin-left: 80%; margin-left: 80%;
margin-top: 1%; margin-top: 1%;
......
<div class="blank-state"> <div class="blank-state">
% if performed_search: % 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: % 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 % endif
</div> </div>
...@@ -14,18 +14,20 @@ ...@@ -14,18 +14,20 @@
</div> </div>
<div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div> <div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div>
</div> </div>
<%include file="_sort.html" />
% if len(threads) == 0: % if len(threads) == 0:
<%include file="_blank_slate.html" /> <div class="blank">
<%include file="_blank_slate.html" />
</div>
<div class="threads"></div> <div class="threads"></div>
% else: % else:
<%include file="_sort.html" />
<div class="threads"> <div class="threads">
% for thread in threads: % for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)} ${renderer.render_thread(course_id, thread, show_comments=False)}
% endfor % endfor
</div> </div>
<%include file="_paginator.html" />
% endif % endif
<%include file="_paginator.html" />
</section> </section>
<%! <%!
......
...@@ -6,19 +6,21 @@ ...@@ -6,19 +6,21 @@
<%include file="_search_bar.html" /> <%include file="_search_bar.html" />
</div> </div>
<div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div> <div class="discussion-new-post control-button" href="javascript:void(0)">New Post</div>
<%include file="_sort.html" />
</div> </div>
% if len(threads) == 0: % if len(threads) == 0:
<%include file="_blank_slate.html" /> <div class="blank">
<%include file="_blank_slate.html" />
</div>
<div class="threads"></div> <div class="threads"></div>
% else: % else:
<%include file="_sort.html" />
<div class="threads"> <div class="threads">
% for thread in threads: % for thread in threads:
${renderer.render_thread(course_id, thread, show_comments=False)} ${renderer.render_thread(course_id, thread, show_comments=False)}
% endfor % endfor
</div> </div>
<%include file="_paginator.html" />
% endif % endif
<%include file="_paginator.html" />
</section> </section>
<%! <%!
......
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