Products.CMFPlone/plip-1486-redirection: Update template

Stephan Klinger <jenkins-z4DKO/[email protected]>
Newsgroups gmane.comp.web.zope.plone.cvs
Message-ID <[email protected]>
Repository: Products.CMFPlone
Branch: refs/heads/plip-1486-redirection
Date: 2017-07-10T09:31:40+03:00
Author: Stephan Klinger (staeff) <[email protected]>
Commit: https://github.com/plone/Products.CMFPlone/commit/08cc658e0786d055020eebd5c08c0ec02418023f

Update template

Files changed:
M Products/CMFPlone/controlpanel/browser/redirects-controlpanel.pt

diff --git a/Products/CMFPlone/controlpanel/browser/redirects-controlpanel.pt b/Products/CMFPlone/controlpanel/browser/redirects-controlpanel.pt
index 146451d7c..284a009bd 100644
--- a/Products/CMFPlone/controlpanel/browser/redirects-controlpanel.pt
+++ b/Products/CMFPlone/controlpanel/browser/redirects-controlpanel.pt
@@ -22,14 +22,11 @@
             <tr tal:repeat="error view/errors"
                 style="vertical-align: top">
               <td nowrap="nowrap">
-                <tal:block i18n:translate="label_bulk_upload_line">Line</tal:block>
-                <span tal:replace="error/line_number" />
+                <tal:block i18n:translate="label_bulk_upload_line">Line</tal:block> ${error/line_number}
                 <tal:block i18n:translate="label_bulk_upload_line_suffix">:</tal:block>
               </td>
-              <td>
-                <code tal:content="error/line" />
-              </td>
-              <td tal:content="error/message" />
+              <td>${error/line}</td>
+              <td>${error/message}</td>
             </tr>
           </table>
         </dd>
@@ -101,12 +98,12 @@
 
           <tal:redirects repeat="redirect view/redirects">
             <div>
-              <input type="checkbox"
-                     class="noborder"
-                     name="redirects:tuple"
-                     tal:attributes="value redirect/redirect" />
-
-              <span tal:replace="redirect/path" /> &rarr; <span tal:replace="redirect/redirect-to" />
+              <input
+                  type="checkbox"
+                  class="noborder"
+                  name="redirects:tuple"
+                  value="${redirect/redirect}" />
+              ${redirect/path} &rarr; ${redirect/redirect-to}
             </div>
           </tal:redirects>
 



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.