Skip to content

Commit

Permalink
style: fix text color with red and green
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Jan 8, 2025
1 parent 3b58cd2 commit aef17c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/controllers/admin/system_info_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def set_gems

def set_disk_volumes
@disks = Sys::Filesystem.mounts.each_with_object([]) do |mount, obj|
mount_options = mount.options.split(',').map(&:strip)
# mount_options = mount.options.split(',').map(&:strip)
# next if (EXCLUDED_MOUNT_OPTIONS & mount_options).any?
next if (EXCLUDED_MOUNT_TYPES & [mount.mount_type]).any?

Expand Down
4 changes: 2 additions & 2 deletions app/views/admin/system_info/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@
td = permission[:path]
td style="width: 20px"
- if permission[:health]
i.fas.fa-check.text-green
i.fas.fa-check.text-success
- else
i.fas.fa-exclamation-triangle.text-red
i.fas.fa-exclamation-triangle.text-danger
.card-footer
= t('.messages.file_permissions_tip', icon: '<i class="fas fa-exclamation-triangle text-danger">')

Expand Down
2 changes: 1 addition & 1 deletion app/views/errors/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ruby:
color = @code >= 500 ? 'text-red' : 'text-warning'
color = @code >= 500 ? 'text-danger' : 'text-warning'

- content_for :title do
= @title
Expand Down
2 changes: 1 addition & 1 deletion app/views/teardowns/_android.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ruby:
.card.mb-3
.card-header
h3.card-title
i.icon.fab.fa-android.text-green
i.icon.fab.fa-android.text-success
= t('teardowns.show.metadata')
.card-tools
button.btn.btn-tool data-lte-toggle="card-collapse"
Expand Down
2 changes: 1 addition & 1 deletion app/views/teardowns/_harmonyos.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ruby:
.card.mb-3
.card-header
h3.card-title
i.icon.fab.fa-android.text-green
i.icon.fab.fa-android.text-success
= t('teardowns.show.metadata')
.card-tools
button.btn.btn-tool data-lte-toggle="card-collapse"
Expand Down

0 comments on commit aef17c1

Please sign in to comment.