-
-
Notifications
You must be signed in to change notification settings - Fork 902
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve styling on the reverse dependencies page (#3760)
* Reuse the `home__search` styles * Render the reverse dependencies only if present * Include new reverse dependencies search test * Check the reverse dependency is rendered * Fix `rubocop` updates * Remove extra `l-wrap--b` wrapper * Include `no_reverse_dependencies` helper text * `bin/fill-locales` * Check the no reverse dependencies text
- Loading branch information
1 parent
304b7dc
commit 711aeb9
Showing
12 changed files
with
51 additions
and
17 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<%= form_tag rubygem_reverse_dependencies_path(rubygem), | ||
id: "rdeps-search", class: "header__search-wrap", method: :get do %> | ||
<%= search_field_tag :rdeps_query, params[:rdeps_query], placeholder: t('.search_reverse_dependencies_html'), class: "header__search" %> | ||
id: "rdeps-search", class: "home__search-wrap", method: :get do %> | ||
<%= search_field_tag :rdeps_query, params[:rdeps_query], placeholder: t('.search_reverse_dependencies_html'), class: "home__search" %> | ||
<%= label_tag :rdeps_query do %> | ||
<span class="t-hidden"><%= t('.search_reverse_dependencies_html') %></span> | ||
<% end %> | ||
<%= submit_tag '⌕', id: 'rdeps_search_submit', name: nil, class: "header__search__icon" %> | ||
<%= submit_tag '⌕', id: 'rdeps_search_submit', name: nil, class: "home__search__icon" %> | ||
<% end %> |
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,22 +1,26 @@ | ||
<% content_for :title do %> | ||
<div class="l-wrap--b"> | ||
<h1 class="t-display page__heading page__heading--small"> | ||
<%= t('.title', name: @rubygem.name) %> | ||
<i class="page__subheading page__subheading--block"><%= t(".subtitle", name: @rubygem.name) %></i> | ||
</h1> | ||
</div> | ||
<h1 class="t-display page__heading page__heading--small"> | ||
<%= t('.title', name: @rubygem.name) %> | ||
<i class="page__subheading page__subheading--block"><%= t(".subtitle", name: @rubygem.name) %></i> | ||
</h1> | ||
<% end %> | ||
|
||
<div class="l-overflow"> | ||
<div class="l-colspan--l colspan--l--has-border"> | ||
<header class="gems__header push"> | ||
<%= render "search", rubygem: @rubygem %> | ||
</header> | ||
<% if @reverse_dependencies.present? %> | ||
<div class="l-colspan--l colspan--l--has-border"> | ||
<header class="push push--bottom-s"> | ||
<%= render "search", rubygem: @rubygem %> | ||
</header> | ||
|
||
<div class="reverse__dependencies"> | ||
<%= render partial: "rubygems/rubygem", collection: @reverse_dependencies %> | ||
<div class="reverse__dependencies"> | ||
<%= render partial: "rubygems/rubygem", collection: @reverse_dependencies %> | ||
</div> | ||
<%= plain_paginate @reverse_dependencies %> | ||
</div> | ||
<%= plain_paginate @reverse_dependencies %> | ||
</div> | ||
<% else %> | ||
<div class="gem__desc"> | ||
<p><%= t(".no_reverse_dependencies") %></p> | ||
</div> | ||
<% end %> | ||
<%= render 'rubygems/aside' %> | ||
</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
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
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
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