更新 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> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Protected map — 快点</title> <title>受保护 — 快点</title>
<%= editor_stylesheet_link_tag 'password_protected.css' %> <%= editor_stylesheet_link_tag 'password_protected.css' %>
</head> </head>
@ -11,18 +11,18 @@
<div class='PublicPage-container'> <div class='PublicPage-container'>
<div class='PublicPage-header'> <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"> <img src="<%= image_path "layout/carto-logo.svg" %>" alt="CARTO">
</a> </a>
</div> </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'> <div class='PublicPage-form'>
<%= form_tag "embed_protected?#{request.query_string}", method: :post do %> <%= form_tag "embed_protected?#{request.query_string}", method: :post do %>
<div class='PublicPage-field-withTooltip'> <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? %> <%- if flash[:error].present? %>
<div class="PublicPage-inputTooltip CDB-InfoTooltip CDB-InfoTooltip--left u-lSpace--xl is-error"> <div class="PublicPage-inputTooltip CDB-InfoTooltip CDB-InfoTooltip--left u-lSpace--xl is-error">
@ -34,7 +34,7 @@
<% end %> <% end %>
</div> </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>
</div> </div>
</body> </body>