new ref switch
This commit is contained in:
parent
5f900772c2
commit
3ba392b3cb
9 changed files with 1314 additions and 50 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue