-
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.
- Loading branch information
Showing
6 changed files
with
30 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,6 @@ | |
@import 'layouts/default'; | ||
|
||
// Components | ||
@import 'components/list_keywords_group'; | ||
|
||
// Screens |
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,6 @@ | ||
.list-keywords-group { | ||
&__header { | ||
color: $gray-500; | ||
min-width: 3em; | ||
} | ||
} |
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,8 @@ | ||
<section class="list-keywords"> | ||
<% keywords.groups.each do |group_key, group_keywords| %> | ||
<%= render partial: 'list_keywords_group', locals: { group_key: group_key, group_keywords: group_keywords } %> | ||
<% end %> | ||
<div class="d-flex justify-content-around"> | ||
<%== pagy_bootstrap_nav(pagy) %> | ||
</div> | ||
</section> |
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,13 @@ | ||
<div class="d-flex flex-row list-keywords-group mb-2"> | ||
<div class="list-keywords-group__header"> | ||
<h2 class="mb-0"> | ||
<%= group_key %> | ||
</h2> | ||
</div> | ||
<ul class="list-inline mb-0"> | ||
<% group_keywords.each do |keyword| %> | ||
<li class="list-inline-item"><%= keyword.name %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<hr/> |
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 |
---|---|---|
@@ -1,13 +1,3 @@ | ||
<div class="container"> | ||
<% keywords.sections.each do |key, section| %> | ||
<div class="d-flex flex-row"> | ||
<h2><%= key %></h2> | ||
<ul class="list-inline"> | ||
<% section.each do |keyword| %> | ||
<li class="list-inline-item"><%= keyword.name %></li> | ||
<% end %> | ||
</ul> | ||
</div> | ||
<% end %> | ||
<%== pagy_bootstrap_nav(pagy) %> | ||
<%= render partial: 'list_keywords', locals: { keywords: keywords, pagy: pagy } %> | ||
</div> |