Skip to content

Commit

Permalink
currently pull-right pull-left are from the fontawesome library.
Browse files Browse the repository at this point in the history
Replace then with float-left float-right from Bootstrap 4.x.
Helps with the migration to Bootstrap v5
Keeps a consistency with the libraries we use to float items
  • Loading branch information
christinach committed Nov 19, 2024
1 parent c1f5771 commit 948ec4f
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/components/numismatics_search_form_component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</div>

<div class="search-submit-buttons clearfix col-sm-7">
<div class="submit-buttons pull-right form-group">
<div class="submit-buttons float-right form-group">
<%= submit_tag t('blacklight.advanced_search.form.search_btn_html'), class: 'btn btn-primary advanced-search-submit', id: "advanced-search-submit" %>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</div>

<div class="search-submit-buttons clearfix col-sm-7">
<div class="submit-buttons pull-right form-group">
<div class="submit-buttons float-right form-group">
<%= submit_tag t('blacklight.advanced_search.form.search_btn_html'), class: 'btn btn-primary advanced-search-submit', id: "advanced-search-submit" %>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/advanced/numismatics.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="advanced-search-form col-12">
<h1 class="advanced page-header">
<%= t('blacklight.advanced_search.form.numismatics_title') %>
<%= link_to t('blacklight.advanced_search.form.start_over'), '/numismatics', :class =>"btn pull-right clear-form" %>
<%= link_to t('blacklight.advanced_search.form.start_over'), '/numismatics', :class =>"btn float-right clear-form" %>
</h1>
<p>
With about 125,000 coins, medals, tokens, decorations, and banknotes, the Princeton University Numismatic Collection
Expand Down
2 changes: 1 addition & 1 deletion app/views/bookmarks/_clear_bookmarks_widget.html.erb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%= link_to t('blacklight.bookmarks.clear.action_title'), clear_bookmarks_path, :method => :delete, :data => { :confirm => t('blacklight.bookmarks.clear.action_confirm') }, :class => 'clear-bookmarks btn btn-danger pull-right' %>
<%= link_to t('blacklight.bookmarks.clear.action_title'), clear_bookmarks_path, :method => :delete, :data => { :confirm => t('blacklight.bookmarks.clear.action_confirm') }, :class => 'clear-bookmarks btn btn-danger float-right' %>
2 changes: 1 addition & 1 deletion app/views/catalog/_show_tools.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="search-widgets col pr-4">
<ul class="navbar navbar-nav pull-right">
<ul class="navbar navbar-nav float-right">
<% if @document.alma_record? || @document.scsb_record? %>
<li>
<%= render_cite_link(citation_solr_document_path(id: @document)) %>
Expand Down
4 changes: 2 additions & 2 deletions app/views/catalog/_sort_and_per_page.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div id="sortAndPerPage" class="clearfix">
<div class="pagination-rss pull-left">
<div class="pagination-rss float-left">
<div class="page-links">
<%= render :partial => "paginate_compact", :object => @response if show_pagination? %>
<%= link_to(" ", search_catalog_path(params.permit!.merge(format: 'atom',
sort: 'cataloged_tdt desc, pub_date_start_sort desc, title_sort asc').except(:controller, :action)),
:class => "icon-rssfeed", :title => "Subscribe to results feed", "aria-label"=>"Subscribe to results feed" ) %>
</div>
</div>
<div class="search-widgets pull-right">
<div class="search-widgets float-right">
<% if bookmarks? %>
<%= render partial: 'tools', locals: { document_list: @document_list } %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/advanced_search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<h1 class="advanced page-header">
<%= t('blacklight.advanced_search.form.title') %>

