Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (52 sloc) 1.8 KB
- content_for :title do
| Roster
.container
.row.box
.col-lg-12
hr
h1.text-center
- unless current_user.promotion.blank?
= current_user.promotion
| Roster
- else
| Roster
hr
- (0..4).each do |position|
.row.box
.col-lg-12
hr
.intro-text.text-center
h2 Your Wrestlers in the #{@positions[position]}!
- (0..1).each do |alignment|
- index = (position*2 + alignment)
.row.box
.col-lg-12
hr
h3.intro-text.text-center
u = @alignments[alignment]
hr
- unless @wrestler_categories[index].blank?
- @wrestler_categories[index].each do |wrestler|
.col-sm-4
= image_tag wrestler.image.url, class: "img-responsive"
.btn-group.pull-right.wrestler-options-group
button.btn.btn-default.dropdown-toggle type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"
i.glyphicon.glyphicon-cog
span.caret
ul.dropdown-menu
li = link_to 'Wrestler Profile', wrestler
li = link_to 'Change Details', edit_wrestler_path(wrestler)
li = link_to 'You\'re Fired', wrestler, method: :delete, data: { confirm: 'Are you sure?' }
h3.text-left = wrestler.name
- else
h4.intro-text.text-center
| You have no babyface wrestlers able to compete in the Main Event! #{link_to 'Hire a new wrestler', new_wrestler_path}
br
| Turn a heel face! Turn a face heel! Promote somebody! Alternatively
br
h1.text-center SHOVE THAT CONTROL INTO A NOSE DIVE!!!
.row.box
.col-lg-12.text-center
hr
= link_to 'New Wrestler', new_wrestler_path, class: "btn btn-large text-center btn-success"
hr