- if advent_calendar_item.present?
  %p.text-info.advent-calendar-author
    = advent_calendar_item.user_name + "さん"
  %p.advent-calendar-entry
    = advent_calendar_item.comment
- else
  %div.advent-calendar-join
    = link_to "参加登録", new_advent_calendar_item_path(date: date), class: "btn btn-success btn-block"
- if advent_calendar_item.present?
  %p.text-info.advent-calendar-author
    = advent_calendar_item.user_name + "さん"
  %p.advent-calendar-entry
    = advent_calendar_item.comment
  %p.advent-calendar-join
    = link_to "編集", advent_calendar_item_path(id:advent_calendar_item.id), class:"btn btn-default btn-block btn-xs"
- else
  %div.advent-calendar-join
    = link_to "参加登録", new_advent_calendar_item_path(date: date), class: "btn btn-success btn-block"
Add AdventCalendarItem show link in welcome index
Add AdventCalendarItem show link in welcome index
