@ -34,15 +34,6 @@ module ApplicationHelper
email ? "'#{email}'".html_safe : 'null'
end
def markdown(&block)
text = capture(&block)
MKD_RENDERER.render(capture(&block)).html_safe
def indented_text(string, width)
string.lines.map { |l| "#{' ' * width}#{l}" }.join('')
def category_links(current_category, &blk)
links = CategoryLinks.new(current_category, self)
@ -5,12 +5,6 @@ module AsciicastsHelper
options: options
# 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?' }
private
def serialized_asciicast(asciicast)