helpdesk 0.0.20 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/helpdesk/admin/ticket_types_controller.rb +1 -1
- data/app/controllers/helpdesk/tickets_controller.rb +1 -5
- data/app/helpers/helpdesk/helpdesk_helper.rb +0 -14
- data/app/models/helpdesk/faq.rb +0 -1
- data/app/models/helpdesk/subscriber.rb +0 -1
- data/app/models/helpdesk/ticket_type.rb +0 -1
- data/app/views/helpdesk/tickets/_menu.html.haml +2 -2
- data/app/views/helpdesk/tickets/index.html.haml +1 -1
- data/db/migrate/20130521105605_create_helpdesk_ticket_types.rb +1 -1
- data/db/migrate/20130522085614_create_helpdesk_faqs.rb +1 -1
- data/db/migrate/20130522090420_create_helpdesk_subscribers.rb +2 -2
- data/lib/helpdesk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7c264b1d4f7d74f09eaeb46e1654052b1572d2e
|
4
|
+
data.tar.gz: 19894c8b1ab76fb70efb83b70c1f561c1ec00b28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e96da624d0673c09ca321bf67cc82c431e406a2c66ced324ef60f512c4ee5909269d95368e1d7c0b4d822a870418e12357002244c7a1c9336ad8efbe0de21e41
|
7
|
+
data.tar.gz: 58d8aca728fc2890ac71c618d725f46378503a227c19a9ddfc18975e8f5b12f055a47ad228693bc95aa063d94bf4392ead607fc7eafd99d5cba81b17fd21a18a
|
@@ -47,6 +47,6 @@ class Helpdesk::Admin::TicketTypesController < Helpdesk::Admin::BaseController
|
|
47
47
|
private
|
48
48
|
|
49
49
|
def ticket_type_params
|
50
|
-
params.require(:ticket_type).permit(:active,:position,:title,:tr_class
|
50
|
+
params.require(:ticket_type).permit(:active,:position,:title,:tr_class,translations_attributes:[:title])
|
51
51
|
end
|
52
52
|
end
|
@@ -8,10 +8,8 @@ module Helpdesk
|
|
8
8
|
def index
|
9
9
|
if params[:tickets] == 'closed'
|
10
10
|
@tickets = Helpdesk::Ticket.where(:requester_id => helpdesk_user.id).closed.page(params[:page])
|
11
|
-
@tickets_count = Helpdesk::Ticket.where(:requester_id => helpdesk_user.id).active.count
|
12
11
|
else
|
13
12
|
@tickets = Helpdesk::Ticket.where(:requester_id => helpdesk_user.id).active.page(params[:page])
|
14
|
-
@tickets_count = @tickets.size
|
15
13
|
end
|
16
14
|
|
17
15
|
|
@@ -69,9 +67,7 @@ module Helpdesk
|
|
69
67
|
|
70
68
|
respond_to do |format|
|
71
69
|
if @ticket.update_attributes(ticket_params)
|
72
|
-
|
73
|
-
puts paramsp
|
74
|
-
format.html { redirect_to @ticket, notice: 'Ticket was successfully updated.' }
|
70
|
+
format.html { redirect_to @ticket, notice: 'Ticket was successfully updated.'}
|
75
71
|
format.json { head :no_content }
|
76
72
|
else
|
77
73
|
format.html { render action: "edit" }
|
@@ -6,7 +6,6 @@ module Helpdesk
|
|
6
6
|
panel_menu(title,'default',&block)
|
7
7
|
end
|
8
8
|
|
9
|
-
|
10
9
|
def panel_menu(title,type,&block)
|
11
10
|
content_tag(:div,class: "panel panel-#{type}") do
|
12
11
|
content_tag(:div ,class: 'panel-heading') do
|
@@ -18,19 +17,6 @@ module Helpdesk
|
|
18
17
|
end
|
19
18
|
end
|
20
19
|
|
21
|
-
|
22
|
-
def panel(title,type,&block)
|
23
|
-
content_tag(:div,class: "panel panel-#{type}") do
|
24
|
-
content_tag(:div ,class: 'panel-heading') do
|
25
|
-
content_tag(:h3 ,title,class:'panel-title')
|
26
|
-
end +
|
27
|
-
content_tag( :div, class: 'panel-body') do
|
28
|
-
capture(&block)
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
|
34
20
|
def menu_li(lbl, path, *args)
|
35
21
|
options = args.extract_options!
|
36
22
|
(options[:class].nil? ? options.merge!(:class => "active") : options[:class] += " active" ) if url_for(path) == request.fullpath
|
data/app/models/helpdesk/faq.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
- content_for :left do
|
2
2
|
= menu_left t('helpdesk.tickets.title') do
|
3
|
-
|
3
|
+
|
4
4
|
= menu_li ico('pencil') + t('helpdesk.new_ticket'), new_ticket_url
|
5
5
|
|
6
6
|
%li.divider
|
7
7
|
|
8
8
|
|
9
|
-
= menu_li ico('bullhorn') + "#{t('helpdesk.tickets.active')}
|
9
|
+
= menu_li ico('bullhorn') + "#{t('helpdesk.tickets.active')}", tickets_url(:tickets => 'active')
|
10
10
|
= menu_li ico('hdd') + "#{t('helpdesk.tickets.closed')}", tickets_url(:tickets => 'closed')
|
@@ -2,7 +2,7 @@ class CreateHelpdeskTicketTypes < ActiveRecord::Migration
|
|
2
2
|
def up
|
3
3
|
create_table :helpdesk_ticket_types do |t|
|
4
4
|
t.integer :position
|
5
|
-
t.boolean :active,:default=>
|
5
|
+
t.boolean :active,:default=>true,:null=>false
|
6
6
|
t.string :tr_class
|
7
7
|
t.timestamps
|
8
8
|
end
|
data/lib/helpdesk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helpdesk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Beynon Wacław Łuczak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: launchy
|