Remove unused helpers
This commit is contained in:
parent
f1c6c890c2
commit
d1b912f1d2
@ -34,15 +34,6 @@ module ApplicationHelper
|
|||||||
email ? "'#{email}'".html_safe : 'null'
|
email ? "'#{email}'".html_safe : 'null'
|
||||||
end
|
end
|
||||||
|
|
||||||
def markdown(&block)
|
|
||||||
text = capture(&block)
|
|
||||||
MKD_RENDERER.render(capture(&block)).html_safe
|
|
||||||
end
|
|
||||||
|
|
||||||
def indented_text(string, width)
|
|
||||||
string.lines.map { |l| "#{' ' * width}#{l}" }.join('')
|
|
||||||
end
|
|
||||||
|
|
||||||
def category_links(current_category, &blk)
|
def category_links(current_category, &blk)
|
||||||
links = CategoryLinks.new(current_category, self)
|
links = CategoryLinks.new(current_category, self)
|
||||||
|
|
||||||
|
@ -5,12 +5,6 @@ module AsciicastsHelper
|
|||||||
options: options
|
options: options
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: move to AsciicastDecorator
|
|
||||||
def link_to_delete_asciicast(name, asciicast)
|
|
||||||
link_to name, asciicast_path(asciicast), :method => :delete,
|
|
||||||
:data => { :confirm => 'Really delete this asciicast?' }
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def serialized_asciicast(asciicast)
|
def serialized_asciicast(asciicast)
|
||||||
|
Loading…
Reference in New Issue
Block a user