cartodb-4.42/lib/assets/javascripts/cartodb/common/views/error_details.jst.ejs
2024-04-06 05:25:13 +00:00

60 lines
2.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="Dialog-header ErrorDetails-header">
<div class="Dialog-headerIcon Dialog-headerIcon--negative">
<i class="CDB-IconFont CDB-IconFont-cloud"></i>
</div>
<h3 class="CDB-Text CDB-Size-large u-mainTextColor u-secondaryTextColor u-bSpace--m">
<%- title %> <% if (errorCode) { %>(<%- errorCode %>)<% } %>
</h3>
<p class="CDB-Text CDB-Size-medium u-altTextColor">
<% if (itemQueueId) { %>
Dont panic, here's some info that might help
<% } else { %>
Check errors
<% } %>
</p>
</div>
<div class="Dialog-body ErrorDetails-body">
<ul class="ErrorDetails-list CDB-Text CDB-Size-medium u-altTextColor">
<% if (httpResponseCode) { %>
<li class="ErrorDetails-item">
<div class="ErrorDetails-itemStep">1</div>
<div class="ErrorDetails-itemText">
The remote server returned a <span class="ErrorDetails-itemTextStrong"><%- httpResponseCode %></span> code. <%- httpResponseCodeMessage %>
</div>
</li>
<li class="ErrorDetails-item">
<div class="ErrorDetails-itemStep">2</div>
<div class="ErrorDetails-itemText">
Check that the URL you provided is OK: <br/>
<span class="ErrorDetails-itemTextStrong"><a href="<%- originalUrl %>"><%- originalUrl %></a></span>
</div>
</li>
<% } else { %>
<li class="ErrorDetails-item">
<div class="ErrorDetails-itemStep">1</div>
<div class="ErrorDetails-itemText">
<% if (text) { %>
<%= cdb.core.sanitize.html(text) %>
<% } else { %>
An unknown error has happened
<% } %>
</div>
</li>
<% } %>
<% if (itemQueueId) { %>
<li class="ErrorDetails-item">
<div class="ErrorDetails-itemStep">!</div>
<div class="ErrorDetails-itemText">
Persisting error? Please <a href="mailto:support@carto.com">send us</a> your username and the following code: <br/>
<span class="ErrorDetails-itemTextStrong"><%- itemQueueId %></span>
</div>
</li>
<% } %>
</ul>
</div>
<div class="Dialog-footer ErrorDetails-footer">
<button class="CDB-Button CDB-Button--secondary cancel">
<span class="CDB-Button-Text CDB-Text is-semibold CDB-Size-medium u-upperCase">close</span>
</button>
</div>