Moved to new nav bar.

This commit is contained in:
Martin Edenhofer 2014-07-12 15:20:26 +02:00
parent 6db776e722
commit e209e055d3
5 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,6 @@ class App.DashboardTicket extends App.Controller
constructor: ->
super
@start_page = 1
@navupdate '#'
# set new key
@key = 'ticket_overview_' + @view

View file

@ -2,7 +2,7 @@ class Index extends App.ControllerContent
constructor: ->
super
# check authentication
return if !@authenticate()
@ -88,3 +88,5 @@ class Index extends App.ControllerContent
@el.find( '#sortable-sidebar' ).sortable( dndOptions )
App.Config.set( 'dashboard', Index, 'Routes' )
App.Config.set( 'Dashboard', { prio: 100, parent: '', name: 'Dashboard', target: '#dashboard', role: ['Agent'], class: 'dashboard' }, 'NavBar' )

View file

@ -673,4 +673,4 @@ App.Config.set( 'ticket/view', Index, 'Routes' )
App.Config.set( 'ticket/view/:view', Index, 'Routes' )
#App.Config.set( 'ticket/view/:view/:position/:direction', Router, 'Routes' )
App.Config.set( 'TicketOverview', { prio: 1000, parent: '', name: 'Overviews', target: '#ticket/view', role: ['Agent', 'Customer'] }, 'NavBar' )
App.Config.set( 'TicketOverview', { prio: 1000, parent: '', name: 'Overviews', target: '#ticket/view', role: ['Agent', 'Customer'], class: 'overviews' }, 'NavBar' )

View file

@ -5,8 +5,6 @@ class App.TicketZoom extends App.Controller
# check authentication
return if !@authenticate()
@navupdate '#'
@edit_form = undefined
@ticket_id = params.ticket_id
@article_id = params.article_id
@ -41,6 +39,7 @@ class App.TicketZoom extends App.Controller
@ticket = App.Ticket.retrieve( @ticket.id )
meta.head = @ticket.title
meta.title = '#' + @ticket.number + ' - ' + @ticket.title
meta.class = "level-#{@ticket.priority_id}"
meta
url: =>

View file

@ -5,8 +5,6 @@ class App.UserZoom extends App.Controller
# check authentication
return if !@authenticate()
@navupdate '#'
start = (user) =>
@user = user
@render()
@ -17,6 +15,8 @@ class App.UserZoom extends App.Controller
meta =
url: @url()
id: @user_id
class: "level-1"
if @user
meta.head = @user.displayName()
meta.title = @user.displayName()