helpdesk 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/helpdesk/admin/tickets.js +1 -13
  3. data/app/assets/javascripts/helpdesk/application.js +0 -1
  4. data/app/assets/stylesheets/helpdesk/admin.css +0 -2
  5. data/app/assets/stylesheets/helpdesk/imports.css.scss +34 -0
  6. data/app/controllers/helpdesk/admin/base_controller.rb +2 -2
  7. data/app/controllers/helpdesk/admin/faqs_controller.rb +2 -7
  8. data/app/controllers/helpdesk/admin/subscribers_controller.rb +2 -8
  9. data/app/controllers/helpdesk/admin/ticket_types_controller.rb +3 -9
  10. data/app/controllers/helpdesk/admin/tickets_controller.rb +9 -21
  11. data/app/controllers/helpdesk/application_controller.rb +9 -4
  12. data/app/controllers/helpdesk/dashboard_controller.rb +2 -2
  13. data/app/controllers/helpdesk/faqs_controller.rb +80 -2
  14. data/app/controllers/helpdesk/subscribers_controller.rb +41 -18
  15. data/app/controllers/helpdesk/tickets_controller.rb +15 -20
  16. data/app/helpers/helpdesk/admin/tickets_helper.rb +0 -9
  17. data/app/helpers/helpdesk/helpdesk_helper.rb +6 -30
  18. data/app/helpers/helpdesk/tickets_helper.rb +0 -3
  19. data/app/mailers/helpdesk/comment_by_requester_confirmation +38 -0
  20. data/app/mailers/helpdesk/notifications_mailer.rb +1 -2
  21. data/app/models/helpdesk/comment.rb +5 -11
  22. data/app/models/helpdesk/faq.rb +1 -1
  23. data/app/models/helpdesk/ticket.rb +24 -27
  24. data/app/models/helpdesk/ticket_type.rb +4 -4
  25. data/app/views/helpdesk/admin/faqs/_form.html.haml +2 -2
  26. data/app/views/helpdesk/admin/faqs/edit.html.haml +9 -6
  27. data/app/views/helpdesk/admin/faqs/index.html.haml +2 -2
  28. data/app/views/helpdesk/admin/faqs/new.html.haml +1 -2
  29. data/app/views/helpdesk/admin/faqs/show.html.haml +1 -1
  30. data/app/views/helpdesk/admin/subscribers/edit.html.haml +1 -2
  31. data/app/views/helpdesk/admin/subscribers/index.html.haml +2 -3
  32. data/app/views/helpdesk/admin/subscribers/new.html.haml +1 -2
  33. data/app/views/helpdesk/admin/ticket_types/edit.html.haml +1 -2
  34. data/app/views/helpdesk/admin/ticket_types/index.html.haml +1 -1
  35. data/app/views/helpdesk/admin/ticket_types/new.html.haml +1 -2
  36. data/app/views/helpdesk/admin/tickets/_form.html.haml +9 -9
  37. data/app/views/helpdesk/admin/tickets/_ticket.html.haml +16 -15
  38. data/app/views/helpdesk/admin/tickets/edit.html.haml +5 -5
  39. data/app/views/helpdesk/admin/tickets/index.html.haml +5 -7
  40. data/app/views/helpdesk/admin/tickets/list.html.haml +2 -3
  41. data/app/views/helpdesk/admin/tickets/new.html.haml +2 -2
  42. data/app/views/helpdesk/admin/tickets/show.html.haml +9 -9
  43. data/app/views/helpdesk/faqs/_form.html.erb +33 -0
  44. data/app/views/helpdesk/faqs/edit.html.erb +6 -0
  45. data/app/views/helpdesk/faqs/index.html.erb +29 -0
  46. data/app/views/helpdesk/faqs/new.html.erb +5 -0
  47. data/app/views/helpdesk/faqs/show.html.erb +25 -0
  48. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_confirmation.pl.html.haml +32 -0
  49. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_notification.pl.html.haml +28 -0
  50. data/app/views/helpdesk/notifications_mailer/comment_by_requester_confirmation.pl.html.haml +32 -0
  51. data/app/views/helpdesk/notifications_mailer/comment_by_requester_notification.pl.html.haml +42 -0
  52. data/app/views/helpdesk/notifications_mailer/ticket_created_confirmation.pl.html.haml +34 -0
  53. data/app/views/helpdesk/notifications_mailer/ticket_created_notification.pl.html.haml +42 -0
  54. data/app/views/helpdesk/tickets/_form.html.haml +11 -11
  55. data/app/views/helpdesk/tickets/_ticket.html.haml +10 -10
  56. data/app/views/helpdesk/tickets/index.html.haml +2 -3
  57. data/app/views/helpdesk/tickets/new.html.haml +2 -2
  58. data/app/views/helpdesk/tickets/show.html.haml +12 -16
  59. data/app/views/layouts/helpdesk/_topmenu.html.haml +21 -27
  60. data/app/views/layouts/helpdesk/_topuser.html.haml +9 -32
  61. data/app/views/layouts/helpdesk/admin.html.haml +6 -14
  62. data/app/views/layouts/helpdesk/user.html.haml +6 -14
  63. data/config/initializers/simple_form.rb +144 -85
  64. data/config/locales/helpdesk.en.yml +3 -107
  65. data/config/locales/helpdesk.pl.yml +7 -46
  66. data/config/routes.rb +5 -6
  67. data/db/migrate/20130521105605_create_helpdesk_ticket_types.rb +1 -21
  68. data/db/migrate/20130521132216_add_tr_class_to_ticket_type.rb +5 -0
  69. data/lib/generators/helpdesk/install_generator.rb +0 -11
  70. data/lib/generators/helpdesk/templates/README +9 -17
  71. data/lib/generators/helpdesk/templates/helpdesk.rb +6 -9
  72. data/lib/helpdesk.rb +4 -4
  73. data/lib/helpdesk/engine.rb +0 -8
  74. data/lib/helpdesk/version.rb +1 -1
  75. metadata +28 -137
  76. data/app/assets/stylesheets/helpdesk/imports.css.sass +0 -0
  77. data/app/views/helpdesk/faqs/index.html.haml +0 -20
  78. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_confirmation.html.haml +0 -15
  79. data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_notification.html.haml +0 -19
  80. data/app/views/helpdesk/notifications_mailer/comment_by_requester_confirmation.html.haml +0 -16
  81. data/app/views/helpdesk/notifications_mailer/comment_by_requester_notification.html.haml +0 -27
  82. data/app/views/helpdesk/notifications_mailer/ticket_created_confirmation.html.haml +0 -16
  83. data/app/views/helpdesk/notifications_mailer/ticket_created_notification.html.haml +0 -21
  84. data/app/views/layouts/mailer_layout.html.haml +0 -20
  85. data/config/initializers/globalize.rb +0 -4
