class TrelloBackupRenderer::Rendering::BoardPage

Public Class Methods

new(board, options) click to toggle source
# File lib/trello_backup_renderer/rendering.rb, line 22
def initialize(board, options)
  @board = board
  @options = options
end

Public Instance Methods

head_insert() click to toggle source
# File lib/trello_backup_renderer/rendering.rb, line 38
def head_insert
  @options.head_insert || ''
end
lists() click to toggle source
# File lib/trello_backup_renderer/rendering.rb, line 27
def lists
  @board.lists.reject(&:closed).map { |list| ListPresenter.new(list) }
end
render() click to toggle source
# File lib/trello_backup_renderer/rendering.rb, line 42
def render
  ERB.new(BOARD_HTML_TEMPLATE).result(binding)
end
stylesheet_tags() click to toggle source
# File lib/trello_backup_renderer/rendering.rb, line 31
def stylesheet_tags
  tags = ''
  tags << '<style type="text/css">' + CSS_FILE + '</style>' unless @options.omit_styles
  tags << '<style type="text/css">' + NO_AUTHORSHIP_CSS_FILE + '</style>' if @options.hide_authorship
  tags
end