diff --git a/app/assets/javascripts/app/controllers/layout_ref.js.coffee b/app/assets/javascripts/app/controllers/layout_ref.js.coffee index 82cee0451..7d159b806 100644 --- a/app/assets/javascripts/app/controllers/layout_ref.js.coffee +++ b/app/assets/javascripts/app/controllers/layout_ref.js.coffee @@ -743,4 +743,15 @@ class LocalModalRef extends App.ControllerContent App.Config.set( 'layout_ref/local_modal', LocalModalRef, 'Routes' ) +class loadingPlaceholderRef extends App.ControllerContent + + constructor: -> + super + @render() + + render: -> + @html App.view('layout_ref/loading_placeholder')() + +App.Config.set( 'layout_ref/loading_placeholder', loadingPlaceholderRef, 'Routes' ) + App.Config.set( 'LayoutRef', { prio: 1700, parent: '#current_user', name: 'Layout Reference', target: '#layout_ref', role: [ 'Admin' ] }, 'NavBarRight' ) \ No newline at end of file diff --git a/app/assets/javascripts/app/views/layout_ref/index.jst.eco b/app/assets/javascripts/app/views/layout_ref/index.jst.eco index 8b8b8928f..e261f2e0b 100644 --- a/app/assets/javascripts/app/views/layout_ref/index.jst.eco +++ b/app/assets/javascripts/app/views/layout_ref/index.jst.eco @@ -20,6 +20,7 @@
  • Setup Wizard
  • Richtext
  • Local Modal
  • +
  • Loading Placeholder
  • \ No newline at end of file diff --git a/app/assets/javascripts/app/views/layout_ref/loading_placeholder.jst.eco b/app/assets/javascripts/app/views/layout_ref/loading_placeholder.jst.eco new file mode 100644 index 000000000..91d4063bd --- /dev/null +++ b/app/assets/javascripts/app/views/layout_ref/loading_placeholder.jst.eco @@ -0,0 +1,3 @@ +
    +

    Loading Ticket

    +
    \ No newline at end of file diff --git a/app/assets/stylesheets/zammad.css.scss b/app/assets/stylesheets/zammad.css.scss index 72e531966..f1537070b 100644 --- a/app/assets/stylesheets/zammad.css.scss +++ b/app/assets/stylesheets/zammad.css.scss @@ -766,6 +766,18 @@ textarea, z-index: 1; } +.loadingPlaceholder { + @extend .centered; + + .icon { + margin: -5px 14px 0 0; + } + + h2 { + margin: 0; + } +} + .form-stacked .checkbox label { color: inherit; font-size: 13px; @@ -774,7 +786,6 @@ textarea, letter-spacing: inherit; } - .pagination { margin: 0; }