new ref switch

This commit is contained in:
gitlabhq 2011-11-03 12:28:33 -04:00
parent 5f900772c2
commit 3ba392b3cb
9 changed files with 1314 additions and 50 deletions

View file

@ -32,6 +32,15 @@ module ApplicationHelper
"Never"
end
def grouped_options_refs
options = [
["Branch", @repo.heads.map(&:name) ],
[ "Tag", @project.tags ]
]
grouped_options_for_select(options, @ref)
end
def markdown(text)
RDiscount.new(text, :autolink, :no_pseudo_protocols, :safelink, :smart, :filter_html).to_html.html_safe
end