Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9ab762d6e6
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (54 sloc) 1.273 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
%h3= @instrument.name
.infos_box
  %span.verysmall.bold
    %p
      = @instrument.created_at
    %p
      Submitted by:
      = link_to @instrument.user.login, @instrument.user
    %p
      Original author:
      = @instrument.author
    - if current_user
      %p
        = link_to "edit", edit_instrument_path(@instrument)
        = link_to "delete", @instrument, :method => :delete, :confirm => "Are you sure?"

= render :partial => "sample"

%br{:style => "clear: both;"}
%br

%table.instrument_properties
  %tr
    %td{:width => "120px"} NAME
    %td.row_value{:width => "50px"}= @instrument.instrument_name
  %tr
    %td TYPE
    %td.row_value= @instrument.type
  %tr{:height => "20px"}
  %tr
    %td ENVELOPE
    %td.row_value= @instrument.envelope
  %tr
    %td OUTPUT
    %td.row_value= @instrument.output
  %tr
    %td LENGTH
    %td.row_value= @instrument.length
  %tr
    %td SHAPE
    %td.row_value= @instrument.shape
  %tr{:height => "20px"}
  %tr
    %td AUTOMATE
    %td.row_value= @instrument.automate
  %tr
    %td TABLE
    %td.row_value= @instrument.table

- if @instrument.table == "ON"
  = render :partial => 'show_table'

= render :partial => 'right_sidebar'

%br{:style => "clear: both;"}
%br
%p
  Description:
  %br
  %pre= @instrument.description
Something went wrong with that request. Please try again.