Module: Workbench::LayoutHelper

Defined in:
app/helpers/workbench/layout_helper.rb

Overview

helpers specifically use in /views/layouts only

Instance Method Summary (collapse)

Instance Method Details

- (Object) sandbox_css



5
6
7
# File 'app/helpers/workbench/layout_helper.rb', line 5

def sandbox_css
  Settings.sandbox_mode? ? 'sandbox' : nil
end

- (Object) sandbox_details_tag



9
10
11
12
13
14
15
16
17
18
19
# File 'app/helpers/workbench/layout_helper.rb', line 9

def sandbox_details_tag
  if Settings.sandbox_mode? 
    (:span) do
      [ 'SANDBOX - build',
        link_to(Settings.sandbox_commit_sha[0..7], 'https://github.com/SpeciesFileGroup/taxonworks/tree/' + Settings.sandbox_commit_sha, class: [:regular_type]), 
        'on',  
        Settings.sandbox_commit_date 
      ].join(' ').html_safe
    end
  end 
end