Skip to content

Commit

Permalink
🧹 Restore btn-sign-up on splash page
Browse files Browse the repository at this point in the history
This change was part of the bulk upgrade of Bootstrap 3 to 4.
  • Loading branch information
jeremyf committed Dec 20, 2023
1 parent 4319562 commit deb76d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/hyku.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
margin-bottom: 20px;
}

// TODO: Do we need this style or could we fallback on btn-primary
.btn-sign-up {
@include button-variant(
$classic-white,
Expand Down
4 changes: 2 additions & 2 deletions app/views/splash/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<p><%= t('application.tagline') %></p>
<p>
<% if !admin_only_tenant_creation? || can?(:manage, Account) %>
<%= link_to t('hyku.splash.account_signup'), account_sign_up_path, class: 'btn btn-lg btn-primary' %>
<%= link_to t('hyku.splash.account_signup'), account_sign_up_path, class: 'btn btn-lg btn-sign-up' %>
<% elsif !user_signed_in? %>
<%= link_to t('hyku.splash.account_login'), main_app.new_user_session_path, class: 'btn btn-lg btn-primary' %>
<%= link_to t('hyku.splash.account_login'), main_app.new_user_session_path, class: 'btn btn-lg btn-sign-up' %>
<% else %>
<%= t('hyku.splash.account_denied') %>
<% end %>
Expand Down

0 comments on commit deb76d7

Please sign in to comment.