%div.page-header
  %h1
    = @event.name

%div{ class: 'panel panel-default' }
  %div.panel-heading
    主催者
  %div.panel-body
    = link_to "https://twitter.com/#{@event.owner.nickname}" do
      = image_tag @event.owner.image_url
      = "@#{@event.owner.nickname}"
%div{ class: 'panel panel-default' }
  %div.panel-heading
    開催時間
  %div.panel-body
    = @event.start_time.strftime('%Y%m%d %H:%M')
    \-
    = @event.end_time.strftime('%Y%m%d %H:%M')
%div{ class: 'panel panel-default' }
  %div.panel-heading
    開催場所
  %div.panel-body
    = @event.place
%div{ class: 'panel panel-default' }
  %div.panel-heading
    イベント内容
  %div.panel-body
    = @event.content

%div.page-header
  %h1
    = @event.name

%div.row
  %div.col-md-8
    %div{ class: 'panel panel-default' }
      %div.panel-heading
        主催者
      %div.panel-body
        = link_to "https://twitter.com/#{@event.owner.nickname}" do
          = image_tag @event.owner.image_url
          = "@#{@event.owner.nickname}"
    %div{ class: 'panel panel-default' }
      %div.panel-heading
        開催時間
      %div.panel-body
        = @event.start_time.strftime('%Y%m%d %H:%M')
        \-
        = @event.end_time.strftime('%Y%m%d %H:%M')
    %div{ class: 'panel panel-default' }
      %div.panel-heading
        開催場所
      %div.panel-body
        = @event.place
    %div{ class: 'panel panel-default' }
      %div.panel-heading
        イベント内容
      %div.panel-body
        = @event.content
  %div.col-md-4
    - if @event.created_by?(current_user)
      = link_to 'イベントを編集する', edit_event_paht(@event), class: 'btn btn-info btn-lg btn-block'

Add edit link in Event
Add edit link in Event
