mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #1221 from nishanthvijayan/commercial-missing-version
Check if commercial has versions before displaying commercial creator
This commit is contained in:
commit
f30dd52edc
1 changed files with 4 additions and 3 deletions
|
|
@ -40,6 +40,7 @@
|
|||
- if can? :destroy, commercial
|
||||
= link_to 'Delete', conference_program_proposal_commercial_path(@conference.short_title, @event.id, commercial.id),
|
||||
:method => :delete, :data => { :confirm => 'Are you sure?' }, class: 'btn btn-danger'
|
||||
.text-right
|
||||
= "added by "
|
||||
= link_to_user(commercial.versions.last.whodunnit)
|
||||
- if commercial.versions.any?
|
||||
.text-right
|
||||
= "added by "
|
||||
= link_to_user(commercial.versions.last.whodunnit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue