Просмотр исходного кода

Improved markup of notification templates.

Martin Edenhofer 8 лет назад
Родитель
Сommit
1c7dee3e28

+ 4 - 4
app/views/mailer/password_change/de.html.erb

@@ -1,9 +1,9 @@
 Dein <%= c 'product_name' %> Passwort wurde geändert
 
-<p>Hallo <%= d 'user.firstname' %>,</p>
+<div>Hallo <%= d 'user.firstname' %>,</div>
 <br>
-<p>das Passwort für Dein <%= c 'product_name' %> Account <b><%= d 'user.login' %></b> wurde kürzlich geändert.</p>
+<div>das Passwort für Dein <%= c 'product_name' %> Account <b><%= d 'user.login' %></b> wurde kürzlich geändert.</div>
 <br>
-<p>Diese Aktivität ist Dir nicht bekannt? In diesen Fall kontaktiere Deinen System-Administrator.</p>
+<div>Diese Aktivität ist Dir nicht bekannt? In diesen Fall kontaktiere Deinen System-Administrator.</div>
 <br>
-<p>Dein <%= c 'product_name' %> Team</p>
+<div>Dein <%= c 'product_name' %> Team</div>

+ 7 - 9
app/views/mailer/password_reset/de.html.erb

@@ -1,17 +1,15 @@
 Zurücksetzen Deines <%= c 'product_name' %> Passworts
 
-<p>
-Hallo <%= d 'user.firstname' %>,
-</p>
+<div>Hallo <%= d 'user.firstname' %>,</div>
 <br>
-<p>wir haben eine Anfrage zum Zurücksetzen des Passworts für <%= c 'product_name' %> Account <b><%= d 'user.login' %></b> erhalten.</p>
+<div>wir haben eine Anfrage zum Zurücksetzen des Passworts für <%= c 'product_name' %> Account <b><%= d 'user.login' %></b> erhalten.</div>
 <br>
-<p>Wenn Sie Ihr Passwort zurückzusetzen wollen, klicken Sie auf den unten stehenden Link (oder kopieren Sie die URL in den Browser einfügen):</p>
+<div>Wenn Sie Ihr Passwort zurückzusetzen wollen, klicken Sie auf den unten stehenden Link (oder kopieren Sie die URL in den Browser einfügen):</div>
 <br>
-<p><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %></a></p>
+<div><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %></a></div>
 <br>
-<p>Dieser Link führt Sie zu einer Seite, auf der Sie Ihr Passwort ändern können.</p>
+<div>Dieser Link führt Sie zu einer Seite, auf der Sie Ihr Passwort ändern können.</div>
 <br>
-<p>Wenn Sie Ihr Passwort nicht zurücksetzen wollen, ignorieren Sie diese Meldung. Das Passwort bleibt unverändert.</p>
+<div>Wenn Sie Ihr Passwort nicht zurücksetzen wollen, ignorieren Sie diese Meldung. Das Passwort bleibt unverändert.</div>
 <br>
-<p>Dein <%= c 'product_name' %> Team</p>
+<div>Dein <%= c 'product_name' %> Team</div>

+ 7 - 7
app/views/mailer/password_reset/en.html.erb

@@ -1,15 +1,15 @@
 Reset your <%= c 'product_name' %> password
 
-<p>Hi <%= d 'user.firstname' %>,</p>
+<div>Hi <%= d 'user.firstname' %>,</div>
 <br>
-<p>We received a request to reset the password for your <%= c 'product_name' %> account <b><%= d 'user.login' %></b>.</p>
+<div>We received a request to reset the password for your <%= c 'product_name' %> account <b><%= d 'user.login' %></b>.</div>
 <br>
-<p>If you want to reset your password, click on the link below (or copy and paste the URL into your browser):</p>
+<div>If you want to reset your password, click on the link below (or copy and paste the URL into your browser):</div>
 <br>
-<p><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %></a></p>
+<div><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#password_reset_verify/<%= d 'token.name' %></a></div>
 <br>
