Module: Console::CommunityHelper

Defined in:
app/helpers/console/community_helper.rb

Instance Method Summary collapse

Instance Method Details

#cartridges_source_urlObject



47
48
49
# File 'app/helpers/console/community_helper.rb', line 47

def cartridges_source_url
  origin_server_source_path_url 'cartridges'
end

#client_tools_urlObject



35
36
37
# File 'app/helpers/console/community_helper.rb', line 35

def client_tools_url
  openshift_github_project_url 'rhc'
end

#irc_web_urlObject



3
4
5
# File 'app/helpers/console/community_helper.rb', line 3

def irc_web_url
  'http://webchat.freenode.net/?randomnick=1&channels=openshift&uio=d4'
end


67
68
69
# File 'app/helpers/console/community_helper.rb', line 67

def 
  link_to "[email protected]", mailto_openshift_url
end


7
8
9
# File 'app/helpers/console/community_helper.rb', line 7

def link_to_irc
  link_to "IRC", irc_web_url
end

#mailto_openshift_urlObject



63
64
65
# File 'app/helpers/console/community_helper.rb', line 63

def mailto_openshift_url
  'mailto:[email protected]'
end

#open_bug_urlObject



23
24
25
# File 'app/helpers/console/community_helper.rb', line 23

def open_bug_url
  'https://bugzilla.redhat.com/enter_bug.cgi?product=OpenShift%20Origin'
end

#open_issues_jsonp_url(jsonp) ⇒ Object



75
76
77
# File 'app/helpers/console/community_helper.rb', line 75

def open_issues_jsonp_url(jsonp)
  open_issues_js_path :jsonp => jsonp
end

#openshift_github_project_url(project) ⇒ Object



55
56
57
# File 'app/helpers/console/community_helper.rb', line 55

def openshift_github_project_url(project)
  "https://github.com/openshift/#{project}"
end

#openshift_github_urlObject



27
28
29
# File 'app/helpers/console/community_helper.rb', line 27

def openshift_github_url
  'https://github.com/openshift'
end

#openshift_ops_twitter_urlObject



19
20
21
# File 'app/helpers/console/community_helper.rb', line 19

def openshift_ops_twitter_url
  'http://www.twitter.com/#!/openshift_ops'
end

#openshift_twitter_hashtag_urlObject



11
12
13
# File 'app/helpers/console/community_helper.rb', line 11

def openshift_twitter_hashtag_url
  'http://twitter.com/#!/search/%23OpenShift'
end

#openshift_twitter_urlObject



15
16
17
# File 'app/helpers/console/community_helper.rb', line 15

def openshift_twitter_url
  'http://www.twitter.com/#!/openshift'
end

#origin_server_source_path_url(path) ⇒ Object



43
44
45
# File 'app/helpers/console/community_helper.rb', line 43

def origin_server_source_path_url(path)
  "#{openshift_github_project_url('origin-server')}/tree/master/#{path}"
end

#origin_server_srpm_urlObject



51
52
53
# File 'app/helpers/console/community_helper.rb', line 51

def origin_server_srpm_url
 "http://mirror.openshift.com/pub/origin-server/fedora-16/SRPMS/"
end

#origin_server_urlObject



39
40
41
# File 'app/helpers/console/community_helper.rb', line 39

def origin_server_url
  openshift_github_project_url 'origin-server'
end

#red_hat_account_urlObject



59
60
61
# File 'app/helpers/console/community_helper.rb', line 59

def 
  'https://www.redhat.com/wapps/ugc'
end

#stack_overflow_urlObject



31
32
33
# File 'app/helpers/console/community_helper.rb', line 31

def stack_overflow_url
  'http://stackoverflow.com/questions/tagged/openshift/'
end

#status_jsonp_url(id) ⇒ Object



71
72
73
# File 'app/helpers/console/community_helper.rb', line 71

def status_jsonp_url(id)
  status_js_path :id => id
end