Add default buttons on top if the items are > 5 on tracks, event_types, lodgings, rooms. This should prevent scrolling down to find the button.

This commit is contained in:
Shyukri Shyukriev 2016-06-29 14:20:41 +02:00
parent c39a4541cf
commit 0944952e9d
4 changed files with 19 additions and 3 deletions

View file

@ -4,6 +4,12 @@
%h1 Tracks
%p.text-muted
Categorize events in your conference
- if @tracks.size > 5
.row
.col-md-12.text-right
= link_to 'New Track', new_admin_conference_program_track_path(@conference.short_title), class: 'btn btn-success'
.row
.col-md-12
%table.table.table-hover#tracks