Sha256: 90680362282bd9172d6e83b66f2203ede443625ca0e1f6c01b2d67ebf6614927

Contents?: true

Size: 1.26 KB

Versions: 8

Compression:

Stored size: 1.26 KB

Contents

:sass
  #top_menu
    .favourite
      width: 100%
    & > .dropdown
      display: inline-block !important
      min-width: 10em
    & > .favourite > .dropdown, & > .favourite > .item.pointer
      display: inline-block !important

#top_menu.ui.fixed.menu
  %a.header.item(href='/')= $title

  %span.favourite

  - if settings.respond_to?(:finder) and settings.finder and settings.finder.instances.any?
    .finder.right.item
      %form.collapse(action='/find' method="POST")
        %input(type="search" name="term" placeholder='Search')

  - if defined? Sinatra::RbbtRESTWorkflow and Sinatra::RbbtRESTWorkflow::WORKFLOWS
    - expoted_workflows = Sinatra::RbbtRESTWorkflow::WORKFLOWS.collect do |workflow|
      - next if workflow.asynchronous_exports.empty? and workflow.synchronous_exports.empty? and workflow.exec_exports.empty?
      - workflow

    - expoted_workflows.compact!
    - if expoted_workflows.any?
      .ui.dropdown.item.right
        %i.icon.dropdown
        Workflows
        .menu
          - expoted_workflows.each do |workflow|
            %a.item(href='#{'/' + workflow.to_s}')= workflow.to_s


  %a.item.login.right(href='/login')
    %i.icon.user
    - if user
      = user

  %a.item.right(href='/help') Help

  %a.item.reload(href='#')
    %i.icon.repeat

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbbt-rest-1.6.22 share/views/layout/top_menu.haml
rbbt-rest-1.6.21 share/views/layout/top_menu.haml
rbbt-rest-1.6.20 share/views/layout/top_menu.haml
rbbt-rest-1.6.19 share/views/layout/top_menu.haml
rbbt-rest-1.6.18 share/views/layout/top_menu.haml
rbbt-rest-1.6.17 share/views/layout/top_menu.haml
rbbt-rest-1.6.16 share/views/layout/top_menu.haml
rbbt-rest-1.6.15 share/views/layout/top_menu.haml