diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index 537415ad3..5ddbd9ee4 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -424,9 +424,9 @@ class Edit extends App.Controller if !@autosaveLast || ( diff && !_.isEmpty( diff ) ) @autosaveLast = currentData @log 'notice', 'form hash changed', diff, currentData - @el.find('.edit-ticket').addClass('form-changed') - @el.find('.edit-ticket').find('.reset-message').show() - @el.find('.edit-ticket').find('.reset-message').removeClass('hide') + @el.find('.ticket-edit').addClass('form-changed') + @el.find('.ticket-edit').find('.reset-message').show() + @el.find('.ticket-edit').find('.reset-message').removeClass('hide') App.TaskManager.update( @task_key, { 'state': currentData }) @interval( update, 3000, 'autosave' ) diff --git a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco index f5a298c93..7c2e70eab 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/article_view.jst.eco @@ -1,16 +1,16 @@ +
<% for article in @articles: %> -
-
+
+
  • <%- @T(article.article_type.name) %>
  • <% if article.article_type.name is 'email': %>
  • <%- @T( 'raw' ) %>
  • <% end %>
-
-
- <% if article.from: %> -
+
+ - <% end %> - <% if article.to: %> -
<%= article.to %>
- <% end %> - <% if article.cc: %> -
<%= article.cc %>
- <% end %> - <% if article.subject: %> -
<%= article.subject %>
- <% end %> - <% if article.attachments: %> -
- <% for attachment in article.attachments: %> - <%= attachment.filename %> <% end %> -
- <% end %> -
<%- article.html %>
+ <% if article.to: %> +
<%= article.to %>
+ <% end %> + <% if article.cc: %> +
<%= article.cc %>
+ <% end %> + <% if article.subject: %> +
<%= article.subject %>
+ <% end %> + <% if article.attachments: %> +
+ <% for attachment in article.attachments: %> + <%= attachment.filename %> + <% end %> +
+ <% end %>
+
<%- article.html %>
<% end %> +
\ No newline at end of file diff --git a/app/assets/javascripts/app/views/ticket_zoom/edit.jst.eco b/app/assets/javascripts/app/views/ticket_zoom/edit.jst.eco index b66883d13..67cf27af3 100644 --- a/app/assets/javascripts/app/views/ticket_zoom/edit.jst.eco +++ b/app/assets/javascripts/app/views/ticket_zoom/edit.jst.eco @@ -1,21 +1,23 @@ -
-
- -
-
-
-

<%- @T('Edit') %> - - <%- @T('Discard your unsaved changes.') %> - -

+
+
+
+ +
+
+
+

<%- @T('Edit') %> + + <%- @T('Discard your unsaved changes.') %> + +

+
+
+
+
+
+ +
+
-
-
-
-
- -
-
-
+
\ No newline at end of file diff --git a/app/assets/stylesheets/zzz.css b/app/assets/stylesheets/zzz.css index e2c9642f4..bbbe66f83 100644 --- a/app/assets/stylesheets/zzz.css +++ b/app/assets/stylesheets/zzz.css @@ -602,10 +602,6 @@ form.form-inline input[type="password"] { } -.edit-ticket { - padding: 4px 14px 10px; - width: 720px; -} .edit { } .edit .form-group { @@ -619,15 +615,11 @@ form.form-inline input[type="password"] { outline: 0; } .edit-title { - } .edit-title small { font-size: 12px; } -.edit-content { - margin-left: 68px; - margin-right: 22px; -} + .delete { background:url("../assets/close.png") no-repeat; @@ -715,16 +707,57 @@ footer { } } -.ticket-answer .avatar { +.avatar { padding-left: 6px; padding-top: 4px; width: 70px; float: left; } -.ticket-answer .avatar ul { +.avatar ul { padding-left: 20px; } +.ticket-article-view { + max-width: 750px; +} + +.ticket-article { + padding: 8px 0 6px 2px; + min-height: 110px; + margin: 2px 0; +} +.ticket-article-item { + border-bottom: 1px solid #eeeeee; +} +.ticket-article-item:last-child { + border-bottom: none; +} +.ticket-article h4 { + margin-top: 2px; + margin-bottom: 6px; +} +.ticket-article.well { + padding: 4px 0 20px 2px; + margin-top: 4px; +} +.ticket-article-meta { + border-bottom: 1px solid #eeeeee; + padding-bottom: 10px; +} +.ticket-article-message { + padding-left: 6px; + padding-top: 4px; + margin-left: 70px; +} +.ticket-edit .ticket-article-message { + padding-right: 40px; +} +.message { + padding-top: 6px; + padding-bottom: 6px; +} + + .ticket-update { width: 100%; } @@ -736,40 +769,6 @@ footer { width: 160px; } -.article { - width: 100%; - - margin-left: 0; - margin-top: 0; - margin-bottom: 10px; - - padding-top: 0; - padding-bottom: 2px; - padding-right: 0; - - border-bottom: 1px solid #eeeeee; -} - -.article-content { - - margin-left: 70px; -} -.article-message { - padding: 4px 2px; -/* - margin-top: 0; - margin-bottom: 6px; - margin-left: 10px; - - padding-top: 10px; - padding-bottom: 8px; - padding-left: 10px; - - margin-left: 70px; - - min-height: 85px; -*/ -} .show_toogle { font-size: 10px; @@ -793,7 +792,7 @@ footer { background-color: #f2dede; border-color: #eed3d7; border: 1px solid #fbeed5; - border-radius: 2px; + border-radius: 4px; } .merged, .merge:hover {