<%= link_to t('blacklight.advanced_search.form.start_over'), '/advanced', :class =>"btn pull-right clear-form" %>
<%= link_to t('blacklight.advanced_search.form.start_over'), '/advanced', :class =>"btn float-right clear-form" %>
</h1>
</div>
<%= render 'advanced_search_form' %>
2 changes: 1 addition & 1 deletion app/views/catalog/librarian_view.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= link_to "Back to item", solr_document_path(@document), :class => "btn btn-primary" %>
</div>
<div class="search-widgets col pr-4">
<ul class="navbar navbar-nav pull-right">
<ul class="navbar navbar-nav float-right">
<li class="print">
<a href="javascript:if(window.print)window.print()" class="dropdown-item"><span class="icon-print" aria-hidden="true"></span>Send to printer</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/feedback/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<%= f.hidden_field :current_url %>
<div class="form-group row">
<div class="col-sm-12">
<%= f.submit t('blacklight.sms.form.submit'), class: 'btn btn-primary pull-right' %>
<%= f.submit t('blacklight.sms.form.submit'), class: 'btn btn-primary float-right' %>
</div>
</div>
<% end %>
24 changes: 12 additions & 12 deletions app/views/pages/request.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<table class="table table-striped">
<thead>
<th>Call number</th>
<th class="pull-right">Status</th>
<th class="float-right">Status</th>
</thead>
<tbody>
<tr>
Expand All @@ -113,7 +113,7 @@
Q1 .N3 v.210-211 Indices Apr.-Sept. 1966</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
<tr>
Expand All @@ -123,7 +123,7 @@
Q1 .N3 v.212 no.5057-5061 Oct. 1966</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
<tr>
Expand All @@ -133,7 +133,7 @@
Q1 .N3 v.212 no.5062-5065 Nov. 1966</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
<tr class="text-muted">
Expand All @@ -143,7 +143,7 @@
Q1 .N3 v. 212 Dec. 1966</label>
</td>
<td>
<span class="list-status pull-right">Unavailable</span>
<span class="list-status float-right">Unavailable</span>
</td>
</tr>
<tr>
Expand All @@ -153,7 +153,7 @@
Q1 .N3 v.213,no. 5071-5074 Jan.7-Jan.28, 1967</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
</tbody>
Expand Down Expand Up @@ -203,7 +203,7 @@
<table class="table table-striped">
<thead>
<th>Call number</th>
<th class="pull-right">Status</th>
<th class="float-right">Status</th>
</thead>
<tbody>
<tr>
Expand All @@ -213,7 +213,7 @@
Q1 .N3 v.210-211 Indices Apr.-Sept. 1966</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
<tr>
Expand All @@ -223,7 +223,7 @@
Q1 .N3 v.212 no.5057-5061 Oct. 1966</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
<tr>
Expand All @@ -233,7 +233,7 @@
Q1 .N3 v.212 no.5062-5065 Nov. 1966</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
<tr class="text-muted">
Expand All @@ -243,7 +243,7 @@
Q1 .N3 v. 212 Dec. 1966</label>
</td>
<td>
<span class="list-status pull-right">Unavailable</span>
<span class="list-status float-right">Unavailable</span>
</td>
</tr>
<tr>
Expand All @@ -253,7 +253,7 @@
Q1 .N3 v.213,no. 5071-5074 Jan.7-Jan.28, 1967</label>
</td>
<td>
<span class="list-status pull-right">Available</span>
<span class="list-status float-right">Available</span>
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion app/views/search_history/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= render 'account/login_links', feature_page: "search history" %>
<h2 class='section-heading'><%=t('blacklight.search_history.no_history')%></h2>
<%- else -%>
<%= link_to t('blacklight.search_history.clear.action_title'), blacklight.clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'clear-search-history btn btn-danger pull-right' %>
<%= link_to t('blacklight.search_history.clear.action_title'), blacklight.clear_search_history_path, :method => :delete, :data => { :confirm => t('blacklight.search_history.clear.action_confirm') }, :class => 'clear-search-history btn btn-danger float-right' %>
<%= render 'account/login_links', feature_page: "search history" %>
<h2 class='section-heading'><%=t('blacklight.search_history.recent')%></h2>
<table class="table table-striped search_history">
Expand Down

0 comments on commit 948ec4f

Please sign in to comment.