-<p>This link takes you to a page where you can change your password.</p>
+<div>This link takes you to a page where you can change your password.</div>
 <br>
-<p>If you don't want to reset your password, please ignore this message. Your password will not be reseted.</p>
+<div>If you don't want to reset your password, please ignore this message. Your password will not be reseted.</div>
 <br>
-<p>Your <%= c 'product_name' %> Team</p>
+<div>Your <%= c 'product_name' %> Team</div>

+ 4 - 4
app/views/mailer/signup/de.html.erb

@@ -1,9 +1,9 @@
 Bestätigung des <%= c 'product_name' %> Accounts, <%= d 'user.firstname' %> <%= d 'user.lastname' %>
 
-<p>Hallo <%= d 'user.firstname' %>,</p>
+<div>Hallo <%= d 'user.firstname' %>,</div>
 <br>
-<p>bestätige Deine E-Mail-Adresse um Deine Registrierung bei <%= c 'product_name' %> abzuschließen. Es ist einfach - klick einfach auf den Link unten.</p>
+<div>bestätige Deine E-Mail-Adresse um Deine Registrierung bei <%= c 'product_name' %> abzuschließen. Es ist einfach - klick einfach auf den Link unten.</div>
 <br>
-<p><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %></a></p>
+<div><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %></a></div>
 <br>
-<p>Dein <%= c 'product_name' %> Team</p>
+<div>Dein <%= c 'product_name' %> Team</div>

+ 4 - 4
app/views/mailer/signup/en.html.erb

@@ -1,9 +1,9 @@
 Confirm your <%= c 'product_name' %> account, <%= d 'user.firstname' %> <%= d 'user.lastname' %>
 
-<p>Hi <%= d 'user.firstname' %>,</p>
+<div>Hi <%= d 'user.firstname' %>,</div>
 <br>
-<p>Confirm your email address to complete your <%= c 'product_name' %> account. It's easy, just click the link below.</p>
+<div>Confirm your email address to complete your <%= c 'product_name' %> account. It's easy, just click the link below.</div>
 <br>
-<p><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %></a></p>
+<div><a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %>"><%= c 'http_type' %>://<%= c 'fqdn' %>/#email_verify/<%= d 'token.name' %></a></div>
 <br>
-<p>Your <%= c 'product_name' %> Team</p>
+<div>Your <%= c 'product_name' %> Team</div>

+ 4 - 4
app/views/mailer/test_ticket/de.html.erb

@@ -1,9 +1,9 @@
 Test Ticket!
 
-<p>Hallo <%= d 'agent.firstname' %>,</p>
+<div>Hallo <%= d 'agent.firstname' %>,</div>
 <br>
-<p>dies ist ein <b>Test Ticket</b>. Ich bin ein Kunde und benötige Hilfe! :)</p>
+<div>dies ist ein <b>Test Ticket</b>. Ich bin ein Kunde und benötige Hilfe! :)</div>
 <br>
-<p><%= d 'customer.fullname' %></p>
+<div><%= d 'customer.fullname' %></div>
 <br>
-<p>Das Zammad Projekt</p>
+<div>Das Zammad Projekt</div>

+ 4 - 4
app/views/mailer/test_ticket/en.html.erb

@@ -1,9 +1,9 @@
 Test Ticket!
 
-<p>Dear <%= d 'agent.firstname' %>,</p>
+<div>Dear <%= d 'agent.firstname' %>,</div>
 <br>
-<p>This is a <b>test ticket</b>. I'm a customer and I need some help! :)</p>
+<div>This is a <b>test ticket</b>. I'm a customer and I need some help! :)</div>
 <br>
-<p><%= d 'customer.fullname' %></p>
+<div><%= d 'customer.fullname' %></div>
 <br>
-<p>The Zammad Project</p>
+<div>The Zammad Project</div>

+ 8 - 8
app/views/mailer/ticket_create/de.html.erb

@@ -1,24 +1,24 @@
 Neues Ticket (<%= d 'ticket.title' %>)
 