@@ -0,0 +1,32 @@
1
+ !!!
2
+ %html
3
+ %body
4
+ %div
5
+ %h1
6
+ #{@comment.author.send Helpdesk.display_user.to_sym}, dziękujemy za przesłanie odpowiedzi do zgłoszenia
7
+ %div
8
+ %p
9
+ Odpowiedź dotyczyła Twojego zgłoszenia -
10
+ = @comment.ticket.subject
11
+ %p
12
+ Treść odpowiedzi:
13
+ %br
14
+ = simple_format(@comment.comment)
15
+ %p
16
+ Pod tym adresem możesz śledzić zgłoszenie:
17
+ %a{:href=>ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)}<>
18
+ = ticket_url(:locale=>I18n.locale, :id=>@comment.ticket)
19
+ %br
20
+ Cenimy Twój czas, dlatego staramy się odpowiadać, tak szybko jak to możliwe.
21
+ %p
22
+ Życzymy miłego dnia!
23
+ %br
24
+ = Helpdesk.site_name
25
+ %br
26
+ %a{:href=>Helpdesk.site_address}
27
+ = Helpdesk.site_address
28
+ %div
29
+ Ta wiadomość została wygenrowana automatycznie. Nie odpowiadaj na nią. Jeśli nie zainicjowałeś akcji wysyłania tej wiadomości zgłoś to nam
30
+ %a{:href=>root_url}
31
+ klikając tutaj.
32
+
@@ -0,0 +1,42 @@
1
+ !!!
2
+ %html
3
+ %body
4
+ %div
5
+ %h1
6
+ Pojawiła się nowa odpowiedź do zgłoszenie:
7
+ = @comment.ticket.ticket_type.title
8
+ %div.content
9
+ %p
10
+ Treść wysłana:
11
+ %br
12
+ = simple_format(@comment.comment)
13
+ %br
14
+ %br
15
+ %p
16
+ Zgłaszający:
17
+ %br
18
+ = @comment.author.send Helpdesk.display_user.to_sym
19
+ = @comment.author.email
20
+ %br
21
+ %br
22
+ %p
23
+ Pod tym adresem możesz zobaczyć tą odpowiedź na zgłoszenie:
24
+ %a{:href=>admin_ticket_url(:locale=>I18n.locale, :id=>@comment.ticket, :anchor=>"comment#{@comment.id}")}<>
25
+ = admin_ticket_url(:locale=>I18n.locale, :id=>@comment.ticket,:anchor=>"comment#{@comment.id}")
26
+ %p
27
+ Życzymy miłego dnia!
28
+ %br
29
+ = Helpdesk.site_name
30
+ %br
31
+ %a{:href=>Helpdesk.site_address}
32
+ = Helpdesk.site_address
33
+ %div
34
+ Ta wiadomość została wygenrowana automatycznie. Nie odpowiadaj na nią. Jeśli nie zainicjowałeś akcji wysyłania tej wiadomości zgłoś to nam
35
+ %a{:href=>root_url}
36
+ klikając tutaj.
37
+
38
+
39
+
40
+
41
+
42
+
@@ -0,0 +1,34 @@
1
+ !!!
2
+ %html
3
+ %body
4
+ %div
5
+ %h1
6
+ #{@ticket.requester.send Helpdesk.display_user.to_sym}, dziękujemy za przesłanie zgłoszenia
7
+ %div
8
+ %p
9
+ Temat Twojego zgłoszenia to
10
+ = @ticket.subject
11
+ %p
12
+ Treść zgłoszenia:
13
+ %br
14
+ = simple_format(@ticket.description)
15
+ %br
16
+ %br
17
+ %p
18
+ Pod tym adresem możesz śledzić status zgłoszenia:
19
+ %a{:href=>ticket_url(:locale=>I18n.locale, :id=>@ticket)}<>
20
+ = ticket_url(:locale=>I18n.locale, :id=>@ticket)
21
+ %br
22
+ Cenimy Twój czas, dlatego staramy się odpowiadać, tak szybko jak to możliwe.
23
+ %p
24
+ Życzymy miłego dnia!
25
+ %br
26
+ = Helpdesk.site_name
27
+ %br
28
+ %a{:href=>Helpdesk.site_address}
29
+ = Helpdesk.site_address
30
+ %div
31
+ Ta wiadomość została wygenrowana automatycznie. Nie odpowiadaj na nią. Jeśli nie zainicjowałeś akcji wysyłania tej wiadomości zgłoś to nam
32
+ %a{:href=>root_url}
33
+ klikając tutaj.
34
+
@@ -0,0 +1,42 @@
1
+ !!!
2
+ %html
3
+ %body
4
+ %div
5
+ %h1
6
+ Pojawiło się nowe zgłoszenie:
7
+ = @ticket.ticket_type.title
8
+ %div.content
9
+ %p
10
+ Treść wysłana:
11
+ %br
12
+ = simple_format(@ticket.description)
13
+ %br
14
+ %br
15
+ %p
16
+ Zgłaszający:
17
+ %br
18
+ = @ticket.requester.name
19
+ = @ticket.requester.email
20
+ %br
21
+ %br
22
+ %p
23
+ Pod tym adresem możesz zobaczyć to zgłoszenie:
24
+ %a{:href=>admin_ticket_url(:locale=>I18n.locale, :id=>@ticket)}<>
25
+ = admin_ticket_url(:locale=>I18n.locale, :id=>@ticket)
26
+ %p
27
+ Życzymy miłego dnia!
28
+ %br
29
+ = Helpdesk.site_name
30
+ %br
31
+ %a{:href=>Helpdesk.site_address}
32
+ = Helpdesk.site_address
33
+ %div
34
+ Ta wiadomość została wygenrowana automatycznie. Nie odpowiadaj na nią. Jeśli nie zainicjowałeś akcji wysyłania tej wiadomości zgłoś to nam
35
+ %a{:href=>root_url}
36
+ klikając tutaj.
37
+
38
+
39
+
40
+
41
+
42
+
@@ -8,29 +8,29 @@
8
8
  - @ticket.errors.full_messages.each do |msg|
9
9
  %li
10
10
  = msg
11
- / = f.input :subject
11
+ / = f.input :subject
12
12
  / = f.input :ticket_type_id, collection: Helpdesk::TicketType.active, include_blank: false
13
13
  %div.subject
14
14
  %input{:value=>@ticket.subject,:name=>"ticket[subject]",:type => "text",:placeholder => t('helpdesk.tickets.subject')}
15
15
  %select{:name=>"ticket[ticket_type_id]"}
16
- - Helpdesk::TicketType.includes(:translations).all.each do |type|
16
+ - SugestionType.all.each do |type|
17
17
  %option{:value=>type.id, selected: type.id == @ticket.ticket_type_id}
18
- = type.title
19
-
18
+ = type.get_name
19
+
20
20
  - if @ticket.new_record?
21
21
  %div.content
22
22
  %textarea{:value=>@ticket.description,:name=>"ticket[description]",:type => "text",:placeholder => t('helpdesk.tickets.description')}
23
23
  - else
24
24
  = @ticket.description
25
-
25
+
26
26
  = f.simple_fields_for :comments do |tickets_form|
27
27
  - unless tickets_form.object.persisted?
28
- = tickets_form.input :comment
29
- = tickets_form.input :public, :hint => 'Requester can see this comment (public comment)'
30
- = tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
28
+ = tickets_form.input :comment
29
+ = tickets_form.input :public, :hint => 'Requester can see this comment (public comment)'
30
+ = tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
31
31
  %hr
