helpdesk 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/helpdesk/ticket.rb +9 -2
- data/app/views/helpdesk/admin/tickets/index.html.haml +1 -1
- data/app/views/helpdesk/notifications_mailer/comment_by_helpdesk_confirmation.pl.html.haml +1 -1
- data/config/locales/helpdesk.pl.yml +2 -2
- data/lib/helpdesk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1baf95cd67d35dfd2282f81c97c6f240f6a141df
|
4
|
+
data.tar.gz: 380842fdb392db3608dec6fa0aaee3ff3eadd3c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 763a7c13219a8f4c06a3e99613ff620a890b00e3a48ca81d35b3be2a08584c0e1f70ddfb67fdafcafe299a3cb3337975bf2f1cb28aec0214f16adecdb74e8eef
|
7
|
+
data.tar.gz: 60debde9ac2c8a7ecf9c88ae92e0ca0b2ffc40f5964701d9adc01ef6cff1deb1e522ea90cb99e0f00eaad436c13cb71959370d91308539c8cdb103ac9d6b41b0
|
@@ -3,8 +3,8 @@ module Helpdesk
|
|
3
3
|
|
4
4
|
STATUSES = [
|
5
5
|
[ :new, 'Nowe:', 'label-important',3],
|
6
|
-
[ :open, '
|
7
|
-
[ :waiting, '
|
6
|
+
[ :open, 'Otwarte:', 'label-warning',2],
|
7
|
+
[ :waiting, 'Otwarte: oczekujące', 'label-info',2],
|
8
8
|
[ :solved, 'Zamknięte: problem rozwiązany','label-success',0],
|
9
9
|
[ :not_fixable, 'Zamknięte: nienaprawialne','label-inverse',-1],
|
10
10
|
[ :unreachable, 'Zamknięte: klient nieosiągalny','label-inverse',-1],
|
@@ -44,8 +44,15 @@ module Helpdesk
|
|
44
44
|
|
45
45
|
|
46
46
|
before_create :set_subject
|
47
|
+
before_create :set_status
|
47
48
|
after_create :send_email
|
48
49
|
|
50
|
+
def set_status
|
51
|
+
if self.status.blank?
|
52
|
+
self.status = :new
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
49
56
|
def set_subject
|
50
57
|
if self.created_at.nil?
|
51
58
|
time = Time.now
|
@@ -10,7 +10,7 @@ pl:
|
|
10
10
|
new: Nowe zgłoszenie
|
11
11
|
my: Moje zgłoszenia
|
12
12
|
unassigned: Nieprzypisane zgłoszenia
|
13
|
-
closed:
|
13
|
+
closed: Zamknięte zgłoszenia
|
14
14
|
all: Wszystkie zgłoszenia
|
15
15
|
title: Zgłoszenia
|
16
16
|
active: Aktywne zgłoszenia
|
@@ -20,7 +20,7 @@ pl:
|
|
20
20
|
is_now_assigned: "Zgłoszenie %{subject} zostało przypisane do Ciebie"
|
21
21
|
visible_to_autor: Widoczny dla zgłaszającego - wyślij emaila
|
22
22
|
you_have_no_tickets: "Brak zgłoszeń"
|
23
|
-
ticket_closed: Zgłoszenie
|
23
|
+
ticket_closed: Zgłoszenie zamknięte
|
24
24
|
subject: Temat zgłoszenia
|
25
25
|
description: Treść
|
26
26
|
ticket: Zgłoszenie
|
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.4
|
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: 2013-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: launchy
|
@@ -392,7 +392,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
392
|
version: '0'
|
393
393
|
requirements: []
|
394
394
|
rubyforge_project:
|
395
|
-
rubygems_version: 2.0.
|
395
|
+
rubygems_version: 2.0.6
|
396
396
|
signing_key:
|
397
397
|
specification_version: 4
|
398
398
|
summary: Rails mountable engine providing basic helpdesk functionality for your applications
|