Skip to content

Commit

Permalink
Fix white-on-white text, make users#show to be dark-themed
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Nov 15, 2024
1 parent 55f083b commit ad68d49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions app/views/software_records/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@
<%= form_with(model: software_record, local: true) do |form| %>
<ul class="nav nav-tabs" id="softwareRecordTab" role="tablist">
<li class="nav-item">
<a class="nav-link active text-white" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general"
<a class="nav-link active" id="general-tab" data-bs-toggle="tab" href="#general" role="tab" aria-controls="general"
aria-selected="true">General</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" id="server-environment-tab" data-bs-toggle="tab" href="#server-environment" role="tab" aria-controls="server-environment"
<a class="nav-link" id="server-environment-tab" data-bs-toggle="tab" href="#server-environment" role="tab" aria-controls="server-environment"
aria-selected="false">Server Environment</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" id="change-management-tab" data-bs-toggle="tab" href="#change-management" role="tab" aria-controls="change-management"
<a class="nav-link" id="change-management-tab" data-bs-toggle="tab" href="#change-management" role="tab" aria-controls="change-management"
aria-selected="false">Change Management</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" id="upgrade-history-tab" data-bs-toggle="tab" href="#upgrade-history" role="tab" aria-controls="upgrade-history"
<a class="nav-link" id="upgrade-history-tab" data-bs-toggle="tab" href="#upgrade-history" role="tab" aria-controls="upgrade-history"
aria-selected="false">Upgrade History</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" id="maintenance-log-tab" data-bs-toggle="tab" href="#maintenance-log" role="tab" aria-controls="maintenance-log"
<a class="nav-link" id="maintenance-log-tab" data-bs-toggle="tab" href="#maintenance-log" role="tab" aria-controls="maintenance-log"
aria-selected="false">Maintenance Log</a>
</li>
</ul>
Expand Down
14 changes: 7 additions & 7 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<div class="container animated fadeIn" style="opacity: 0.9;">
<div class="card" style="width: 90%; margin-top: 40px; height: auto; background-color: white; color: white; margin-bottom: 10rem">
<div class="card" style="width: 90%; margin-top: 40px; height: auto; background-color: black; color: white; margin-bottom: 10rem">
<div class="card-header text-center">
<h1 style="color: black; font-family: Courier New, Lucida, Console"><%= @user.first_name.to_s + ' ' + @user.last_name.to_s %></h1>
<h1 style="color: white; font-family: Courier New, Lucida, Console"><%= @user.first_name.to_s + ' ' + @user.last_name.to_s %></h1>
<hr style="background-color: white">
</div>
<div class="card-body" style="padding-top: 1px;">
<dl>
<dt><p style="font-weight: bold; margin: 0; color: black;"><i class="fas fa-envelope"></i> Email</p></dt>
<dt><p style="font-weight: bold; margin: 0; color: white;"><i class="fas fa-envelope"></i> Email</p></dt>
<dd><ul><a href="mailto:<%= current_user.email %>?subject=" style="color: red"><%= @user.email %></a></ul></dd>
<dt><p style="font-weight: bold; margin: 0; color: black;"><i class="fas fa-user-tag"></i> Role</p></dt>
<dt><p style="font-weight: bold; margin: 0; color: white;"><i class="fas fa-user-tag"></i> Role</p></dt>
<dd style="color: red"><ul><%= @user.role.to_s.camelize %></ul></dd>
<dt><p style="font-weight: bold; margin: 0; color: black;"><i class="fas fa-user-lock"></i> Status</p></dt>
<dt><p style="font-weight: bold; margin: 0; color: white;"><i class="fas fa-user-lock"></i> Status</p></dt>
<dd style="color: red"><ul><% if @user.active.to_s == "true" %> Active <% else %> In-Active <% end %></ul></dd>
<dt><p style="font-weight: bold; margin: 0; color: black;"><i class="fas fa-graduation-cap"></i> Job Title</p></dt>
<dt><p style="font-weight: bold; margin: 0; color: white;"><i class="fas fa-graduation-cap"></i> Job Title</p></dt>
<dd style="color: red"><ul><%= @user.title %></ul></dd>
<dt><p style="font-weight: bold; margin: 0; color: black;"><i class="fas fa-university"></i> Department</p></dt>
<dt><p style="font-weight: bold; margin: 0; color: white;"><i class="fas fa-university"></i> Department</p></dt>
<dd style="color: red"><ul><%= @user.department %></ul></dd>
</dl>
<br/>
Expand Down

0 comments on commit ad68d49

Please sign in to comment.