-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3877bb3
commit 4148981
Showing
2 changed files
with
20 additions
and
4 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
16 changes: 15 additions & 1 deletion
16
app/views/facility_reviews/form_components/_others_experience.html.erb
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,3 +1,17 @@ | ||
<%# locals: (space_facility:) %> | ||
<%= inline_svg_tag "facility_status/#{space_facility.experience}", class: "#{" text-black " if space_facility.experience == "impossible" }" %> | ||
<%= t("tooltips.others_experience.#{space_facility.experience}") %> | ||
<span class=" <%= | ||
case space_facility.experience | ||
when "impossible" | ||
"text-red-500" | ||
when "likely" | ||
"text-green-500" | ||
when "unlikely" | ||
"text-red-500" | ||
when "maybe" | ||
"text-yellow-500" | ||
else "text-gray-400" | ||
end | ||
%>"> | ||
<%= t("tooltips.others_experience.#{space_facility.experience}") %> | ||
</span> |