First i18n support.
This commit is contained in:
parent
dde0940049
commit
368106d07b
1 changed files with 21 additions and 11 deletions
|
@ -1,5 +1,15 @@
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
|
<div class="row">
|
||||||
|
<div class="span8">
|
||||||
<h1><%= @ticket.title %> <small><%= @ticket.number %></small></h1>
|
<h1><%= @ticket.title %> <small><%= @ticket.number %></small></h1>
|
||||||
|
</div>
|
||||||
|
<div class="span4 keepright">
|
||||||
|
<%= @ticket.group.name %>
|
||||||
|
<%= @ticket.ticket_state.name %>
|
||||||
|
<%= @ticket.ticket_priority.name %>
|
||||||
|
<%= @ticket.humanTime %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row ticket-answer">
|
<div class="row ticket-answer">
|
||||||
|
@ -13,7 +23,8 @@
|
||||||
|
|
||||||
<div class="span8 well-muted article-message <% if article.internal is true: %> internal<% end %>">
|
<div class="span8 well-muted article-message <% if article.internal is true: %> internal<% end %>">
|
||||||
<% if article.from: %>
|
<% if article.from: %>
|
||||||
<strong title="From: <%= article.from %>"><%= article.from %></strong>
|
<div>
|
||||||
|
<strong title="<%= T('From') %>: <%= article.from %>"><%= article.from %></strong>
|
||||||
<% if article.actions: %>
|
<% if article.actions: %>
|
||||||
<% for action in article.actions: %>
|
<% for action in article.actions: %>
|
||||||
-
|
-
|
||||||
|
@ -21,26 +32,25 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
- <%= article.humanTime %> ago
|
- <%= article.humanTime %> ago
|
||||||
<br/>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if article.to: %>
|
<% if article.to: %>
|
||||||
<span title="To: <%= article.to %>"><%= article.to %></span>
|
<div title="<%= T('To') %>: <%= article.to %>"><%= article.to %></div>
|
||||||
<br/>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if article.cc: %>
|
<% if article.cc: %>
|
||||||
<span title="Cc: <%= article.cc %>"><%= article.cc %></span>
|
<div title="<%= T('Cc') %>: <%= article.cc %>"><%= article.cc %></div>
|
||||||
<br/>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if article.subject: %>
|
<% if article.subject: %>
|
||||||
<span title="Subject: <%= article.subject %>"><%= article.subject %></span>
|
<div title="<%= T('Subject') %>: <%= article.subject %>"><%= article.subject %></div>
|
||||||
<br/>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if article.attachments: %>
|
<% if article.attachments: %>
|
||||||
|
<div>
|
||||||
<% for attachment in article.attachments: %>
|
<% for attachment in article.attachments: %>
|
||||||
<a href="ticket_attachment/<%= attachment.id %>" target="_blank" data-type="attachment" class="" title="<%= attachment.size %>"><%= attachment.filename %></a>
|
<a href="ticket_attachment/<%= attachment.id %>" target="_blank" data-type="attachment" class="" title="<%= attachment.size %>"><%= attachment.filename %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<br/>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<hr/>
|
||||||
<div style="white-space:pre-wrap;"><%- window.linkify( article.body.trim() ) %></div>
|
<div style="white-space:pre-wrap;"><%- window.linkify( article.body.trim() ) %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,7 +69,7 @@
|
||||||
|
|
||||||
<div class="keepleft" id="file-uploader"></div>
|
<div class="keepleft" id="file-uploader"></div>
|
||||||
|
|
||||||
<input type="submit" class="btn btn-primary submit" value="submit">
|
<button type="submit" class="btn btn-primary submit"><%= T('Submit') %></button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue