Skip to content

Commit

Permalink
Corrected the number of notes appearing on one line (#5661)
Browse files Browse the repository at this point in the history
* Some mistakes corrected in notes.html.erb

* Wait 4
  • Loading branch information
Souravirus authored and jywarren committed May 7, 2019
1 parent eafff38 commit 9d2a0a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/notes/_notes.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div id="notes">
<div class="row">
<% notes.each_with_index do |node,i| %>
<div class="<% if @widget %>col-3 <% end %><%= node.tagnames_as_classes %> col-lg-6 clearfix node note node-nid-<%= node.id %> note-nid-<%= node.id %><% if node.status == 4 %> moderated<% end %>" style="overflow:hidden; text-align:center">
<div class="<% if @widget %>col-3 <% end %><%= node.tagnames_as_classes %> col-lg-3 clearfix node note node-nid-<%= node.id %> note-nid-<%= node.id %><% if node.status == 4 %> moderated<% end %>" style="overflow:hidden; text-align:center">
<% if node.main_image %>
<a class="img" <% if @widget %>target="_blank"<% end %> href="<%= node.path %>"><img src="<%= node.main_image.path(:default) %>" style="width:100%;" /></a>
Expand Down
2 changes: 1 addition & 1 deletion test/system/post_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setup
assert_page_reloads do

find('.ple-publish').click
assert_selector('h1', text: "My new post")
assert_selector('h1', text: "My new post", wait: 4)
assert_selector('#content', text: "All about this interesting stuff")
assert_selector('.alert-success', text: \nSuccess! Thank you for contributing open research, and thanks for your patience while your post is approved by community moderators and we'll email you when it is published. In the meantime, if you have more to contribute, feel free to do so.")

Expand Down

0 comments on commit 9d2a0a3

Please sign in to comment.