From 6ce1e7facfff4f7fc558946056741649924d871c Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 26 Aug 2014 01:34:22 +0200 Subject: [PATCH] Improved markup, QA need to be done by felix. --- .../app/controllers/ticket_zoom.js.coffee | 22 +-- .../views/ticket_zoom/article_view.jst.eco | 132 +++++++++--------- app/assets/stylesheets/zzz.css.erb | 8 ++ 3 files changed, 85 insertions(+), 77 deletions(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index 37017c26b..530eb5b6b 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -629,9 +629,9 @@ class ArticleView extends App.Controller # runntime update if internal - $(e.target).closest('.article-content').find('.text-bubble').addClass('internal') + $(e.target).closest('.ticket-article-item').find('.text-bubble').addClass('internal') else - $(e.target).closest('.article-content').find('.text-bubble').removeClass('internal') + $(e.target).closest('.ticket-article-item').find('.text-bubble').removeClass('internal') show_toogle: (e) -> e.preventDefault() @@ -646,16 +646,16 @@ class ArticleView extends App.Controller more_toogle: (e) -> e.preventDefault() - if !$(e.target).closest('.article-content').find('.article-meta.top').hasClass('hide') - $(e.target).closest('.article-content').find('.more').removeClass('hide') - $(e.target).closest('.article-content').find('.close-details').addClass('hide') - $(e.target).closest('.article-content').find('.article-meta.top').addClass('hide') - $(e.target).closest('.article-content').find('.article-meta.bottom').addClass('hide') + if !$(e.target).closest('.ticket-article-item').find('.article-meta.top').hasClass('hide') + $(e.target).closest('.ticket-article-item').find('.more').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.close-details').addClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.top').addClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.bottom').addClass('hide') else - $(e.target).closest('.article-content').find('.more').addClass('hide') - $(e.target).closest('.article-content').find('.close-details').removeClass('hide') - $(e.target).closest('.article-content').find('.article-meta.top').removeClass('hide') - $(e.target).closest('.article-content').find('.article-meta.bottom').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.more').addClass('hide') + $(e.target).closest('.ticket-article-item').find('.close-details').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.top').removeClass('hide') + $(e.target).closest('.ticket-article-item').find('.article-meta.bottom').removeClass('hide') checkIfSignatureIsNeeded: (type) => 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 fea49a315..f3e0747c1 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,75 +1,75 @@ <% for article in @articles: %>
-
-
-
-
<%- @T('more') %>
-
<%- @T('close details') %>
- -
<%- article.html %>
- - <% if article.attachments: %> -
- <% for attachment in article.attachments: %> - <%= attachment.filename %> - <% end %> -
- <% end %> - <% if article.actions: %> -
- <% for action in article.actions: %> - <%- @T( action.name ) %> - <% end %> -
- <% end %> - + + + +
+
+
<%- article.html %>
+
+ + +
<% end %> diff --git a/app/assets/stylesheets/zzz.css.erb b/app/assets/stylesheets/zzz.css.erb index e5c4553ea..c89ebc5f3 100644 --- a/app/assets/stylesheets/zzz.css.erb +++ b/app/assets/stylesheets/zzz.css.erb @@ -426,6 +426,10 @@ table { overflow-y: scroll; } +.inactive { + color: #ddd !important; +} + /* #content > *:not(.active) { display: none !important; @@ -2382,6 +2386,10 @@ footer { margin-bottom: 33px; } + .article-content-meta { + margin-left: 55px; + margin-right: 55px; + } .article-content { margin-right: 55px; }