Skip to content

Commit 3597f2d

Browse files
committed
Merge pull request #5 from stevecrozz/new_icon_interface
new tracker icon interface
2 parents 7eb48d5 + 143ece8 commit 3597f2d

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

lib/errbit_github_plugin.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
require "errbit_github_plugin/version"
22
require 'errbit_github_plugin/error'
33
require 'errbit_github_plugin/issue_tracker'
4-
require 'errbit_github_plugin/rails'
54

65
module ErrbitGithubPlugin
76
def self.root
87
File.expand_path '../..', __FILE__
98
end
9+
10+
def self.read_static_file(file)
11+
File.read(File.join(self.root, 'static', file))
12+
end
1013
end
1114

1215
ErrbitPlugin::Registry.add_issue_tracker(ErrbitGithubPlugin::IssueTracker)

lib/errbit_github_plugin/issue_tracker.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ def self.fields
3232
FIELDS
3333
end
3434

35+
def self.icons
36+
@icons ||= {
37+
create: [
38+
'image/png', ErrbitGithubPlugin.read_static_file('github_create.png')
39+
],
40+
goto: [
41+
'image/png', ErrbitGithubPlugin.read_static_file('github_goto.png'),
42+
],
43+
inactive: [
44+
'image/png', ErrbitGithubPlugin.read_static_file('github_inactive.png'),
45+
]
46+
}
47+
end
48+
3549
def configured?
3650
errors.empty?
3751
end

lib/errbit_github_plugin/rails.rb

Lines changed: 0 additions & 8 deletions
This file was deleted.

static/github_create.png

2.14 KB
Loading

static/github_goto.png

2.14 KB
Loading

static/github_inactive.png

1.05 KB
Loading

0 commit comments

Comments
 (0)