Module: Nesta::Plugin::ProjectMeta::Helpers

Defined in:
lib/nesta-plugin-project-meta/init.rb

Instance Method Summary collapse

Instance Method Details

#github_meta(page) ⇒ Object



18
19
20
# File 'lib/nesta-plugin-project-meta/init.rb', line 18

def github_meta(page)
  ProjectMeta.github_meta(page)
end


30
31
32
33
34
35
36
# File 'lib/nesta-plugin-project-meta/init.rb', line 30

def link_to_github_forks(page)
   = github_meta(page)
  if 
    forks_url = .url + "/network"
    %Q{<a href="#{forks_url}">#{.forks}</a>}
  end
end


22
23
24
25
26
27
28
# File 'lib/nesta-plugin-project-meta/init.rb', line 22

def link_to_github_watchers(page)
   = github_meta(page)
  if 
    watchers_url = .url + "/watchers"
    %Q{<a href="#{watchers_url}">#{.watchers}</a>}
  end
end