Download app/views/devise/shared/_error_messages.html.erb from denise-oneill-inbox-ru/Rails-8-API-Image-Processing: direct link, hf CLI and curl.
- Browser
- Download file 831 Bytes
-
https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/app/views/devise/shared/_error_messages.html.erb
- Command line
-
hf download hf://spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/app/views/devise/shared/_error_messages.html.erb
-
curl -L -o _error_messages.html.erb https://huggingface.co/spaces/denise-oneill-inbox-ru/Rails-8-API-Image-Processing/resolve/main/app/views/devise/shared/_error_messages.html.erb
831 Bytes
| <% if resource.errors.any? %> | |
| <div class="mb-5 px-4 py-3 rounded-lg bg-red-50 border border-red-200"> | |
| <h3 class="text-sm font-semibold text-red-700 mb-2 flex items-center gap-1.5"> | |
| <svg class="size-4" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"> | |
| <path stroke-linecap="round" stroke-linejoin="round" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"/> | |
| </svg> | |
| <%= t("errors.messages.not_saved", count: resource.errors.count, resource: resource.class.model_name.human.downcase) %> | |
| </h3> | |
| <ul class="m-0 pl-5"> | |
| <% resource.errors.full_messages.each do |message| %> | |
| <li class="text-xs text-red-600 mb-1"><%= message %></li> | |
| <% end %> | |
| </ul> | |
| </div> | |
| <% end %> | |