This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This module provides generic XLSX import/export capabilities. | |
# For more details check the gems; | |
# Exporting: 'caxlsx', https://github.com/caxlsx/caxlsx.git | |
# Importing: 'xsv', https://github.com/martijn/xsv | |
# | |
module ExcelIntegration | |
def self.included(base) | |
base.send :include, InstanceMethods | |
base.extend ClassMethods | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trix-toolbar { | |
margin-bottom: 1em; | |
.trix-button-row { | |
@extend .btn-toolbar; | |
justify-content: space-between; | |
.trix-button-group { | |
@extend .btn-group; | |
.trix-button { | |
@extend .btn; | |
@extend .btn-outline-secondary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] = "test" | |
require File.expand_path("../../config/environment", __FILE__) | |
require "rails/test_help" | |
require "minitest/reporters" | |
require 'capybara/rails' | |
require 'capybara/minitest' | |
require 'selenium-webdriver' | |
require 'capybara-screenshot/minitest' | |
require "database_cleaner" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
json.extract! photo, :id, :image_data, :created_at, :updated_at | |
json.url photo_url(photo, format: :html) | |
json.image_url image_url_photo_url(photo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%nav.navbar.sticky-top.navbar-expand.navbar-light.bg-light.border-bottom-1 | |
.navbar-brand | |
= link_to root_path do | |
= image_tag 'dna-logo-col.svg', alt:"dna" | |
- if user_signed_in? | |
%span.navbar-text.py-0 | |
= yield :page_heading | |
%button.navbar-toggler{type:"button", data:{toggle:"collapse", target:"#navbarTogglerDemo01"}, aria:{controls:"navbarTogglerDemo01", expanded:"false", label:"Toggle navigation"}} | |
%span.navbar-toggler-icon | |
.collapse.navbar-collapse#navbarTogglerDemo01 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%html{:lang => "en"} | |
%head | |
%meta{charset: "utf-8"} | |
%meta{content: "IE=edge", "http-equiv" => "X-UA-Compatible"} | |
%meta{content: "width=device-width, initial-scale=1", name: "viewport"} | |
%meta{content: "", name: "description"} | |
%meta{content: "", name: "author"} | |
%meta{content: "none", name: "msapplication-config"} | |
%title DNA |