Sha256: 5f8db5548df154197621297ba51a1dc5032aa6488e7a00cdb986acebbdafd198

Contents?: true

Size: 1.62 KB

Versions: 9

Compression:

Stored size: 1.62 KB

Contents

- if @description
  - show_description_name = @description.name
  - compare_description_name = ""
  - compare_description_class = "missing"
  - close_comparison_attrs = { href: "#", disabled: "disabled" }
- elsif @description_a && @description_b
  - show_description_name = @description_a.name
  - compare_description_name = @description_b.name
  - compare_description_class = ""
  - close_comparison_attrs = { href: "/#{@description_a.name}" }
- else
  - show_description_name = ""
  - compare_description_name = ""
  - compare_description_class = ""
  - close_comparison_attrs = { href: "#", disabled: "disabled" }
.row
  .col-xs-4.col-xs-offset-1
    .input-group.input-group-lg
      %input.description-name{ :type => "text",
        :placeholder => "No description selected", :value => show_description_name }
      .input-group-btn
        %button.btn.btn-default.open-description-selector.show{ "data-target" => "#description-selector",
          "data-toggle" => "modal", :type => "button" }
          %span.glyphicon.glyphicon-option-horizontal
  .col-xs-4.col-xs-offset-1
    .input-group.input-group-lg
      %input.description-name{ :type => "text",
        :placeholder => "No description selected for comparison", :class => compare_description_class, :value => compare_description_name }
      .input-group-btn
        %button.btn.btn-default.open-description-selector.compare{ "data-target" => "#description-selector",
          "data-toggle" => "modal", :type => "button" }
          %span.glyphicon.glyphicon-option-horizontal
        %a.btn.btn-default.close-comparison{ close_comparison_attrs }
          %span.glyphicon.glyphicon-remove

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
machinery-tool-1.24.1 html/partials/nav_bar.html.haml
machinery-tool-1.24.0 html/partials/nav_bar.html.haml
machinery-tool-1.23.1 html/partials/nav_bar.html.haml
machinery-tool-1.23.0 html/partials/nav_bar.html.haml
machinery-tool-1.22.3 html/partials/nav_bar.html.haml
machinery-tool-1.22.2 html/partials/nav_bar.html.haml
machinery-tool-1.22.1 html/partials/nav_bar.html.haml
machinery-tool-1.22.0 html/partials/nav_bar.html.haml
machinery-tool-1.21.0 html/partials/nav_bar.html.haml