Created
March 5, 2019 11:32
-
-
Save Dysp/286aa707893103a63b2a6ab3cc09fa04 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- if current_account.owner.confirmed? | |
= render 'my_gear/items/manage_items_content' | |
- else | |
br | |
br | |
br | |
br | |
.bookingsShowGrid__bookingAlerts__alert | |
| You need to verify your email before you can list your gear. | |
br | |
br | |
a href=new_confirmation_path(current_user) style="color: white; text-decoration: underline; font-weight: 400" | |
| Request a new confirmation link. | |
.manageListings | |
.manageListings__content | |
h4.manageItems__categoryTitle(style="font-weight: 500; margin: 20px 50px 20px 50px;") My Packages: | |
hr(style="border-top: 1px solid #ccc") | |
br | |
br | |
- if current_account.listings.where(single_item: false).count > 0 | |
- for listing in current_account.listings.where(single_item: false).order("created_at desc") | |
.manageListings__listing id=dom_id(listing) | |
.manageListings__listingThumbnail | |
= link_to listing_path(listing), target: '_blank', title: 'Preview' do | |
img alt="" src=listing.images(:listing_my_gear).first / | |
.manageListings__itemText | |
h5=listing.title | |
p | |
i.far.fa-circle | |
strong Total replacement value: | |
span.manageListings__totalReplacementValue="#{number_with_delimiter(listing.trv.to_i, :delimiter => '.')}" | |
span kr | |
p | |
i.far.fa-circle | |
strong Items in listing: | |
span=listing.items.count | |
=link_to " See more...".html_safe, edit_listing_path(listing), remote: true | |
.manageListings__listingPrice | |
span.big="#{listing.day_price.to_i} KR" | |
span pr.day | |
= render 'published_toggle_icon', listing: listing | |
br | |
br |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment