Improved code layout.

This commit is contained in:
Martin Edenhofer 2018-04-05 04:58:53 +02:00
parent 050f5527e6
commit f710f8f7ad
11 changed files with 11 additions and 11 deletions

View file

@ -6,7 +6,7 @@ Aktualizován ticket (#{ticket.title})
Ticket (#{ticket.title}) byl aktualizován uživatelem "<b>#{current_user.longname}</b>". Ticket (#{ticket.title}) byl aktualizován uživatelem "<b>#{current_user.longname}</b>".
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -6,7 +6,7 @@ Ticket aktualisiert (#{ticket.title})
Ticket (#{ticket.title}) wurde von "<b>#{current_user.longname}</b>" aktualisiert. Ticket (#{ticket.title}) wurde von "<b>#{current_user.longname}</b>" aktualisiert.
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -6,7 +6,7 @@ Updated Ticket (#{ticket.title})
Ticket (#{ticket.title}) has been updated by "<b>#{current_user.longname}</b>". Ticket (#{ticket.title}) has been updated by "<b>#{current_user.longname}</b>".
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -6,7 +6,7 @@ Ticket Mis à jour (#{ticket.title})
Le ticket (#{ticket.title}) a été mis à jour par "<b>#{current_user.longname}</b>". Le ticket (#{ticket.title}) a été mis à jour par "<b>#{current_user.longname}</b>".
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -6,7 +6,7 @@ Chamado atualizado (#{ticket.title})
O chamado (#{ticket.title}) foi atualizado por "<b>#{current_user.longname}</b>". O chamado (#{ticket.title}) foi atualizado por "<b>#{current_user.longname}</b>".
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -6,7 +6,7 @@
工单 (#{ticket.title}) 已被 "<b>#{current_user.longname}</b>" 更新. 工单 (#{ticket.title}) 已被 "<b>#{current_user.longname}</b>" 更新.
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -6,7 +6,7 @@
工單 (#{ticket.title}) 已被 "<b>#{current_user.longname}</b>" 更新. 工單 (#{ticket.title}) 已被 "<b>#{current_user.longname}</b>" 更新.
</div> </div>
<br> <br>
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<div> <div>
#{t('Changes')}:<br> #{t('Changes')}:<br>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>

View file

@ -1,6 +1,6 @@
# #{ticket.title} # #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: Updated by #{current_user.longname} at #{ticket.updated_at}_ _<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: Updated by #{current_user.longname} at #{ticket.updated_at}_
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>
* <%= t key %>: <%= h value[0] %> -> <%= h value[1] %> * <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %> <% end %>

View file

@ -1,6 +1,6 @@
# #{ticket.title} # #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: Atualizado por #{current_user.longname} em #{ticket.updated_at}_ _<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: Atualizado por #{current_user.longname} em #{ticket.updated_at}_
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>
* <%= t key %>: <%= h value[0] %> -> <%= h value[1] %> * <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %> <% end %>

View file

@ -1,6 +1,6 @@
# #{ticket.title} # #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 更新了_ _<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 更新了_
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>
* <%= t key %>: <%= h value[0] %> -> <%= h value[1] %> * <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %> <% end %>

View file

@ -1,6 +1,6 @@
# #{ticket.title} # #{ticket.title}
_<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 更新了_ _<#{config.http_type}://#{config.fqdn}/#ticket/zoom/#{ticket.id}|Ticket##{ticket.number}>: 由 #{current_user.longname} 在 #{ticket.updated_at} 更新了_
<% if @objects[:changes] && !@objects[:changes].empty? %> <% if @objects[:changes].present? %>
<% @objects[:changes].each do |key, value| %> <% @objects[:changes].each do |key, value| %>
* <%= t key %>: <%= h value[0] %> -> <%= h value[1] %> * <%= t key %>: <%= h value[0] %> -> <%= h value[1] %>
<% end %> <% end %>