-<p>Hallo <%= d 'recipient.firstname' %>,</p>
+<div>Hallo <%= d 'recipient.firstname' %>,</div>
 <br>
-<p>es wurde ein neues Ticket (<%= d 'ticket.title' %>) von "<b><%= d 'current_user.longname' %></b>" erstellt.</p>
+<div>es wurde ein neues Ticket (<%= d 'ticket.title' %>) von "<b><%= d 'current_user.longname' %></b>" erstellt.</div>
 <br>
-<p>
+<div>
 <%= t 'Group' %>: <%= d 'ticket.group.name' %><br>
 <%= t 'Owner' %>: <%= d 'ticket.owner.fullname' %><br>
 <%= t 'State' %>: <%= t d 'ticket.state.name' %><br>
-</p>
+</div>
 <br>
 <% if @objects[:article] %>
-  <p>
+  <div>
   <%= t 'Information' %>:
   <blockquote type="cite">
   <%= a_html 'article' %>
   </blockquote>
-  </p>
+  </div>
 <% end %>
 <br>
-<p>
+<div>
   <a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#ticket/zoom/<%= d 'ticket.id' %>" target="zammad_app"><%= t 'View this in Zammad' %></a>
-</p>
+</div>

+ 8 - 8
app/views/mailer/ticket_create/en.html.erb

@@ -1,24 +1,24 @@
 New Ticket (<%= d 'ticket.title' %>)
 
-<p>Hi <%= d 'recipient.firstname' %>,</p>
+<div>Hi <%= d 'recipient.firstname' %>,</div>
 <br>
-<p>A new ticket (<%= d 'ticket.title' %>) has been created by "<b><%= d 'current_user.longname' %></b>".</p>
+<div>A new ticket (<%= d 'ticket.title' %>) has been created by "<b><%= d 'current_user.longname' %></b>".</div>
 <br>
-<p>
+<div>
 <%= t 'Group' %>: <%= d 'ticket.group.name' %><br>
 <%= t 'Owner' %>: <%= d 'ticket.owner.fullname' %><br>
 <%= t 'State' %>: <%= t d 'ticket.state.name' %><br>
-</p>
+</div>
 <br>
 <% if @objects[:article] %>
-  <p>
+  <div>
   <%= t 'Information' %>:
   <blockquote type="cite">
   <%= a_html 'article' %>
   </blockquote>
-  </p>
+  </div>
 <% end %>
 <br>
-<p>
+<div>
   <a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#ticket/zoom/<%= d 'ticket.id' %>" target="zammad_app"><%= t 'View this in Zammad' %></a>
-</p>
+</div>

+ 6 - 6
app/views/mailer/ticket_escalation/de.html.erb

@@ -1,18 +1,18 @@
 Ticket ist eskaliert (<%= d 'ticket.title' %>)
 
-<p>Hallo <%= d 'recipient.firstname' %>,</p>
+<div>Hallo <%= d 'recipient.firstname' %>,</div>
 <br>
-<p>Ticket (<%= d 'ticket.title' %>) von "<b><%= d 'ticket.customer.longname' %></b>" ist seit "<%= d 'ticket.escalation_time' %>" eskaliert!</p>
+<div>Ticket (<%= d 'ticket.title' %>) von "<b><%= d 'ticket.customer.longname' %></b>" ist seit "<%= d 'ticket.escalation_time' %>" eskaliert!</div>
 <br>
 <% if @objects[:article] %>
-  <p>
+  <div>
   <%= t 'Information' %>:
   <blockquote type="cite">
   <%= a_html 'article' %>
   </blockquote>
-  </p>
+  </div>
 <% end %>
 <br>
-<p>
+<div>
   <a href="<%= c 'http_type' %>://<%= c 'fqdn' %>/#ticket/zoom/<%= d 'ticket.id' %>" target="zammad_app"><%= t 'View this in Zammad' %></a>
-</p>
+</div>

Некоторые файлы не были показаны из-за большого количества измененных файлов