Sha256: 53b1f026e1af0dfd8941d71b99d5228e04ada61fd2d34142790abed31fd18fda

Contents?: true

Size: 1000 Bytes

Versions: 15

Compression:

Stored size: 1000 Bytes

Contents

- content_for :main do
  
  %h1.goals_icon Goal '#{@goal.name}'

  .cms_form

    %p
      = icon_to "List Scores", "/admin/goals/#{@goal.id}/scores"

    %p
      %label Name
      = @goal.name

    %p
      %label Type
      = @goal.goal_type.titleize

    - if @goal.goal_type == 'URL'
      %p 
        %label Match Type
        = @goal.match_type

      %p
        %label Match Value
        = @goal.match_value

    %p 
      %label Notes
      = @goal.notes

    %p 
      %label Experiments
      - names =  @goal.experiments.collect { |e| link_to e.name, [:admin, e] }
      = names.join(', ').html_safe

    %p
      %label Created By
      = @goal.user.email

    %p 
      %label Created At
      = @goal.created_at.to_s(:short)

    %p
      = icon_to "Edit", edit_admin_goal_path(@goal)
      - if @goal.experiments.size==0
        = link_to "Delete", [:admin, @goal], :confirm => 'Are you sure?', :method => :delete, :class=>"action" 

    %p
      = icon_to "Goals", admin_goals_path

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kit_cms-2.3.22 app/views/admin/goals/show.html.haml
kit_cms-2.3.20 app/views/admin/goals/show.html.haml
kit_cms-2.3.19 app/views/admin/goals/show.html.haml
kit_cms-2.3.18 app/views/admin/goals/show.html.haml
kit_cms-2.3.17 app/views/admin/goals/show.html.haml
kit_cms-2.3.16 app/views/admin/goals/show.html.haml
kit_cms-2.3.15 app/views/admin/goals/show.html.haml
kit_cms-2.3.14 app/views/admin/goals/show.html.haml
kit_cms-2.3.13 app/views/admin/goals/show.html.haml
kit_cms-2.3.11 app/views/admin/goals/show.html.haml
kit_cms-2.3.10 app/views/admin/goals/show.html.haml
kit_cms-2.3.9 app/views/admin/goals/show.html.haml
kit_cms-2.3.8 app/views/admin/goals/show.html.haml
kit_cms-2.3.7 app/views/admin/goals/show.html.haml
kit_cms-2.3.6 app/views/admin/goals/show.html.haml