32
32
  %div.textRight
33
- %a.class.btn.btn-default{href: root_path }
34
- = t('helpdesk.tickets.cancel')
35
- %input{:type => "submit",:value => t('helpdesk.tickets.send'), :class=>"btn btn-primary"}
33
+ %a#feedbackCancel{:class=>"btn white"}
34
+ Anuluj
35
+ %input{:type => "submit",:value => 'Wyślij', :class=>"btn"}
36
36
  %div.clearBoth
@@ -2,10 +2,10 @@
2
2
  %tbody
3
3
  %tr{:class=>ticket.ticket_type.tr_class}
4
4
  %td{colspan:2}
5
- %h4
5
+ %h4
6
6
  ="##{ticket.subject}"
7
7
  %tr
8
- %td{style:'width:100px'}
8
+ %td{style:'width:100px'}
9
9
  = I18n::l(ticket.created_at, :format=>:short)
10
10
  - if ticket.requester
11
11
  = ticket.requester.send Helpdesk.display_user.to_sym
@@ -13,7 +13,7 @@
13
13
  = status_label Helpdesk::Ticket::STATUS_BY_KEY[ticket.status.to_sym], Helpdesk::Ticket::STATUS_CLASS_BY_KEY[ticket.status.to_sym]
14
14
  = ticket.ticket_type.title
