forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Outreachy] All Posts Design (publiclab#8848)
* all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * all posts design * revert pagination code * revert pagy code in wiki * remove target blank from research note link * optimize query and add test for hidden response id * update styling * fix tests * styling * remove target blank * add columns in the hidden_response select * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * all_posts_route merge * fix failing test * revise node query * all posts route * add to do item * notes controller * remove previous code and inline comments * remove inline comments * reuse published_notes for popular, recent, liked * implements review feedback * fix order and increase limit * fixed tests * revert pagy code in wiki * optimize query and add test for hidden response id * update styling * fix tests * add columns in the hidden_response select * fix failing test * revise node query * add a revision for the hidden note test node * remove trailing whitespace * remove sidebar test * make nav bar links responsive * make navbar responsive * cleanup and styling * nav pills responsive design galaxy fold
- Loading branch information
1 parent
de24361
commit 64c257c
Showing
5 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="dropdown pull-right" style="margin-top: -26px;"> | ||
<button class="btn btn-outline-secondary dropdown-toggle" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >Sort by</button> | ||
<div class="dropdown-menu dropdown-menu-right mt-1" aria-labelledby="dropdownMenuButton"> | ||
<a class="dropdown-item <% if params[:action] == 'recent' %> active<% end %>" href="/notes/recent/"> | ||
<i class="fa fa-clock-o"></i> <span class="d-lg-inline"><%= translation('notes.index.recent') %></span> | ||
</a> | ||
<a class="dropdown-item <% if params[:action] == 'popular' %> active<% end %>" href="/notes/popular/"> | ||
<i class="fa fa-bolt"></i> <span class="d-lg-inline"><%= translation('notes.index.popular') %></span> | ||
</a> | ||
<a class="dropdown-item <% if params[:action] == 'liked' %> active<% end %>" href="/notes/liked/"> | ||
<i class="fa fa-star"></i> <span class="d-lg-inline"><%= translation('notes.index.liked')%></span> | ||
</a> | ||
<a class="dropdown-item <% if params[:action] == 'index' %> active<% end %>" href="/notes/"> | ||
<i class="fa fa-file"></i> <span class="d-lg-inline"><%= translation('notes.index.all_notes')%></span> | ||
</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters