clarion/app/views/lectures/show.html.slim

19 lines
463 B
Plaintext
Raw Normal View History

2014-09-01 12:57:27 +03:00
- content_for(:title) { ":: #{@lecture.title}" }
2014-08-30 17:31:29 +03:00
h2.lecture-title
=> @lecture.title
2014-08-30 17:31:29 +03:00
span.subtitle = @lecture.subtitle
.entry-meta
2014-09-01 12:57:27 +03:00
= t :edit_title, track: @lecture.track.name, len: @lecture.length
2014-08-30 17:31:29 +03:00
section.abstract
2014-08-31 22:11:46 +03:00
h3 = t :abstract
2014-08-30 17:31:29 +03:00
= simple_format @lecture.abstract
section.description
2014-08-31 22:11:46 +03:00
h3 = t :description
2014-08-30 17:31:29 +03:00
= simple_format @lecture.description
- if current_user == @lecture.user
2014-08-31 22:11:46 +03:00
= link_to t(:edit), edit_lecture_path(@lecture), class: 'btn-link'