15
15
 
16
- = auto_link(simple_format(ticket.description), :html => { :target => "_blank" })
16
+ = simple_format ticket.description
17
17
  %tr
18
18
  %td
19
19
  - if ticket.assignee
@@ -22,7 +22,7 @@
22
22
  %tr
23
23
  %td
24
24
  %span.btn.disabled
25
- = ico('comment')
25
+ = ico('comment')
26
26
  = ticket.comments.pub.size
27
27
  %td
28
28
  %ul.comments.unstyled
@@ -31,7 +31,7 @@
31
31
  %li.comment{:id=>"comment#{comment.id}"}
32
32
  %div.comment-left
33
33
  - if comment.public
34
- = status_label ico('envelope') + t('helpdesk.comments.send') ,'label-success'
34
+ = status_label ico('envelope','white') + t('helpdesk.comments.send') ,'label-success'
35
35
  - else
36
36
  = status_label t('helpdesk.comments.note'),''
37
37
  %br
@@ -39,16 +39,16 @@
39
39
  = "#"
40
40
  %div.comment-header
41
41
  -if comment.author != ticket.requester
42
- = status_label ico('user')+ t('helpdesk.comments.helpdesk'),'label-info'
43
-
42
+ = status_label ico('user','white')+ t('helpdesk.comments.helpdesk'),'label-info'
43
+
44
44
  = comment.author.send Helpdesk.display_user.to_sym
45
45
  %small
46
46
  = time_ago_in_words(comment.created_at)
47
47
  temu
48
48
  %div.comment-body
49
- = auto_link(simple_format(comment.comment), :html => { :target => "_blank" })
50
-
49
+ = simple_format comment.comment
50
+
51
51
  %tr{:class=>ticket.ticket_type.tr_class}
52
52
  %td{colspan:2}
53
53
  - if show_button
54
- = link_to ticket.subject, ticket_url(I18n.locale,ticket), class: 'btn btn-block'
54
+ = link_to ticket.subject, ticket_url(ticket), class: 'btn btn-block'
@@ -1,4 +1,4 @@
1
- - content_for :title do
1
+ %h1
2
2
  -if params[:tickets] && params[:tickets] == 'closed'
3
3
  = t('helpdesk.tickets.closed')
4
4
 
@@ -12,5 +12,4 @@
12
12
  - if @tickets.size == 0
13
13
  = t('helpdesk.tickets.you_have_no_tickets')
14
14
  - @tickets.each do |ticket|
15
- = render 'ticket', ticket: ticket, show_button:true
16
- = paginate @tickets
15
+ = render 'ticket', ticket: ticket, show_button:true
@@ -1,4 +1,4 @@
1
1
  = render 'menu'
2
- - content_for :title do
2
+ %h1
3
3
  = t('helpdesk.new_ticket')
4
- = render 'form'
4
+ = render 'form'
@@ -2,20 +2,16 @@
2
2
 
3
3
  = render 'ticket', :ticket=>@ticket, show_button:false
4
4
 
5
+ %table.table
6
+ %tbody
7
+ %tr{:class=>@ticket.ticket_type.tr_class}
8
+ %td{style:'width:100px'}
5
9
 
6
- - unless @ticket.open?
7
- %table.table
8
- %tbody
9
- %tr{:class=>@ticket.ticket_type.tr_class}
10
- %td{style:'width:100px'}
11
- %td
10
+ %td
11
+
12
+ - unless @ticket.open?
12
13
  = t('helpdesk.tickets.ticket_closed')
