Module: Nesta::Plugin::ProjectMeta::Helpers
- Defined in:
- lib/nesta-plugin-project-meta/init.rb
Instance Method Summary collapse
- #github_meta(page) ⇒ Object
- #link_to_github_forks(page) ⇒ Object
- #link_to_github_watchers(page) ⇒ Object
Instance Method Details
#github_meta(page) ⇒ Object
18 19 20 |
# File 'lib/nesta-plugin-project-meta/init.rb', line 18 def (page) ProjectMeta.(page) end |
#link_to_github_forks(page) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/nesta-plugin-project-meta/init.rb', line 30 def link_to_github_forks(page) = (page) if forks_url = .url + "/network" %Q{<a href="#{forks_url}">#{.forks}</a>} end end |
#link_to_github_watchers(page) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/nesta-plugin-project-meta/init.rb', line 22 def link_to_github_watchers(page) = (page) if watchers_url = .url + "/watchers" %Q{<a href="#{watchers_url}">#{.watchers}</a>} end end |