-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧹 Upgrade views from Bootstrap 3 to 4
This commit is a first swing of upgrading all the views from Bootstrap 3 to 4. There's still a lot of work to be done to make the views look good but this is a good first step.
- Loading branch information
Showing
144 changed files
with
1,558 additions
and
1,490 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,22 +1,24 @@ | ||
<% if user_signed_in? %> | ||
<% if can? :manage, Account %> | ||
<ul class="nav navbar-nav"> | ||
<li> | ||
<%= link_to main_app.proprietor_accounts_path do %> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item"> | ||
<%= link_to main_app.proprietor_accounts_path, class: 'nav-link' do %> | ||
<span class="fa fa-gears"></span> <%= t("hyku.proprietor.accounts.nav") %> | ||
<% end %> | ||
</li> | ||
<li> | ||
<%= link_to main_app.proprietor_users_path do %> | ||
<li class="nav-item"> | ||
<%= link_to main_app.proprietor_users_path, class: 'nav-link' do %> | ||
<span class="fa fa-users"></span> <%= t("hyku.proprietor.users.nav") %> | ||
<% end %> | ||
</li> | ||
</ul> | ||
<% end %> | ||
<% end %> | ||
<ul id="user_utility_links" class="nav navbar-nav navbar-right"> | ||
<ul id="user_utility_links" class="navbar-nav ml-auto"> | ||
<%= render 'shared/locale_picker' if available_translations.size > 1 %> | ||
<% if user_signed_in? %> | ||
<li><%= link_to t("hyrax.toolbar.profile.logout"), main_app.destroy_user_session_path %></li> | ||
<li class="nav-item"> | ||
<%= link_to t("hyrax.toolbar.profile.logout"), main_app.destroy_user_session_path, class: 'nav-link' %> | ||
</li> | ||
<% end %> | ||
</ul> |
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,10 +1,10 @@ | ||
<% if logo_image %> | ||
<a id="logo" href="<%= hyrax.root_path %>" data-no-turbolink="true"> | ||
<span class="glyphicon glyphicon-globe" role="img" aria-label="<%= application_name %>" aria-hidden="true"></span> | ||
<%= image_tag logo_image, alt: block_for(name: 'logo_image_text') %> | ||
</a> | ||
<% else %> | ||
<a id="logo" class="navbar-brand" href="<%= hyrax.root_path %>" data-no-turbolink="true"> | ||
<span class="institution_name"><%= application_name %></span> | ||
</a> | ||
<% end %> | ||
<% if logo_image %> | ||
<a id="logo" href="<%= hyrax.root_path %>" data-no-turbolink="true"> | ||
<i class="fa fa-globe" role="img" aria-label="<%= application_name %>" aria-hidden="true"></i> | ||
<%= image_tag logo_image, alt: block_for(name: 'logo_image_text') %> | ||
</a> | ||
<% else %> | ||
<a id="logo" class="navbar-brand" href="<%= hyrax.root_path %>" data-no-turbolink="true"> | ||
<span class="institution_name"><%= application_name %></span> | ||
</a> | ||
<% 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,18 @@ | ||
<nav id="masthead" class="navbar navbar-inverse navbar-static-top" role="navigation" aria-label="masthead"> | ||
<div class="container-fluid"> | ||
<!-- Brand and toggle get grouped for better mobile display --> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#top-navbar-collapse" aria-expanded="false"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<%= render '/logo' %> | ||
</div> | ||
<%# OVERRIDE Hyrax v5.0.0rc1 to render either admin or user util links %> | ||
|
||
<div class="collapse navbar-collapse" id="top-navbar-collapse"> | ||
<header aria-label="header" class="top-header"> | ||
<nav id="masthead" class="navbar navbar-expand-lg navbar-dark bg-dark justify-content-between <%= placement_class %>" role="navigation" aria-label="masthead"> | ||
<h1 class="sr-only"><%= application_name %></h1> | ||
<%= render '/logo' %> | ||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#top-navbar-collapse" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse justify-content-end" id="top-navbar-collapse"> | ||
<% if admin_host? %> | ||
<%= render '/admin_util_links' %> | ||
<% else %> | ||
<%= render '/user_util_links' %> | ||
<% end %> | ||
</div> | ||
</div> | ||
</nav> | ||
</nav> | ||
</header> |
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
Oops, something went wrong.