13
- - if @ticket.open? || helpdesk_user == @ticket.requester
14
- %table.table
15
- %tbody
16
- %tr{:class=>@ticket.ticket_type.tr_class}
17
- %td{style:'width:100px'}
18
- %td
14
+ -else
19
15
  = simple_form_for(@ticket, :html => {:class => 'form-vertical' }) do |f|
20
16
  - if @ticket.errors.any?
21
17
  %div.error_explanation
@@ -28,11 +24,11 @@
28
24
 
29
25
  = f.simple_fields_for :comments,@ticket.comments.build do |tickets_form|
30
26
  - unless tickets_form.object.persisted?
31
- = tickets_form.input :comment, :input_html=>{class: 'comment-textarea',rows: 5}
27
+ = tickets_form.input :comment, :input_html=>{class: 'comment-textarea'}
32
28
  / , :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'mini'},:language => I18n.locale}
33
29
 
34
30
  = tickets_form.input :public, :input_html => {:value=>1},:as=>:hidden
35
- = tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
31
+ = tickets_form.input :author_id, :as => :hidden, :input_html => { :value => helpdesk_user.id }
36
32
  %div
37
- = f.button :submit, :class => 'btn btn-primary'
38
- = submit_tag 'Anuluj', :type => :reset, :class => "btn btn-default"
33
+ = f.button :submit, :class => 'btn-primary'
34
+ = submit_tag 'Anuluj', :type => :reset, :class => "btn btn-danger"
@@ -1,28 +1,22 @@
1
- %nav.navbar.navbar-default#site_topmmenu{role: 'navigation'}
2
- .navbar-header
3
- %button.navbar-toggle{"data-target" => "#bs-navbar-collapse-1", "data-toggle" => "collapse", type: "button"}
4
- %span.sr-only Toggle navigation
5
- %span.icon-bar
6
- %span.icon-bar
7
- %span.icon-bar
8
- =link_to Helpdesk.site_address, main_app.root_path, :class=>'navbar-brand', :title => t('helpdesk.name')
9
- =link_to t('helpdesk.name'), admin_root_path, :class=>'navbar-brand', :title => t('helpdesk.name')
10
- #bs-navbar-collapse-1.collapse.navbar-collapse.in
11
- %ul.nav.navbar-nav
12
- = menu_li t('helpdesk.tickets.title'),admin_tickets_path
13
- = menu_li t('helpdesk.ticket_types.title'),admin_ticket_types_path
14
- = menu_li t('helpdesk.subscribers.title'),admin_subscribers_path
15
- = menu_li t('helpdesk.faqs.title'),admin_faqs_path
1
+ .navbar
2
+ .navbar-inner
3
+ / .container
4
+ =link_to Helpdesk.site_address, main_app.root_path, :class=>'brand', :title => t('helpdesk.name')
5
+ =link_to t('helpdesk.name'), admin_root_path, :class=>'brand', :title => t('helpdesk.name')
6
+ %nav
7
+ %ul.nav
8
+ -if helpdesk_admin?
9
+ = menu_li t('helpdesk.tickets.title'),admin_tickets_path
10
+ / = menu_li t('helpdesk.ticket_types.title'),admin_ticket_types_path
11
+ = menu_li t('helpdesk.subscribers.title'),admin_subscribers_path
12
+ = menu_li t('helpdesk.faqs.title'),admin_faqs_path
16
13
 
