Module: Card::Set::Abstract::TaskTable::HtmlFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-card/mod001-core/abstract/task_table.rb
Instance Method Summary collapse
Instance Method Details
#task_row(task, mod) ⇒ Object
9 10 11 12 13 14 15 |
# File 'platypus/tmp/set/gem-card/mod001-core/abstract/task_table.rb', line 9 def task_row task, mod base = "#{mod}_task_#{task}" [ link_to_card(:admin, t("#{base}_link_text"), path: { action: :update, task: task }), t("#{base}_description") ] end |
#task_table(tasks) ⇒ Object
17 18 19 20 21 22 |
# File 'platypus/tmp/set/gem-card/mod001-core/abstract/task_table.rb', line 17 def task_table tasks table_content = tasks.map do |task, task_config| task_row task, task_config[:mod] end table table_content, header: %w[Task Description] end |