diff --git a/app/assets/javascripts/app/views/popover/organization.jst.eco b/app/assets/javascripts/app/views/popover/organization.jst.eco index c0a1f0fdc..1a25b08b5 100644 --- a/app/assets/javascripts/app/views/popover/organization.jst.eco +++ b/app/assets/javascripts/app/views/popover/organization.jst.eco @@ -1,20 +1,19 @@
-
<% for row in @organizationData: %> <% if @organization[row.name]: %> -
-

<%- @T( row.display ) %>

-
<%- @P( @organization, row.name ) %>
+
+ + <%- @P( @organization, row.name ) %>
<% end %> <% end %>
<% if @organization.members: %>
-

<%- @T('Members') %>

- <% for user in @organization.members: %> -
- <%= user.displayName() %> +
+ + <% for user in @organization.members: %> +
<%= user.displayName() %>
+ <% end %>
- <% end %> <% end %> \ No newline at end of file diff --git a/app/assets/javascripts/app/views/popover/ticket.jst.eco b/app/assets/javascripts/app/views/popover/ticket.jst.eco index 7d78a0677..0e5d3aea2 100644 --- a/app/assets/javascripts/app/views/popover/ticket.jst.eco +++ b/app/assets/javascripts/app/views/popover/ticket.jst.eco @@ -2,36 +2,40 @@ <%- @ticket.iconTitle() %>

-

<%- @T('Agent') %>

-
- <%= @ticket.owner.displayName() %> - <% if @ticket.owner.organization: %> - <%= @ticket.owner.organization.displayName() %> - <% end %> +
+ +
+ <%= @ticket.owner.displayName() %> + <% if @ticket.owner.organization: %> + <%= @ticket.owner.organization.displayName() %> + <% end %> +
-

<%- @T('Customer') %>

-
- <%= @ticket.customer.displayName() %> - <% if @ticket.customer.organization: %> - <%= @ticket.customer.organization.displayName() %> - <% end %> +
+ +
+ <%= @ticket.customer.displayName() %> + <% if @ticket.customer.organization: %> + <%= @ticket.customer.organization.displayName() %> + <% end %> +

-

#

+
<%- @P( @ticket, 'number' ) %>
-

<%- @T( 'Priority' ) %>

+
<%- @P( @ticket, 'priority' ) %>
-

<%- @T( 'Created' ) %>

+
<%- @P( @ticket, 'created_at' ) %>
-

<%- @T( 'Group' ) %>

+
<%- @P( @ticket, 'group' ) %>
\ No newline at end of file diff --git a/app/assets/javascripts/app/views/popover/user.jst.eco b/app/assets/javascripts/app/views/popover/user.jst.eco index ef11cbba0..565648c1e 100644 --- a/app/assets/javascripts/app/views/popover/user.jst.eco +++ b/app/assets/javascripts/app/views/popover/user.jst.eco @@ -5,15 +5,15 @@
<% for row in @userData: %> <% if @user[row.name]: %> -
-

<%- @T( row.display ) %>

-
<%- @P( @user, row.name ) %>
+
+ + <%- @P( @user, row.name ) %>
<% end %> <% end %> <% if !_.isEmpty(@user['accounts']): %> -
-

<%- @T( 'Linked Accounts' ) %>

+
+ <% for account of @user['accounts']: %> <%= account %> <% end %> @@ -21,8 +21,8 @@ <% end %> <% if !_.isEmpty( @user['links'] ): %> <% for link in @user['links']: %> -
-

<%- @T( link['title'] ) %>

+
+ <% for item in link['items']: %> <% if item['url']: %> target="_blank"<% end %>> diff --git a/app/assets/javascripts/app/views/widget/organization.jst.eco b/app/assets/javascripts/app/views/widget/organization.jst.eco index d6ffa474c..4093af271 100644 --- a/app/assets/javascripts/app/views/widget/organization.jst.eco +++ b/app/assets/javascripts/app/views/widget/organization.jst.eco @@ -1,7 +1,8 @@ <% for row in @organizationData: %> diff --git a/app/assets/javascripts/app/views/widget/user.jst.eco b/app/assets/javascripts/app/views/widget/user.jst.eco index df183de32..24c39415c 100644 --- a/app/assets/javascripts/app/views/widget/user.jst.eco +++ b/app/assets/javascripts/app/views/widget/user.jst.eco @@ -1,10 +1,7 @@ -
- + <% for row in @userData: %> <% if @user[row.name] || row.name is 'note': %> <% end %> <% end %> -<% end %> -
+<% end %> \ No newline at end of file diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss index bf8301608..a09ba1273 100644 --- a/app/assets/stylesheets/zammad.css.scss +++ b/app/assets/stylesheets/zammad.css.scss @@ -2572,12 +2572,18 @@ footer { .sidebar-block { margin: 20px 0; - word-wrap: break-word; &:first-child { margin-top: 0; } } + .sidebar-block, + .sidebar-block > * { + @extend .u-textTruncate; + } + .sidebar-block [contenteditable=true] { + white-space: normal; // do no u-textTruncate, we want to edit it inline + } .main + .sidebar { border-right: none; @@ -2741,10 +2747,16 @@ footer { } .popover .user-organization { + @extend .u-textTruncate; margin-bottom: 8px; margin-top: -4px; } + .popover-block { + @extend .sidebar-block; + margin: 10px 0; + } + .popover hr { margin: 8px 0; } @@ -2752,7 +2764,15 @@ footer { .popover .person .organization:before { content: '('; } .popover .person .organization:after { content: ')'; } - .popover .column h3 { + .popover label { + font-size: 13px; + color: #a9bcc4; + font-weight: 200; + text-transform: uppercase; + letter-spacing: 0.07em; + } + + .popover .column label { margin: 8px 0 1px; } @@ -4403,22 +4423,26 @@ footer { position: relative; } +.organizationInfo-avatar { + @extend .userInfo-avatar; + padding: 18px 0 0 18px; +} + .userList { list-style: none; padding: 0; - + li { - @extend .horizontal; - @extend .center; + position: relative; margin: 10px 0; } a { @extend .u-textTruncate; - } - - .avatar { - margin-right: 7px; + position: absolute; + top: 10px; + right: 0px; + left: 48px; } }