Commit 287fb6863389c376566741c713a1265a53e9a865
1 parent
a1ff86d6
Exists in
master
and in
1 other branch
adding links to gtalk and campfire if they are configured
Showing
4 changed files
with
15 additions
and
1 deletions
Show diff stats
app/models/notification_service.rb
app/models/notification_services/campfire_service.rb
... | ... | @@ -19,6 +19,10 @@ class NotificationServices::CampfireService < NotificationService |
19 | 19 | end |
20 | 20 | end |
21 | 21 | |
22 | + def url | |
23 | + "http://campfirenow.com/" | |
24 | + end | |
25 | + | |
22 | 26 | def create_notification(problem) |
23 | 27 | # build the campfire client |
24 | 28 | campy = Campy::Room.new(:account => subdomain, :token => api_token, :room_id => room_id) | ... | ... |
app/models/notification_services/gtalk_service.rb
... | ... | @@ -21,6 +21,10 @@ class NotificationServices::GtalkService < NotificationService |
21 | 21 | end |
22 | 22 | end |
23 | 23 | |
24 | + def url | |
25 | + "http://www.google.com/talk/" | |
26 | + end | |
27 | + | |
24 | 28 | def create_notification(problem) |
25 | 29 | # build the xmpp client |
26 | 30 | client = Jabber::Client.new(Jabber::JID.new(subdomain)) | ... | ... |
app/views/apps/index.html.haml
... | ... | @@ -28,7 +28,11 @@ |
28 | 28 | - if any_notification_services? |
29 | 29 | %td.notification_service |
30 | 30 | - if app.notification_service_configured? |
31 | - = image_tag("#{app.notification_service.label}_goto.png") | |
31 | + - notification_service_img = image_tag("#{app.notification_service.label}_goto.png") | |
32 | + - if app.notification_service.url | |
33 | + = link_to( notification_service_img, app.notification_service.url, :target => "_blank" ) | |
34 | + - else | |
35 | + = notification_service_img | |
32 | 36 | - if any_issue_trackers? |
33 | 37 | %td.issue_tracker |
34 | 38 | - if app.issue_tracker_configured? | ... | ... |