17
- %ul.nav.navbar-nav.navbar-right
18
- %li.dropdown.user
19
- = link_to current_user.send(Helpdesk.display_user.to_sym), "#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
20
- %ul.dropdown-menu
21
- %li=link_to 'Home',main_app.root_path
22
- %li=link_to t('users.sign_out'),main_app.destroy_user_session_path, :method => :delete, :class => 'icon exit blue'
23
-
24
- %li.dropdown
25
- = link_to t('helpdesk.lang'),"#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
26
- %ul.dropdown-menu
27
- %li= link_to "English", params.merge({:locale => :en})
28
- %li= link_to "Polski", params.merge({:locale => :pl})
14
+ %li.dropdown.user(data-dropdown="dropdown")
15
+ = link_to current_user.display_name, "#",:class=>"dropdown-toggle"
16
+ %ul.dropdown-menu
17
+ %li.signout
18
+ =link_to 'Wróć do aplikacji',main_app.root_path
19
+ =link_to t('users.sign_out'),main_app.destroy_user_session_path, :method => :delete, :class => 'icon exit blue'
20
+ -else
21
+ =menu_li t('users.sign_in'),new_user_session_path, {:class => "power"}
22
+ =menu_li t('users.sign_up'),new_user_registration_path, {:class => "signup"}
@@ -1,32 +1,9 @@
1
- %nav.navbar.navbar-default#site_topmmenu{role: 'navigation'}
2
- .navbar-header
3
- %button.navbar-toggle{"data-target" => "#bs-navbar-collapse-1", "data-toggle" => "collapse", type: "button"}
4
- %span.sr-only Toggle navigation
5
- %span.icon-bar
6
- %span.icon-bar
7
- %span.icon-bar
8
- =link_to Helpdesk.site_address, main_app.root_path, :class=>'navbar-brand', :title => Helpdesk.site_address
9
- =link_to Helpdesk.name, root_path, :class=>'navbar-brand', :title => Helpdesk.name
10
- #bs-navbar-collapse-1.collapse.navbar-collapse.in
11
- %ul.nav.navbar-nav
12
- = menu_li t('helpdesk.tickets.title'),tickets_path
13
- = menu_li t('helpdesk.faq'),faqs_path
14
-
15
- %ul.nav.navbar-nav.navbar-right
16
- %li.dropdown.user
17
- = link_to current_user.send(Helpdesk.display_user.to_sym), "#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
18
- %ul.dropdown-menu
19
- %li=link_to 'Home',main_app.root_path
20
- %li=link_to t('users.sign_out'),main_app.destroy_user_session_path, :method => :delete, :class => 'icon exit blue'
21
-
22
- %li.dropdown
23
- = link_to t('helpdesk.lang'),"#",:class=>"dropdown-toggle",data:{toggle:"dropdown"}
24
- %ul.dropdown-menu
25
- %li= link_to "English", params.merge({:locale => :en})
26
- %li= link_to "Polski", params.merge({:locale => :pl})
27
-
28
-
29
-
30
-
31
-
32
-
1
+ .navbar
2
+ .navbar-inner
3
+ / .container
4
+ =link_to Helpdesk.site_address, main_app.root_path, :class=>'brand', :title => Helpdesk.site_address
5
+ =link_to Helpdesk.name, root_path, :class=>'brand', :title => Helpdesk.name
6
+ %nav
7
+ %ul.nav
8
+ = menu_li t('helpdesk.tickets.title'),tickets_path
9
+
@@ -13,23 +13,15 @@
13
13
  = render 'layouts/helpdesk/topmenu'
14
14
  .content
15
15
  .row
16
- .col.col-md-3#site_leftmenu
16
+ .span3
17
17
  =yield :left
18
- .col.col-md-9#site_leftmenu
18
+ .span9
19
19
  .flash
20
20
  - flash.each do |type, message|
21
21
  %div{:class => "alert alert-#{type}", "data-alert"=>"alert"}
22
- =link_to "x",'#', :class=>'close', :'data-dismiss'=>"alert"
23
- %p= message
24
- - if content_for?(:title)
25
- .panel.panel-default
26
- .panel-heading
27
- %h3.panel-title
28
- = content_for?(:title) ? content_for(:title) : ''
29
- .panel-body
30
- = yield
31
- - else
32
- = yield
33
- =yield :scripts
22
+ =link_to "x",'#', :class=>'close', :'data-dismiss'=>"alert"
23
+ %p= message
24
+ =yield
25
+ =yield :scripts
34
26
 
35
27