Module: RepositoriesHelper

Defined in:
app/helpers/repositories_helper.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) repositories_search_form



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

def repositories_search_form
  render('/repositories/quick_search_form')
end


10
11
12
13
# File 'app/helpers/repositories_helper.rb', line 10

def repository_link(repository)
  return nil if repository.nil?
  link_to(repository_tag(repository).html_safe, repository)
end

- (Object) repository_tag(repository)



3
4
5
6
7
8
# File 'app/helpers/repositories_helper.rb', line 3

def repository_tag(repository)
  return nil if repository.nil?
  [repository.name,
   (repository.acronym ? "(#{repository.acronym})" : nil)
  ].join(" ").html_safe
end