| 1 | <% content_for :meta_head do %> |
| 2 | <title><%= @meta_title %> | <%= @user.name %></title> |
| 3 | <meta name="description" content="<%= @meta_description %>"> |
| 4 | <% end %> |
| 5 | |
| 6 | <div class="row"> |
| 7 | <!-- BEGIN content --> |
| 8 | <div class="col-md-12"> |
| 9 | |
| 10 | <div class="page-header"> |
| 11 | <h1><%= t("my") %> / Files 📁 / Detail</h1> |
| 12 | </div> |
| 13 | <%= render "shared/flash_message", object: flash %> |
| 14 | |
| 15 | </div> |
| 16 | <div class="col-md-2"> |
| 17 | <%= render "my/partial_menu" %> |
| 18 | </div> |
| 19 | <div class="col-md-10"> |
| 20 | |
| 21 | <div class="lead"> |
| 22 | <b>File name</b>: <%= @audio_file.source_file.blob.filename unless !@audio_file.source_file.attached? %> |
| 23 | </div> |
| 24 | <div class="row"> |
| 25 | <!-- BEGIN content --> |
| 26 | <div class="col-md-12"> |
| 27 | <h2>SplitFire 🔥</h2> |
| 28 | <% if @audio_file.splitfire_results.count == 0 %> |
| 29 | You don't have any SplitFire files. |
| 30 | <% else %> |
| 31 | <table style="width: 100%"> |
| 32 | <% @audio_file.splitfire_results.each_with_index do |audio_file, index| %> |
| 33 | <tr style="vertical-align: bottom"> |
| 34 | <td style="padding: 10px 10px 10px 0;"> |
| 35 | <% if audio_file.source_file.attached? %> |
| 36 | <%= link_to(audio_file.source_file.blob.filename, my_splitfire_detail_path(@audio_file.id)) %> |
| 37 | <% else %> |
| 38 | <i>File is missing. Please delete this.</i> |
| 39 | <% end %> |
| 40 | </td> |
| 41 | </tr> |
| 42 | <% end %> |
| 43 | </table> |
| 44 | <% end %> |
| 45 | </div> |
| 46 | </div> |
| 47 | |
| 48 | <div class="row"> |
| 49 | <!-- BEGIN content --> |
| 50 | <div class="col-md-12"> |
| 51 | <h2>Bass64 🎸</h2> |
| 52 | <% if @audio_file.bass_backing_track.nil? %> |
| 53 | You don't have any Bass64 files. |
| 54 | <% else %> |
| 55 | <table style="width: 100%"> |
| 56 | <tr style="vertical-align: bottom"> |
| 57 | <td style="padding: 10px 10px 10px 0;"> |
| 58 | <% if @audio_file.bass_backing_track.source_file.attached? %> |
| 59 | <%= link_to(@audio_file.bass_backing_track.source_file.blob.filename, my_bass64_detail_path(@audio_file.id)) %> |
| 60 | <% else %> |
| 61 | <i>File is missing. Please delete this.</i> |
| 62 | <% end %> |
| 63 | </td> |
| 64 | </tr> |
| 65 | </table> |
| 66 | <% end %> |
| 67 | </div> |
| 68 | </div> |
| 69 | |
| 70 | </div> |
| 71 | <!-- END content --> |
| 72 | </div> |
| 73 | |
| 74 | <div class="row" style="margin-top: 20px;"> |
| 75 | <div class="col-md-12"> |
| 76 | |
| 77 | <ol class="breadcrumb"> |
| 78 | <li><%= link_to t("breadcrumb_home"), root_path %></li> |
| 79 | </ol> |
| 80 | |
| 81 | </div> |
| 82 | </div> |
| 83 |