Module: Console::CommunityHelper
- Defined in:
- app/helpers/console/community_helper.rb
Instance Method Summary collapse
- #cartridges_source_url ⇒ Object
- #client_tools_url ⇒ Object
- #irc_web_url ⇒ Object
- #link_to_account_mailto ⇒ Object
- #link_to_irc ⇒ Object
- #mailto_openshift_url ⇒ Object
- #open_bug_url ⇒ Object
- #open_issues_jsonp_url(jsonp) ⇒ Object
- #openshift_github_project_url(project) ⇒ Object
- #openshift_github_url ⇒ Object
- #openshift_ops_twitter_url ⇒ Object
- #openshift_twitter_hashtag_url ⇒ Object
- #openshift_twitter_url ⇒ Object
- #origin_server_source_path_url(path) ⇒ Object
- #origin_server_srpm_url ⇒ Object
- #origin_server_url ⇒ Object
- #red_hat_account_url ⇒ Object
- #stack_overflow_url ⇒ Object
- #status_jsonp_url(id) ⇒ Object
Instance Method Details
#cartridges_source_url ⇒ Object
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_url ⇒ Object
35 36 37 |
# File 'app/helpers/console/community_helper.rb', line 35 def client_tools_url openshift_github_project_url 'rhc' end |
#irc_web_url ⇒ Object
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 |
#link_to_account_mailto ⇒ Object
67 68 69 |
# File 'app/helpers/console/community_helper.rb', line 67 def link_to_account_mailto link_to "[email protected]", mailto_openshift_url end |
#link_to_irc ⇒ Object
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_url ⇒ Object
63 64 65 |
# File 'app/helpers/console/community_helper.rb', line 63 def mailto_openshift_url 'mailto:[email protected]' end |
#open_bug_url ⇒ Object
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_url ⇒ Object
27 28 29 |
# File 'app/helpers/console/community_helper.rb', line 27 def openshift_github_url 'https://github.com/openshift' end |
#openshift_ops_twitter_url ⇒ Object
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_url ⇒ Object
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_url ⇒ Object
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_url ⇒ Object
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_url ⇒ Object
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_url ⇒ Object
59 60 61 |
# File 'app/helpers/console/community_helper.rb', line 59 def red_hat_account_url 'https://www.redhat.com/wapps/ugc' end |
#stack_overflow_url ⇒ Object
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 |