Skip to content
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.

Commit

Permalink
554: Fixes new admin project icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Boeira committed Dec 6, 2023
1 parent bedad77 commit 616a5bd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions app/assets/images/x_circle_fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions app/decorators/project_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ def market
'N/A'
end

def active_class
active? ? 'fill-green-500' : 'fill-none'
end

def truncated_name
name.truncate_words 1
end
Expand Down
2 changes: 1 addition & 1 deletion app/views/new_admin/projects/_project_details.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<td class="px-4 py-3">
<div class="flex items-center text-sm">
<p class="text-sm text-gray-600 dark:text-gray-400 font-semibold">
<%= inline_svg_tag 'check_circle_fill.svg', class: "h-6 w-6 #{project.active_class}" %>
<%= inline_svg_tag "#{project.active ? 'check' : 'x' }_circle_fill.svg", class: "h-6 w-6" %>
</p>
</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion app/views/new_admin/projects/_projects_table.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</td>

<td class="px-4 py-3">
<%= inline_svg_tag 'check_circle_fill.svg', class: "h-6 w-6 #{project.active_class}" %>
<%= inline_svg_tag "#{project.active ? 'check' : 'x' }_circle_fill.svg", class: "h-6 w-6" %>
</td>

<td class="px-4 py-3">
Expand Down

0 comments on commit 616a5bd

Please sign in to comment.