From 59b9a39423a02049e073ec44b7c6ab0c3f834a5f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 17 Nov 2015 22:51:06 +0100 Subject: [PATCH] Show add button just for agents. --- app/assets/javascripts/app/controllers/ticket_overview.coffee | 1 + .../app/views/agent_ticket_view/navbar_vertical.jst.eco | 2 ++ 2 files changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/controllers/ticket_overview.coffee b/app/assets/javascripts/app/controllers/ticket_overview.coffee index 9435f202b..77c6a1e83 100644 --- a/app/assets/javascripts/app/controllers/ticket_overview.coffee +++ b/app/assets/javascripts/app/controllers/ticket_overview.coffee @@ -128,6 +128,7 @@ class Navbar extends App.Controller items = App.OverviewIndexCollection.get() @html App.view("agent_ticket_view/navbar#{ if @vertical then '_vertical' }") items: items + isAgent: @isRole('Agent') while @clone.width() > @tabsHolder.width() @tabClone.not('.hide').last().addClass('hide') diff --git a/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco b/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco index 021189917..c005f1001 100644 --- a/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco +++ b/app/assets/javascripts/app/views/agent_ticket_view/navbar_vertical.jst.eco @@ -21,9 +21,11 @@ <% end %> +<% if @isAgent: %> <%- @Icon('plus') %> +<% end %> <% if @items: %>
<% for item in @items: %>