How can I make this code look better:
<%=raw manuscript.uploaded_to_s3? ? "<span style=\"color:green;\">" : "<span style=\"color:red;\">" %>
That is, can the HTML go outside of the ERB block making this easier to read?
How can I make this code look better:
<%=raw manuscript.uploaded_to_s3? ? "<span style=\"color:green;\">" : "<span style=\"color:red;\">" %>
That is, can the HTML go outside of the ERB block making this easier to read?
I would advocate a CSS class rather than style attribute 8P: