更新 show_protected.html.erb

This commit is contained in:
钟进 2020-07-23 04:51:57 +00:00
parent c0402499a8
commit 39c1dec0a2

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Protected map — 快点</title>
<title>受保护 — 快点</title>
<%= editor_stylesheet_link_tag 'password_protected.css' %>
</head>
@ -11,18 +11,18 @@
<div class='PublicPage-container'>
<div class='PublicPage-header'>
<a href="<%= cartodb_com_hosted? ? CartoDB.url(self, 'root') : "https://carto.com" %>">
<a href="<%= cartodb_com_hosted? ? CartoDB.url(self, 'root') : "http://www.spacen.net/carto/" %>">
<img src="<%= image_path "layout/carto-logo.svg" %>" alt="CARTO">
</a>
</div>
<p class='CDB-Text CDB-Size-large is-light u-whiteTextColor u-bSpace--xl'>This map is protected with password</p>
<p class='CDB-Text CDB-Size-large is-light u-whiteTextColor u-bSpace--xl'>这个地图需要密码</p>
<div class='PublicPage-form'>
<%= form_tag "embed_protected?#{request.query_string}", method: :post do %>
<div class='PublicPage-field-withTooltip'>
<%= password_field_tag 'password', params[:password], class: "PublicPage-form--inputText RoundBorders-all CDB-Text CDB-Size-medium is-light u-whiteTextColor #{ flash[:error].present? ? 'is-alert' : ''}", placeholder: 'Insert your password'%>
<%= password_field_tag 'password', params[:password], class: "PublicPage-form--inputText RoundBorders-all CDB-Text CDB-Size-medium is-light u-whiteTextColor #{ flash[:error].present? ? 'is-alert' : ''}", placeholder: '输入密码'%>
<%- if flash[:error].present? %>
<div class="PublicPage-inputTooltip CDB-InfoTooltip CDB-InfoTooltip--left u-lSpace--xl is-error">
@ -34,7 +34,7 @@
<% end %>
</div>
<p class='CDB-Text CDB-Size-medium is-light u-hintTextColor u-tSpace-xl'>Contact with the owner in case you want access to it.</p>
<p class='CDB-Text CDB-Size-medium is-light u-hintTextColor u-tSpace-xl'>请勿越权使用.</p>
</div>
</div>
</body>