added assets, etc
This commit is contained in:
parent
000d19eaf9
commit
00aa985fce
11
Gemfile
11
Gemfile
|
@ -2,19 +2,18 @@ source "https://rubygems.org"
|
||||||
|
|
||||||
gem "rails", "3.2.12"
|
gem "rails", "3.2.12"
|
||||||
gem "sqlite3"
|
gem "sqlite3"
|
||||||
gem 'activeadmin'
|
|
||||||
gem "meta_search", '>= 1.1.0.pre'
|
gem "meta_search", '>= 1.1.0.pre'
|
||||||
|
gem "rails_config"
|
||||||
|
gem "savon", "~> 2.0"
|
||||||
|
gem "gyoku", "~> 1.0"
|
||||||
|
|
||||||
group :assets do
|
group :assets do
|
||||||
gem "coffee-rails", "~> 3.2.1"
|
gem "coffee-rails", "~> 3.2.1"
|
||||||
gem "gyoku", "~> 1.0"
|
|
||||||
gem 'jquery-rails', "2.3.0"
|
gem 'jquery-rails', "2.3.0"
|
||||||
gem "rails_config"
|
|
||||||
gem "sass-rails", "~> 3.2.3"
|
gem "sass-rails", "~> 3.2.3"
|
||||||
gem "savon", "~> 2.0"
|
|
||||||
gem "uglifier", ">= 1.0.3"
|
gem "uglifier", ">= 1.0.3"
|
||||||
gem "gemsurance"
|
gem "gemsurance"
|
||||||
gem "chosen-rails"
|
gem "chosen-rails"
|
||||||
|
gem "twitter-bootstrap-rails"
|
||||||
|
gem "maskedinput-rails"
|
||||||
end
|
end
|
||||||
|
|
53
Gemfile.lock
53
Gemfile.lock
|
@ -14,18 +14,6 @@ GEM
|
||||||
rack-cache (~> 1.2)
|
rack-cache (~> 1.2)
|
||||||
rack-test (~> 0.6.1)
|
rack-test (~> 0.6.1)
|
||||||
sprockets (~> 2.2.1)
|
sprockets (~> 2.2.1)
|
||||||
activeadmin (0.6.0)
|
|
||||||
arbre (>= 1.0.1)
|
|
||||||
bourbon (>= 1.0.0)
|
|
||||||
devise (>= 1.1.2)
|
|
||||||
fastercsv
|
|
||||||
formtastic (>= 2.0.0)
|
|
||||||
inherited_resources (>= 1.3.1)
|
|
||||||
jquery-rails (>= 1.0.0)
|
|
||||||
kaminari (>= 0.13.0)
|
|
||||||
meta_search (>= 0.9.2)
|
|
||||||
rails (>= 3.0.0)
|
|
||||||
sass (>= 3.1.0)
|
|
||||||
activemodel (3.2.12)
|
activemodel (3.2.12)
|
||||||
activesupport (= 3.2.12)
|
activesupport (= 3.2.12)
|
||||||
builder (~> 3.0.0)
|
builder (~> 3.0.0)
|
||||||
|
@ -43,14 +31,7 @@ GEM
|
||||||
akami (1.2.0)
|
akami (1.2.0)
|
||||||
gyoku (>= 0.4.0)
|
gyoku (>= 0.4.0)
|
||||||
nokogiri (>= 1.4.0)
|
nokogiri (>= 1.4.0)
|
||||||
arbre (1.0.1)
|
|
||||||
activesupport (>= 3.0.0)
|
|
||||||
arel (3.0.3)
|
arel (3.0.3)
|
||||||
atomic (1.1.14)
|
|
||||||
bcrypt-ruby (3.1.2)
|
|
||||||
bourbon (3.1.8)
|
|
||||||
sass (>= 3.2.0)
|
|
||||||
thor
|
|
||||||
builder (3.0.4)
|
builder (3.0.4)
|
||||||
chosen-rails (1.1.0)
|
chosen-rails (1.1.0)
|
||||||
coffee-rails (>= 3.2)
|
coffee-rails (>= 3.2)
|
||||||
|
@ -71,17 +52,8 @@ GEM
|
||||||
sass (~> 3.1)
|
sass (~> 3.1)
|
||||||
compass-rails (1.1.3)
|
compass-rails (1.1.3)
|
||||||
compass (>= 0.12.2)
|
compass (>= 0.12.2)
|
||||||
devise (3.2.2)
|
|
||||||
bcrypt-ruby (~> 3.0)
|
|
||||||
orm_adapter (~> 0.1)
|
|
||||||
railties (>= 3.2.6, < 5)
|
|
||||||
thread_safe (~> 0.1)
|
|
||||||
warden (~> 1.2.3)
|
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
execjs (2.0.2)
|
execjs (2.0.2)
|
||||||
fastercsv (1.5.5)
|
|
||||||
formtastic (2.2.1)
|
|
||||||
actionpack (>= 3.0)
|
|
||||||
fssm (0.2.10)
|
fssm (0.2.10)
|
||||||
gemsurance (0.1.4)
|
gemsurance (0.1.4)
|
||||||
bundler (~> 1.2)
|
bundler (~> 1.2)
|
||||||
|
@ -89,29 +61,21 @@ GEM
|
||||||
git (1.2.6)
|
git (1.2.6)
|
||||||
gyoku (1.1.1)
|
gyoku (1.1.1)
|
||||||
builder (>= 2.1.2)
|
builder (>= 2.1.2)
|
||||||
has_scope (0.6.0.rc)
|
|
||||||
actionpack (>= 3.2, < 5)
|
|
||||||
activesupport (>= 3.2, < 5)
|
|
||||||
hike (1.2.3)
|
hike (1.2.3)
|
||||||
httpi (2.1.0)
|
httpi (2.1.0)
|
||||||
rack
|
rack
|
||||||
rubyntlm (~> 0.3.2)
|
rubyntlm (~> 0.3.2)
|
||||||
i18n (0.6.9)
|
i18n (0.6.9)
|
||||||
inherited_resources (1.4.1)
|
|
||||||
has_scope (~> 0.6.0.rc)
|
|
||||||
responders (~> 1.0.0.rc)
|
|
||||||
journey (1.0.4)
|
journey (1.0.4)
|
||||||
jquery-rails (2.3.0)
|
jquery-rails (2.3.0)
|
||||||
railties (>= 3.0, < 5.0)
|
railties (>= 3.0, < 5.0)
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
json (1.8.1)
|
json (1.8.1)
|
||||||
kaminari (0.15.1)
|
|
||||||
actionpack (>= 3.0.0)
|
|
||||||
activesupport (>= 3.0.0)
|
|
||||||
mail (2.4.4)
|
mail (2.4.4)
|
||||||
i18n (>= 0.4.0)
|
i18n (>= 0.4.0)
|
||||||
mime-types (~> 1.16)
|
mime-types (~> 1.16)
|
||||||
treetop (~> 1.4.8)
|
treetop (~> 1.4.8)
|
||||||
|
maskedinput-rails (1.3.1.0)
|
||||||
meta_search (1.1.3)
|
meta_search (1.1.3)
|
||||||
actionpack (~> 3.1)
|
actionpack (~> 3.1)
|
||||||
activerecord (~> 3.1)
|
activerecord (~> 3.1)
|
||||||
|
@ -123,7 +87,6 @@ GEM
|
||||||
nokogiri (1.6.1)
|
nokogiri (1.6.1)
|
||||||
mini_portile (~> 0.5.0)
|
mini_portile (~> 0.5.0)
|
||||||
nori (2.3.0)
|
nori (2.3.0)
|
||||||
orm_adapter (0.5.0)
|
|
||||||
polyamorous (0.5.0)
|
polyamorous (0.5.0)
|
||||||
activerecord (~> 3.0)
|
activerecord (~> 3.0)
|
||||||
polyglot (0.3.3)
|
polyglot (0.3.3)
|
||||||
|
@ -154,8 +117,6 @@ GEM
|
||||||
rake (10.1.1)
|
rake (10.1.1)
|
||||||
rdoc (3.12.2)
|
rdoc (3.12.2)
|
||||||
json (~> 1.4)
|
json (~> 1.4)
|
||||||
responders (1.0.0)
|
|
||||||
railties (>= 3.2, < 5)
|
|
||||||
rubyntlm (0.3.4)
|
rubyntlm (0.3.4)
|
||||||
sass (3.2.13)
|
sass (3.2.13)
|
||||||
sass-rails (3.2.6)
|
sass-rails (3.2.6)
|
||||||
|
@ -177,18 +138,19 @@ GEM
|
||||||
tilt (~> 1.1, != 1.3.0)
|
tilt (~> 1.1, != 1.3.0)
|
||||||
sqlite3 (1.3.8)
|
sqlite3 (1.3.8)
|
||||||
thor (0.18.1)
|
thor (0.18.1)
|
||||||
thread_safe (0.1.3)
|
|
||||||
atomic
|
|
||||||
tilt (1.4.1)
|
tilt (1.4.1)
|
||||||
treetop (1.4.15)
|
treetop (1.4.15)
|
||||||
polyglot
|
polyglot
|
||||||
polyglot (>= 0.3.1)
|
polyglot (>= 0.3.1)
|
||||||
|
twitter-bootstrap-rails (2.2.8)
|
||||||
|
actionpack (>= 3.1)
|
||||||
|
execjs
|
||||||
|
rails (>= 3.1)
|
||||||
|
railties (>= 3.1)
|
||||||
tzinfo (0.3.38)
|
tzinfo (0.3.38)
|
||||||
uglifier (2.4.0)
|
uglifier (2.4.0)
|
||||||
execjs (>= 0.3.0)
|
execjs (>= 0.3.0)
|
||||||
json (>= 1.8.0)
|
json (>= 1.8.0)
|
||||||
warden (1.2.3)
|
|
||||||
rack (>= 1.0)
|
|
||||||
wasabi (3.2.3)
|
wasabi (3.2.3)
|
||||||
httpi (~> 2.0)
|
httpi (~> 2.0)
|
||||||
mime-types (< 2.0.0)
|
mime-types (< 2.0.0)
|
||||||
|
@ -198,16 +160,17 @@ PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
activeadmin
|
|
||||||
chosen-rails
|
chosen-rails
|
||||||
coffee-rails (~> 3.2.1)
|
coffee-rails (~> 3.2.1)
|
||||||
gemsurance
|
gemsurance
|
||||||
gyoku (~> 1.0)
|
gyoku (~> 1.0)
|
||||||
jquery-rails (= 2.3.0)
|
jquery-rails (= 2.3.0)
|
||||||
|
maskedinput-rails
|
||||||
meta_search (>= 1.1.0.pre)
|
meta_search (>= 1.1.0.pre)
|
||||||
rails (= 3.2.12)
|
rails (= 3.2.12)
|
||||||
rails_config
|
rails_config
|
||||||
sass-rails (~> 3.2.3)
|
sass-rails (~> 3.2.3)
|
||||||
savon (~> 2.0)
|
savon (~> 2.0)
|
||||||
sqlite3
|
sqlite3
|
||||||
|
twitter-bootstrap-rails
|
||||||
uglifier (>= 1.0.3)
|
uglifier (>= 1.0.3)
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
ActiveAdmin.register AdminUser do
|
|
||||||
index do
|
|
||||||
column :email
|
|
||||||
column :current_sign_in_at
|
|
||||||
column :last_sign_in_at
|
|
||||||
column :sign_in_count
|
|
||||||
default_actions
|
|
||||||
end
|
|
||||||
|
|
||||||
filter :email
|
|
||||||
|
|
||||||
form do |f|
|
|
||||||
f.inputs "Admin Details" do
|
|
||||||
f.input :email
|
|
||||||
f.input :password
|
|
||||||
f.input :password_confirmation
|
|
||||||
end
|
|
||||||
f.actions
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,33 +0,0 @@
|
||||||
ActiveAdmin.register_page "Dashboard" do
|
|
||||||
|
|
||||||
menu :priority => 1, :label => proc{ I18n.t("active_admin.dashboard") }
|
|
||||||
|
|
||||||
content :title => proc{ I18n.t("active_admin.dashboard") } do
|
|
||||||
div :class => "blank_slate_container", :id => "dashboard_default_message" do
|
|
||||||
span :class => "blank_slate" do
|
|
||||||
span I18n.t("active_admin.dashboard_welcome.welcome")
|
|
||||||
small I18n.t("active_admin.dashboard_welcome.call_to_action")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Here is an example of a simple dashboard with columns and panels.
|
|
||||||
#
|
|
||||||
# columns do
|
|
||||||
# column do
|
|
||||||
# panel "Recent Posts" do
|
|
||||||
# ul do
|
|
||||||
# Post.recent(5).map do |post|
|
|
||||||
# li link_to(post.title, admin_post_path(post))
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
|
|
||||||
# column do
|
|
||||||
# panel "Info" do
|
|
||||||
# para "Welcome to ActiveAdmin."
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
end # content
|
|
||||||
end
|
|
|
@ -1,3 +0,0 @@
|
||||||
ActiveAdmin.register ListEntry do
|
|
||||||
|
|
||||||
end
|
|
|
@ -1,3 +0,0 @@
|
||||||
ActiveAdmin.register LocalezeCategory do
|
|
||||||
|
|
||||||
end
|
|
|
@ -1 +0,0 @@
|
||||||
//= require active_admin/base
|
|
|
@ -12,5 +12,7 @@
|
||||||
//
|
//
|
||||||
//= require jquery
|
//= require jquery
|
||||||
//= require jquery_ujs
|
//= require jquery_ujs
|
||||||
//= require chosen.jquery
|
//= require twitter/bootstrap
|
||||||
|
//= require maskedinput
|
||||||
|
//= require chosen-jquery
|
||||||
//= require_tree .
|
//= require_tree .
|
||||||
|
|
3
app/assets/javascripts/bootstrap.js.coffee
Normal file
3
app/assets/javascripts/bootstrap.js.coffee
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
jQuery ->
|
||||||
|
$("a[rel~=popover], .has-popover").popover()
|
||||||
|
$("a[rel~=tooltip], .has-tooltip").tooltip()
|
|
@ -1,9 +1,9 @@
|
||||||
$ ->
|
$ ->
|
||||||
$("#list_entry_localeze_categories").chosen max_selected_options: 3
|
$("#list_entry_localeze_categories").chosen max_selected_options: 3
|
||||||
|
$("#how").click ->
|
||||||
|
$(".how").toggle()
|
||||||
elem = $("#chars")
|
elem = $("#chars")
|
||||||
$("#list_entry_Phone").mask "(999) 999-9999"
|
|
||||||
$("#list_entry_altnumber").mask "(999) 999-9999"
|
|
||||||
$("#list_entry_fax").mask "(999) 999-9999"
|
|
||||||
$("#set_all").click all_days_same
|
$("#set_all").click all_days_same
|
||||||
$("#set_MF").click all_MF
|
$("#set_MF").click all_MF
|
||||||
$("#set_clear").click clear_times
|
$("#set_clear").click clear_times
|
||||||
|
@ -23,12 +23,13 @@ $ ->
|
||||||
$("#set_all").click all_days_same
|
$("#set_all").click all_days_same
|
||||||
$("#set_MF").click all_MF
|
$("#set_MF").click all_MF
|
||||||
$("#set_clear").click clear_times
|
$("#set_clear").click clear_times
|
||||||
$("#how").click ->
|
|
||||||
$(".how").toggle()
|
|
||||||
|
|
||||||
for i in [0..9]
|
for i in [0..9]
|
||||||
$("#payment_types_commadelimited_#{i}").click clear_payment_types
|
$("#payment_types_commadelimited_#{i}").click clear_payment_types
|
||||||
$("#open247").click open247
|
|
||||||
|
$("#list_entry_Phone").mask "(999) 999-9999"
|
||||||
|
$("#list_entry_altnumber").mask "(999) 999-9999"
|
||||||
|
$("#list_entry_fax").mask "(999) 999-9999"
|
||||||
|
|
||||||
open247 = ->
|
open247 = ->
|
||||||
if $(this).is(":checked")
|
if $(this).is(":checked")
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
// SASS variable overrides must be declared before loading up Active Admin's styles.
|
|
||||||
//
|
|
||||||
// To view the variables that Active Admin provides, take a look at
|
|
||||||
// `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the
|
|
||||||
// Active Admin source.
|
|
||||||
//
|
|
||||||
// For example, to change the sidebar width:
|
|
||||||
// $sidebar-width: 242px;
|
|
||||||
|
|
||||||
// Active Admin's got SASS!
|
|
||||||
@import "active_admin/mixins";
|
|
||||||
@import "active_admin/base";
|
|
||||||
|
|
||||||
// Overriding any non-variable SASS must be done after the fact.
|
|
||||||
// For example, to change the default status-tag color:
|
|
||||||
//
|
|
||||||
// body.active_admin {
|
|
||||||
// .status_tag { background: #6090DB; }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// Notice that Active Admin CSS rules are nested within a
|
|
||||||
// 'body.active_admin' selector to prevent conflicts with
|
|
||||||
// other pages in the app. It is best to wrap your changes in a
|
|
||||||
// namespace so they are properly recognized. You have options
|
|
||||||
// if you e.g. want different styles for different namespaces:
|
|
||||||
//
|
|
||||||
// .active_admin applies to any Active Admin namespace
|
|
||||||
// .admin_namespace applies to the admin namespace (eg: /admin)
|
|
||||||
// .other_namespace applies to a custom namespace named other (eg: /other)
|
|
|
@ -10,5 +10,8 @@
|
||||||
*
|
*
|
||||||
*= require_self
|
*= require_self
|
||||||
*= require chosen
|
*= require chosen
|
||||||
|
*= require list_entry
|
||||||
|
*= require bootstrap_and_overrides
|
||||||
|
*= require superhero.min
|
||||||
*= require_tree .
|
*= require_tree .
|
||||||
*/
|
*/
|
||||||
|
|
7
app/assets/stylesheets/bootstrap_and_overrides.css
vendored
Normal file
7
app/assets/stylesheets/bootstrap_and_overrides.css
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
/*
|
||||||
|
=require twitter-bootstrap-static/bootstrap
|
||||||
|
|
||||||
|
Use Font Awesome icons (default)
|
||||||
|
To use Glyphicons sprites instead of Font Awesome, replace with "require twitter-bootstrap-static/sprites"
|
||||||
|
=require twitter-bootstrap-static/fontawesome
|
||||||
|
*/
|
|
@ -1,3 +1,117 @@
|
||||||
// Place all the styles related to the ListEntry controller here.
|
html, body {
|
||||||
// They will automatically be included in application.css.
|
height: 100%;
|
||||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
}
|
||||||
|
|
||||||
|
.required label:before {
|
||||||
|
content: "* ";
|
||||||
|
color: #f00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control-group.required .controls label {
|
||||||
|
font-weight: normal;
|
||||||
|
&:before {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
width: 300px ! important;
|
||||||
|
height: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.controls select {
|
||||||
|
width: 300px;
|
||||||
|
height: 1.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
select[id*="hours"] {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
label[for*="close"] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.help-block {
|
||||||
|
font-size: 11px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.required {
|
||||||
|
label {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
> input {
|
||||||
|
background-color: whiteSmoke;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrap {
|
||||||
|
min-height: 100%;
|
||||||
|
height: auto !important;
|
||||||
|
height: 100%;
|
||||||
|
/* Negative indent footer by it's height */
|
||||||
|
margin: 0 auto -90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#push {
|
||||||
|
height: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#footer {
|
||||||
|
height: 90px;
|
||||||
|
/*padding-top: 20px;*/
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#how {
|
||||||
|
cursor: hand;
|
||||||
|
cursor: pointer;
|
||||||
|
float: right;
|
||||||
|
&:hover {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.how {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.checkmark {
|
||||||
|
font-size: 72pt;
|
||||||
|
color: #00dd00;
|
||||||
|
}
|
||||||
|
|
||||||
|
.xmark {
|
||||||
|
font-size: 72pt;
|
||||||
|
color: dd0000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
label.error {
|
||||||
|
padding-top: 4px;
|
||||||
|
color: #c76e6d;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.staging-container {
|
||||||
|
bottom: 0px;
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 52;
|
||||||
|
div {
|
||||||
|
background: rgba(0, 124, 204, 0.95);
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
width: 100%;
|
||||||
|
margin: auto;
|
||||||
|
padding: 6px 0 5px 0;
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,4 @@
|
||||||
class ListEntriesController < ApplicationController
|
class ListEntriesController < ApplicationController
|
||||||
layout "listpush"
|
|
||||||
def new
|
def new
|
||||||
@listentry = ListEntry.new
|
@listentry = ListEntry.new
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
class AdminUser < ActiveRecord::Base
|
|
||||||
# Include default devise modules. Others available are:
|
|
||||||
# :confirmable, :lockable, :timeoutable and :omniauthable
|
|
||||||
devise :database_authenticatable,
|
|
||||||
:recoverable, :rememberable, :trackable, :validatable
|
|
||||||
|
|
||||||
# Setup accessible (or protected) attributes for your model
|
|
||||||
attr_accessible :email, :password, :password_confirmation, :remember_me
|
|
||||||
# attr_accessible :title, :body
|
|
||||||
end
|
|
|
@ -1,12 +0,0 @@
|
||||||
<h2>Resend confirmation instructions</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => confirmation_path(resource_name), :html => { :method => :post }) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
|
|
||||||
<div><%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<div><%= f.submit "Resend confirmation instructions" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
|
@ -1,5 +0,0 @@
|
||||||
<p>Welcome <%= @email %>!</p>
|
|
||||||
|
|
||||||
<p>You can confirm your account email through the link below:</p>
|
|
||||||
|
|
||||||
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @token) %></p>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<p>Hello <%= @resource.email %>!</p>
|
|
||||||
|
|
||||||
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
|
|
||||||
|
|
||||||
<p><%= link_to 'Change my password', edit_password_url(@resource, :reset_password_token => @token) %></p>
|
|
||||||
|
|
||||||
<p>If you didn't request this, please ignore this email.</p>
|
|
||||||
<p>Your password won't change until you access the link above and create a new one.</p>
|
|
|
@ -1,7 +0,0 @@
|
||||||
<p>Hello <%= @resource.email %>!</p>
|
|
||||||
|
|
||||||
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
|
|
||||||
|
|
||||||
<p>Click the link below to unlock your account:</p>
|
|
||||||
|
|
||||||
<p><%= link_to 'Unlock my account', unlock_url(@resource, :unlock_token => @token) %></p>
|
|
|
@ -1,16 +0,0 @@
|
||||||
<h2>Change your password</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
<%= f.hidden_field :reset_password_token %>
|
|
||||||
|
|
||||||
<div><%= f.label :password, "New password" %><br />
|
|
||||||
<%= f.password_field :password, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<div><%= f.label :password_confirmation, "Confirm new password" %><br />
|
|
||||||
<%= f.password_field :password_confirmation %></div>
|
|
||||||
|
|
||||||
<div><%= f.submit "Change my password" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<h2>Forgot your password?</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
|
|
||||||
<div><%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<div><%= f.submit "Send me reset password instructions" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
|
@ -1,29 +0,0 @@
|
||||||
<h2>Edit <%= resource_name.to_s.humanize %></h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
|
|
||||||
<div><%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
|
||||||
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div><%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
|
|
||||||
<%= f.password_field :password, :autocomplete => "off" %></div>
|
|
||||||
|
|
||||||
<div><%= f.label :password_confirmation %><br />
|
|
||||||
<%= f.password_field :password_confirmation %></div>
|
|
||||||
|
|
||||||
<div><%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
|
|
||||||
<%= f.password_field :current_password %></div>
|
|
||||||
|
|
||||||
<div><%= f.submit "Update" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<h3>Cancel my account</h3>
|
|
||||||
|
|
||||||
<p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), :data => { :confirm => "Are you sure?" }, :method => :delete %></p>
|
|
||||||
|
|
||||||
<%= link_to "Back", :back %>
|
|
|
@ -1,18 +0,0 @@
|
||||||
<h2>Sign up</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name)) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
|
|
||||||
<div><%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<div><%= f.label :password %><br />
|
|
||||||
<%= f.password_field :password %></div>
|
|
||||||
|
|
||||||
<div><%= f.label :password_confirmation %><br />
|
|
||||||
<%= f.password_field :password_confirmation %></div>
|
|
||||||
|
|
||||||
<div><%= f.submit "Sign up" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
|
@ -1,17 +0,0 @@
|
||||||
<h2>Sign in</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
|
||||||
<div><%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<div><%= f.label :password %><br />
|
|
||||||
<%= f.password_field :password %></div>
|
|
||||||
|
|
||||||
<% if devise_mapping.rememberable? -%>
|
|
||||||
<div><%= f.check_box :remember_me %> <%= f.label :remember_me %></div>
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<div><%= f.submit "Sign in" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
|
@ -1,25 +0,0 @@
|
||||||
<%- if controller_name != 'sessions' %>
|
|
||||||
<%= link_to "Sign in", new_session_path(resource_name) %><br />
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%- if devise_mapping.registerable? && controller_name != 'registrations' %>
|
|
||||||
<%= link_to "Sign up", new_registration_path(resource_name) %><br />
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
|
|
||||||
<%= link_to "Forgot your password?", new_password_path(resource_name) %><br />
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
|
|
||||||
<%= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name) %><br />
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
|
|
||||||
<%= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name) %><br />
|
|
||||||
<% end -%>
|
|
||||||
|
|
||||||
<%- if devise_mapping.omniauthable? %>
|
|
||||||
<%- resource_class.omniauth_providers.each do |provider| %>
|
|
||||||
<%= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider) %><br />
|
|
||||||
<% end -%>
|
|
||||||
<% end -%>
|
|
|
@ -1,12 +0,0 @@
|
||||||
<h2>Resend unlock instructions</h2>
|
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => unlock_path(resource_name), :html => { :method => :post }) do |f| %>
|
|
||||||
<%= devise_error_messages! %>
|
|
||||||
|
|
||||||
<div><%= f.label :email %><br />
|
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
|
||||||
|
|
||||||
<div><%= f.submit "Resend unlock instructions" %></div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
|
|
@ -2,14 +2,12 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Listpush</title>
|
<title>Listpush</title>
|
||||||
<%= stylesheet_link_tag "application", :media => "all" %>
|
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
||||||
|
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<p class="notice"><%= notice %></p>
|
|
||||||
<p class="alert"><%= alert %></p>
|
|
||||||
|
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -6,20 +6,6 @@
|
||||||
<%= stylesheet_link_tag "application", :media => "all" %>
|
<%= stylesheet_link_tag "application", :media => "all" %>
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
|
||||||
<script src="//code.jquery.com/jquery-1.9.1.min.js"></script>
|
|
||||||
|
|
||||||
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
|
|
||||||
<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
|
|
||||||
<link href="//netdna.bootstrapcdn.com/bootswatch/2.3.1/superhero/bootstrap.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
|
|
||||||
<%= stylesheet_link_tag "select2-bootstrap" %>
|
|
||||||
<%= stylesheet_link_tag "listings" %>
|
|
||||||
|
|
||||||
<%= javascript_include_tag "regex_validation" %>
|
|
||||||
<%= javascript_include_tag "jquery.maskedinput.min" %>
|
|
||||||
<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
|
@ -1,210 +0,0 @@
|
||||||
ActiveAdmin.setup do |config|
|
|
||||||
|
|
||||||
# == Site Title
|
|
||||||
#
|
|
||||||
# Set the title that is displayed on the main layout
|
|
||||||
# for each of the active admin pages.
|
|
||||||
#
|
|
||||||
config.site_title = "Listpush"
|
|
||||||
|
|
||||||
# Set the link url for the title. For example, to take
|
|
||||||
# users to your main site. Defaults to no link.
|
|
||||||
#
|
|
||||||
# config.site_title_link = "/"
|
|
||||||
|
|
||||||
# Set an optional image to be displayed for the header
|
|
||||||
# instead of a string (overrides :site_title)
|
|
||||||
#
|
|
||||||
# Note: Recommended image height is 21px to properly fit in the header
|
|
||||||
#
|
|
||||||
# config.site_title_image = "/images/logo.png"
|
|
||||||
|
|
||||||
# == Default Namespace
|
|
||||||
#
|
|
||||||
# Set the default namespace each administration resource
|
|
||||||
# will be added to.
|
|
||||||
#
|
|
||||||
# eg:
|
|
||||||
# config.default_namespace = :hello_world
|
|
||||||
#
|
|
||||||
# This will create resources in the HelloWorld module and
|
|
||||||
# will namespace routes to /hello_world/*
|
|
||||||
#
|
|
||||||
# To set no namespace by default, use:
|
|
||||||
# config.default_namespace = false
|
|
||||||
#
|
|
||||||
# Default:
|
|
||||||
# config.default_namespace = :admin
|
|
||||||
#
|
|
||||||
# You can customize the settings for each namespace by using
|
|
||||||
# a namespace block. For example, to change the site title
|
|
||||||
# within a namespace:
|
|
||||||
#
|
|
||||||
# config.namespace :admin do |admin|
|
|
||||||
# admin.site_title = "Custom Admin Title"
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# This will ONLY change the title for the admin section. Other
|
|
||||||
# namespaces will continue to use the main "site_title" configuration.
|
|
||||||
|
|
||||||
# == User Authentication
|
|
||||||
#
|
|
||||||
# Active Admin will automatically call an authentication
|
|
||||||
# method in a before filter of all controller actions to
|
|
||||||
# ensure that there is a currently logged in admin user.
|
|
||||||
#
|
|
||||||
# This setting changes the method which Active Admin calls
|
|
||||||
# within the controller.
|
|
||||||
config.authentication_method = :authenticate_admin_user!
|
|
||||||
|
|
||||||
|
|
||||||
# == Current User
|
|
||||||
#
|
|
||||||
# Active Admin will associate actions with the current
|
|
||||||
# user performing them.
|
|
||||||
#
|
|
||||||
# This setting changes the method which Active Admin calls
|
|
||||||
# to return the currently logged in user.
|
|
||||||
config.current_user_method = :current_admin_user
|
|
||||||
|
|
||||||
|
|
||||||
# == Logging Out
|
|
||||||
#
|
|
||||||
# Active Admin displays a logout link on each screen. These
|
|
||||||
# settings configure the location and method used for the link.
|
|
||||||
#
|
|
||||||
# This setting changes the path where the link points to. If it's
|
|
||||||
# a string, the strings is used as the path. If it's a Symbol, we
|
|
||||||
# will call the method to return the path.
|
|
||||||
#
|
|
||||||
# Default:
|
|
||||||
config.logout_link_path = :destroy_admin_user_session_path
|
|
||||||
|
|
||||||
# This setting changes the http method used when rendering the
|
|
||||||
# link. For example :get, :delete, :put, etc..
|
|
||||||
#
|
|
||||||
# Default:
|
|
||||||
# config.logout_link_method = :get
|
|
||||||
|
|
||||||
# == Root
|
|
||||||
#
|
|
||||||
# Set the action to call for the root path. You can set different
|
|
||||||
# roots for each namespace.
|
|
||||||
#
|
|
||||||
# Default:
|
|
||||||
# config.root_to = 'dashboard#index'
|
|
||||||
|
|
||||||
# == Admin Comments
|
|
||||||
#
|
|
||||||
# Admin comments allow you to add comments to any model for admin use.
|
|
||||||
# Admin comments are enabled by default.
|
|
||||||
#
|
|
||||||
# Default:
|
|
||||||
# config.allow_comments = true
|
|
||||||
#
|
|
||||||
# You can turn them on and off for any given namespace by using a
|
|
||||||
# namespace config block.
|
|
||||||
#
|
|
||||||
# Eg:
|
|
||||||
# config.namespace :without_comments do |without_comments|
|
|
||||||
# without_comments.allow_comments = false
|
|
||||||
# end
|
|
||||||
|
|
||||||
|
|
||||||
# == Batch Actions
|
|
||||||
#
|
|
||||||
# Enable and disable Batch Actions
|
|
||||||
#
|
|
||||||
config.batch_actions = true
|
|
||||||
|
|
||||||
|
|
||||||
# == Controller Filters
|
|
||||||
#
|
|
||||||
# You can add before, after and around filters to all of your
|
|
||||||
# Active Admin resources and pages from here.
|
|
||||||
#
|
|
||||||
# config.before_filter :do_something_awesome
|
|
||||||
|
|
||||||
|
|
||||||
# == Register Stylesheets & Javascripts
|
|
||||||
#
|
|
||||||
# We recommend using the built in Active Admin layout and loading
|
|
||||||
# up your own stylesheets / javascripts to customize the look
|
|
||||||
# and feel.
|
|
||||||
#
|
|
||||||
# To load a stylesheet:
|
|
||||||
# config.register_stylesheet 'my_stylesheet.css'
|
|
||||||
|
|
||||||
# You can provide an options hash for more control, which is passed along to stylesheet_link_tag():
|
|
||||||
# config.register_stylesheet 'my_print_stylesheet.css', :media => :print
|
|
||||||
#
|
|
||||||
# To load a javascript file:
|
|
||||||
# config.register_javascript 'my_javascript.js'
|
|
||||||
|
|
||||||
|
|
||||||
# == CSV options
|
|
||||||
#
|
|
||||||
# Set the CSV builder separator (default is ",")
|
|
||||||
# config.csv_column_separator = ','
|
|
||||||
#
|
|
||||||
# Set the CSV builder options (default is {})
|
|
||||||
# config.csv_options = {}
|
|
||||||
|
|
||||||
|
|
||||||
# == Menu System
|
|
||||||
#
|
|
||||||
# You can add a navigation menu to be used in your application, or configure a provided menu
|
|
||||||
#
|
|
||||||
# To change the default utility navigation to show a link to your website & a logout btn
|
|
||||||
#
|
|
||||||
# config.namespace :admin do |admin|
|
|
||||||
# admin.build_menu :utility_navigation do |menu|
|
|
||||||
# menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank }
|
|
||||||
# admin.add_logout_button_to_menu menu
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
# If you wanted to add a static menu item to the default menu provided:
|
|
||||||
#
|
|
||||||
# config.namespace :admin do |admin|
|
|
||||||
# admin.build_menu :default do |menu|
|
|
||||||
# menu.add label: "My Great Website", url: "http://www.mygreatwebsite.com", html_options: { target: :blank }
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
|
|
||||||
# == Download Links
|
|
||||||
#
|
|
||||||
# You can disable download links on resource listing pages,
|
|
||||||
# or customize the formats shown per namespace/globally
|
|
||||||
#
|
|
||||||
# To disable/customize for the :admin namespace:
|
|
||||||
#
|
|
||||||
# config.namespace :admin do |admin|
|
|
||||||
#
|
|
||||||
# # Disable the links entirely
|
|
||||||
# admin.download_links = false
|
|
||||||
#
|
|
||||||
# # Only show XML & PDF options
|
|
||||||
# admin.download_links = [:xml, :pdf]
|
|
||||||
#
|
|
||||||
# end
|
|
||||||
|
|
||||||
|
|
||||||
# == Pagination
|
|
||||||
#
|
|
||||||
# Pagination is enabled by default for all resources.
|
|
||||||
# You can control the default per page count for all resources here.
|
|
||||||
#
|
|
||||||
# config.default_per_page = 30
|
|
||||||
|
|
||||||
|
|
||||||
# == Filters
|
|
||||||
#
|
|
||||||
# By default the index screen includes a “Filters” sidebar on the right
|
|
||||||
# hand side with a filter for each attribute of the registered model.
|
|
||||||
# You can enable or disable them for all resources here.
|
|
||||||
#
|
|
||||||
# config.filters = true
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
|
@ -1,254 +0,0 @@
|
||||||
# Use this hook to configure devise mailer, warden hooks and so forth.
|
|
||||||
# Many of these configuration options can be set straight in your model.
|
|
||||||
Devise.setup do |config|
|
|
||||||
# The secret key used by Devise. Devise uses this key to generate
|
|
||||||
# random tokens. Changing this key will render invalid all existing
|
|
||||||
# confirmation, reset password and unlock tokens in the database.
|
|
||||||
config.secret_key = '4c8af15c41868001c76bfd801e7c3c46b70e35c3caab31517ed4f7b6fd6d05ee9d75ffeeaf2593980b05b32cb17e3c13784fcce94c30f62a7bcef0bfc5af68d5'
|
|
||||||
|
|
||||||
# ==> Mailer Configuration
|
|
||||||
# Configure the e-mail address which will be shown in Devise::Mailer,
|
|
||||||
# note that it will be overwritten if you use your own mailer class
|
|
||||||
# with default "from" parameter.
|
|
||||||
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
|
||||||
|
|
||||||
# Configure the class responsible to send e-mails.
|
|
||||||
# config.mailer = 'Devise::Mailer'
|
|
||||||
|
|
||||||
# ==> ORM configuration
|
|
||||||
# Load and configure the ORM. Supports :active_record (default) and
|
|
||||||
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
|
||||||
# available as additional gems.
|
|
||||||
require 'devise/orm/active_record'
|
|
||||||
|
|
||||||
# ==> Configuration for any authentication mechanism
|
|
||||||
# Configure which keys are used when authenticating a user. The default is
|
|
||||||
# just :email. You can configure it to use [:username, :subdomain], so for
|
|
||||||
# authenticating a user, both parameters are required. Remember that those
|
|
||||||
# parameters are used only when authenticating and not when retrieving from
|
|
||||||
# session. If you need permissions, you should implement that in a before filter.
|
|
||||||
# You can also supply a hash where the value is a boolean determining whether
|
|
||||||
# or not authentication should be aborted when the value is not present.
|
|
||||||
# config.authentication_keys = [ :email ]
|
|
||||||
|
|
||||||
# Configure parameters from the request object used for authentication. Each entry
|
|
||||||
# given should be a request method and it will automatically be passed to the
|
|
||||||
# find_for_authentication method and considered in your model lookup. For instance,
|
|
||||||
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
|
||||||
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
|
||||||
# config.request_keys = []
|
|
||||||
|
|
||||||
# Configure which authentication keys should be case-insensitive.
|
|
||||||
# These keys will be downcased upon creating or modifying a user and when used
|
|
||||||
# to authenticate or find a user. Default is :email.
|
|
||||||
config.case_insensitive_keys = [ :email ]
|
|
||||||
|
|
||||||
# Configure which authentication keys should have whitespace stripped.
|
|
||||||
# These keys will have whitespace before and after removed upon creating or
|
|
||||||
# modifying a user and when used to authenticate or find a user. Default is :email.
|
|
||||||
config.strip_whitespace_keys = [ :email ]
|
|
||||||
|
|
||||||
# Tell if authentication through request.params is enabled. True by default.
|
|
||||||
# It can be set to an array that will enable params authentication only for the
|
|
||||||
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
|
||||||
# enable it only for database (email + password) authentication.
|
|
||||||
# config.params_authenticatable = true
|
|
||||||
|
|
||||||
# Tell if authentication through HTTP Auth is enabled. False by default.
|
|
||||||
# It can be set to an array that will enable http authentication only for the
|
|
||||||
# given strategies, for example, `config.http_authenticatable = [:database]` will
|
|
||||||
# enable it only for database authentication. The supported strategies are:
|
|
||||||
# :database = Support basic authentication with authentication key + password
|
|
||||||
# config.http_authenticatable = false
|
|
||||||
|
|
||||||
# If http headers should be returned for AJAX requests. True by default.
|
|
||||||
# config.http_authenticatable_on_xhr = true
|
|
||||||
|
|
||||||
# The realm used in Http Basic Authentication. 'Application' by default.
|
|
||||||
# config.http_authentication_realm = 'Application'
|
|
||||||
|
|
||||||
# It will change confirmation, password recovery and other workflows
|
|
||||||
# to behave the same regardless if the e-mail provided was right or wrong.
|
|
||||||
# Does not affect registerable.
|
|
||||||
# config.paranoid = true
|
|
||||||
|
|
||||||
# By default Devise will store the user in session. You can skip storage for
|
|
||||||
# particular strategies by setting this option.
|
|
||||||
# Notice that if you are skipping storage for all authentication paths, you
|
|
||||||
# may want to disable generating routes to Devise's sessions controller by
|
|
||||||
# passing :skip => :sessions to `devise_for` in your config/routes.rb
|
|
||||||
config.skip_session_storage = [:http_auth]
|
|
||||||
|
|
||||||
# By default, Devise cleans up the CSRF token on authentication to
|
|
||||||
# avoid CSRF token fixation attacks. This means that, when using AJAX
|
|
||||||
# requests for sign in and sign up, you need to get a new CSRF token
|
|
||||||
# from the server. You can disable this option at your own risk.
|
|
||||||
# config.clean_up_csrf_token_on_authentication = true
|
|
||||||
|
|
||||||
# ==> Configuration for :database_authenticatable
|
|
||||||
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
|
||||||
# using other encryptors, it sets how many times you want the password re-encrypted.
|
|
||||||
#
|
|
||||||
# Limiting the stretches to just one in testing will increase the performance of
|
|
||||||
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
|
||||||
# a value less than 10 in other environments.
|
|
||||||
config.stretches = Rails.env.test? ? 1 : 10
|
|
||||||
|
|
||||||
# Setup a pepper to generate the encrypted password.
|
|
||||||
# config.pepper = '4dc6a755d41c2ac41708aa351a33bb44d247ee967f49f8c737193f8f4214511047b80423803659f20503d2983a5509fba8772893fee4519b08d06ca4993023a3'
|
|
||||||
|
|
||||||
# ==> Configuration for :confirmable
|
|
||||||
# A period that the user is allowed to access the website even without
|
|
||||||
# confirming his account. For instance, if set to 2.days, the user will be
|
|
||||||
# able to access the website for two days without confirming his account,
|
|
||||||
# access will be blocked just in the third day. Default is 0.days, meaning
|
|
||||||
# the user cannot access the website without confirming his account.
|
|
||||||
# config.allow_unconfirmed_access_for = 2.days
|
|
||||||
|
|
||||||
# A period that the user is allowed to confirm their account before their
|
|
||||||
# token becomes invalid. For example, if set to 3.days, the user can confirm
|
|
||||||
# their account within 3 days after the mail was sent, but on the fourth day
|
|
||||||
# their account can't be confirmed with the token any more.
|
|
||||||
# Default is nil, meaning there is no restriction on how long a user can take
|
|
||||||
# before confirming their account.
|
|
||||||
# config.confirm_within = 3.days
|
|
||||||
|
|
||||||
# If true, requires any email changes to be confirmed (exactly the same way as
|
|
||||||
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
|
||||||
# db field (see migrations). Until confirmed new email is stored in
|
|
||||||
# unconfirmed email column, and copied to email column on successful confirmation.
|
|
||||||
config.reconfirmable = true
|
|
||||||
|
|
||||||
# Defines which key will be used when confirming an account
|
|
||||||
# config.confirmation_keys = [ :email ]
|
|
||||||
|
|
||||||
# ==> Configuration for :rememberable
|
|
||||||
# The time the user will be remembered without asking for credentials again.
|
|
||||||
# config.remember_for = 2.weeks
|
|
||||||
|
|
||||||
# If true, extends the user's remember period when remembered via cookie.
|
|
||||||
# config.extend_remember_period = false
|
|
||||||
|
|
||||||
# Options to be passed to the created cookie. For instance, you can set
|
|
||||||
# :secure => true in order to force SSL only cookies.
|
|
||||||
# config.rememberable_options = {}
|
|
||||||
|
|
||||||
# ==> Configuration for :validatable
|
|
||||||
# Range for password length. Default is 8..128.
|
|
||||||
config.password_length = 8..128
|
|
||||||
|
|
||||||
# Email regex used to validate email formats. It simply asserts that
|
|
||||||
# one (and only one) @ exists in the given string. This is mainly
|
|
||||||
# to give user feedback and not to assert the e-mail validity.
|
|
||||||
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
|
||||||
|
|
||||||
# ==> Configuration for :timeoutable
|
|
||||||
# The time you want to timeout the user session without activity. After this
|
|
||||||
# time the user will be asked for credentials again. Default is 30 minutes.
|
|
||||||
# config.timeout_in = 30.minutes
|
|
||||||
|
|
||||||
# If true, expires auth token on session timeout.
|
|
||||||
# config.expire_auth_token_on_timeout = false
|
|
||||||
|
|
||||||
# ==> Configuration for :lockable
|
|
||||||
# Defines which strategy will be used to lock an account.
|
|
||||||
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
|
||||||
# :none = No lock strategy. You should handle locking by yourself.
|
|
||||||
# config.lock_strategy = :failed_attempts
|
|
||||||
|
|
||||||
# Defines which key will be used when locking and unlocking an account
|
|
||||||
# config.unlock_keys = [ :email ]
|
|
||||||
|
|
||||||
# Defines which strategy will be used to unlock an account.
|
|
||||||
# :email = Sends an unlock link to the user email
|
|
||||||
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
|
||||||
# :both = Enables both strategies
|
|
||||||
# :none = No unlock strategy. You should handle unlocking by yourself.
|
|
||||||
# config.unlock_strategy = :both
|
|
||||||
|
|
||||||
# Number of authentication tries before locking an account if lock_strategy
|
|
||||||
# is failed attempts.
|
|
||||||
# config.maximum_attempts = 20
|
|
||||||
|
|
||||||
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
|
||||||
# config.unlock_in = 1.hour
|
|
||||||
|
|
||||||
# Warn on the last attempt before the account is locked.
|
|
||||||
# config.last_attempt_warning = false
|
|
||||||
|
|
||||||
# ==> Configuration for :recoverable
|
|
||||||
#
|
|
||||||
# Defines which key will be used when recovering the password for an account
|
|
||||||
# config.reset_password_keys = [ :email ]
|
|
||||||
|
|
||||||
# Time interval you can reset your password with a reset password key.
|
|
||||||
# Don't put a too small interval or your users won't have the time to
|
|
||||||
# change their passwords.
|
|
||||||
config.reset_password_within = 6.hours
|
|
||||||
|
|
||||||
# ==> Configuration for :encryptable
|
|
||||||
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
|
||||||
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
|
||||||
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
|
||||||
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
|
||||||
# REST_AUTH_SITE_KEY to pepper).
|
|
||||||
#
|
|
||||||
# Require the `devise-encryptable` gem when using anything other than bcrypt
|
|
||||||
# config.encryptor = :sha512
|
|
||||||
|
|
||||||
# ==> Scopes configuration
|
|
||||||
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
|
||||||
# "users/sessions/new". It's turned off by default because it's slower if you
|
|
||||||
# are using only default views.
|
|
||||||
# config.scoped_views = false
|
|
||||||
|
|
||||||
# Configure the default scope given to Warden. By default it's the first
|
|
||||||
# devise role declared in your routes (usually :user).
|
|
||||||
# config.default_scope = :user
|
|
||||||
|
|
||||||
# Set this configuration to false if you want /users/sign_out to sign out
|
|
||||||
# only the current scope. By default, Devise signs out all scopes.
|
|
||||||
# config.sign_out_all_scopes = true
|
|
||||||
|
|
||||||
# ==> Navigation configuration
|
|
||||||
# Lists the formats that should be treated as navigational. Formats like
|
|
||||||
# :html, should redirect to the sign in page when the user does not have
|
|
||||||
# access, but formats like :xml or :json, should return 401.
|
|
||||||
#
|
|
||||||
# If you have any extra navigational formats, like :iphone or :mobile, you
|
|
||||||
# should add them to the navigational formats lists.
|
|
||||||
#
|
|
||||||
# The "*/*" below is required to match Internet Explorer requests.
|
|
||||||
# config.navigational_formats = ['*/*', :html]
|
|
||||||
|
|
||||||
# The default HTTP method used to sign out a resource. Default is :delete.
|
|
||||||
config.sign_out_via = :delete
|
|
||||||
|
|
||||||
# ==> OmniAuth
|
|
||||||
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
|
||||||
# up on your models and hooks.
|
|
||||||
# config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
|
|
||||||
|
|
||||||
# ==> Warden configuration
|
|
||||||
# If you want to use other strategies, that are not supported by Devise, or
|
|
||||||
# change the failure app, you can configure them inside the config.warden block.
|
|
||||||
#
|
|
||||||
# config.warden do |manager|
|
|
||||||
# manager.intercept_401 = false
|
|
||||||
# manager.default_strategies(:scope => :user).unshift :some_external_strategy
|
|
||||||
# end
|
|
||||||
|
|
||||||
# ==> Mountable engine configurations
|
|
||||||
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
|
||||||
# is mountable, there are some extra configurations to be taken into account.
|
|
||||||
# The following options are available, assuming the engine is mounted as:
|
|
||||||
#
|
|
||||||
# mount MyEngine, at: '/my_engine'
|
|
||||||
#
|
|
||||||
# The router that invoked `devise_for`, in the example above, would be:
|
|
||||||
# config.router_name = :my_engine
|
|
||||||
#
|
|
||||||
# When using omniauth, Devise cannot automatically set Omniauth path,
|
|
||||||
# so you need to do it manually. For the users scope, it would be:
|
|
||||||
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
|
||||||
end
|
|
18
config/locales/en.bootstrap.yml
Normal file
18
config/locales/en.bootstrap.yml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# Sample localization file for English. Add more files in this directory for other locales.
|
||||||
|
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
|
||||||
|
|
||||||
|
en:
|
||||||
|
helpers:
|
||||||
|
actions: "Actions"
|
||||||
|
links:
|
||||||
|
back: "Back"
|
||||||
|
cancel: "Cancel"
|
||||||
|
confirm: "Are you sure?"
|
||||||
|
destroy: "Delete"
|
||||||
|
new: "New"
|
||||||
|
edit: "Edit"
|
||||||
|
titles:
|
||||||
|
edit: "Edit %{model}"
|
||||||
|
save: "Save %{model}"
|
||||||
|
new: "New %{model}"
|
||||||
|
delete: "Delete %{model}"
|
|
@ -1,8 +1,4 @@
|
||||||
Listpush::Application.routes.draw do
|
Listpush::Application.routes.draw do
|
||||||
devise_for :admin_users, ActiveAdmin::Devise.config
|
|
||||||
ActiveAdmin.routes(self)
|
|
||||||
|
|
||||||
resources :list_entries
|
resources :list_entries
|
||||||
root :to => "home#index"
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
class DeviseCreateAdminUsers < ActiveRecord::Migration
|
|
||||||
def migrate(direction)
|
|
||||||
super
|
|
||||||
# Create a default user
|
|
||||||
AdminUser.create!(:email => 'admin@example.com', :password => 'password', :password_confirmation => 'password') if direction == :up
|
|
||||||
end
|
|
||||||
|
|
||||||
def change
|
|
||||||
create_table(:admin_users) do |t|
|
|
||||||
## Database authenticatable
|
|
||||||
t.string :email, :null => false, :default => ""
|
|
||||||
t.string :encrypted_password, :null => false, :default => ""
|
|
||||||
|
|
||||||
## Recoverable
|
|
||||||
t.string :reset_password_token
|
|
||||||
t.datetime :reset_password_sent_at
|
|
||||||
|
|
||||||
## Rememberable
|
|
||||||
t.datetime :remember_created_at
|
|
||||||
|
|
||||||
## Trackable
|
|
||||||
t.integer :sign_in_count, :default => 0, :null => false
|
|
||||||
t.datetime :current_sign_in_at
|
|
||||||
t.datetime :last_sign_in_at
|
|
||||||
t.string :current_sign_in_ip
|
|
||||||
t.string :last_sign_in_ip
|
|
||||||
|
|
||||||
## Confirmable
|
|
||||||
# t.string :confirmation_token
|
|
||||||
# t.datetime :confirmed_at
|
|
||||||
# t.datetime :confirmation_sent_at
|
|
||||||
# t.string :unconfirmed_email # Only if using reconfirmable
|
|
||||||
|
|
||||||
## Lockable
|
|
||||||
# t.integer :failed_attempts, :default => 0, :null => false # Only if lock strategy is :failed_attempts
|
|
||||||
# t.string :unlock_token # Only if unlock strategy is :email or :both
|
|
||||||
# t.datetime :locked_at
|
|
||||||
|
|
||||||
|
|
||||||
t.timestamps
|
|
||||||
end
|
|
||||||
|
|
||||||
add_index :admin_users, :email, :unique => true
|
|
||||||
add_index :admin_users, :reset_password_token, :unique => true
|
|
||||||
# add_index :admin_users, :confirmation_token, :unique => true
|
|
||||||
# add_index :admin_users, :unlock_token, :unique => true
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,17 +0,0 @@
|
||||||
class CreateAdminNotes < ActiveRecord::Migration
|
|
||||||
def self.up
|
|
||||||
create_table :admin_notes do |t|
|
|
||||||
t.string :resource_id, :null => false
|
|
||||||
t.string :resource_type, :null => false
|
|
||||||
t.references :admin_user, :polymorphic => true
|
|
||||||
t.text :body
|
|
||||||
t.timestamps
|
|
||||||
end
|
|
||||||
add_index :admin_notes, [:resource_type, :resource_id]
|
|
||||||
add_index :admin_notes, [:admin_user_type, :admin_user_id]
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.down
|
|
||||||
drop_table :admin_notes
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,26 +0,0 @@
|
||||||
class MoveAdminNotesToComments < ActiveRecord::Migration
|
|
||||||
def self.up
|
|
||||||
remove_index :admin_notes, [:admin_user_type, :admin_user_id]
|
|
||||||
rename_table :admin_notes, :active_admin_comments
|
|
||||||
rename_column :active_admin_comments, :admin_user_type, :author_type
|
|
||||||
rename_column :active_admin_comments, :admin_user_id, :author_id
|
|
||||||
add_column :active_admin_comments, :namespace, :string
|
|
||||||
add_index :active_admin_comments, [:namespace]
|
|
||||||
add_index :active_admin_comments, [:author_type, :author_id]
|
|
||||||
|
|
||||||
# Update all the existing comments to the default namespace
|
|
||||||
say "Updating any existing comments to the #{ActiveAdmin.application.default_namespace} namespace."
|
|
||||||
comments_table_name = ActiveRecord::Migrator.proper_table_name("active_admin_comments")
|
|
||||||
execute "UPDATE #{comments_table_name} SET namespace='#{ActiveAdmin.application.default_namespace}'"
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.down
|
|
||||||
remove_index :active_admin_comments, :column => [:author_type, :author_id]
|
|
||||||
remove_index :active_admin_comments, :column => [:namespace]
|
|
||||||
remove_column :active_admin_comments, :namespace
|
|
||||||
rename_column :active_admin_comments, :author_id, :admin_user_id
|
|
||||||
rename_column :active_admin_comments, :author_type, :admin_user_type
|
|
||||||
rename_table :active_admin_comments, :admin_notes
|
|
||||||
add_index :admin_notes, [:admin_user_type, :admin_user_id]
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,7 +0,0 @@
|
||||||
/*
|
|
||||||
Masked Input plugin for jQuery
|
|
||||||
Copyright (c) 2007-2013 Josh Bush (digitalbush.com)
|
|
||||||
Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license)
|
|
||||||
Version: 1.3.1
|
|
||||||
*/
|
|
||||||
(function(e){function t(){var e=document.createElement("input"),t="onpaste";return e.setAttribute(t,""),"function"==typeof e[t]?"paste":"input"}var n,a=t()+".mask",r=navigator.userAgent,i=/iphone/i.test(r),o=/android/i.test(r);e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each(function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&(n=this.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())})):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,r){var c,l,s,u,f,h;return!t&&this.length>0?(c=e(this[0]),c.data(e.mask.dataName)()):(r=e.extend({placeholder:e.mask.placeholder,completed:null},r),l=e.mask.definitions,s=[],u=h=t.length,f=null,e.each(t.split(""),function(e,t){"?"==t?(h--,u=e):l[t]?(s.push(RegExp(l[t])),null===f&&(f=s.length-1)):s.push(null)}),this.trigger("unmask").each(function(){function c(e){for(;h>++e&&!s[e];);return e}function d(e){for(;--e>=0&&!s[e];);return e}function m(e,t){var n,a;if(!(0>e)){for(n=e,a=c(t);h>n;n++)if(s[n]){if(!(h>a&&s[n].test(R[a])))break;R[n]=R[a],R[a]=r.placeholder,a=c(a)}b(),x.caret(Math.max(f,e))}}function p(e){var t,n,a,i;for(t=e,n=r.placeholder;h>t;t++)if(s[t]){if(a=c(t),i=R[t],R[t]=n,!(h>a&&s[a].test(i)))break;n=i}}function g(e){var t,n,a,r=e.which;8===r||46===r||i&&127===r?(t=x.caret(),n=t.begin,a=t.end,0===a-n&&(n=46!==r?d(n):a=c(n-1),a=46===r?c(a):a),k(n,a),m(n,a-1),e.preventDefault()):27==r&&(x.val(S),x.caret(0,y()),e.preventDefault())}function v(t){var n,a,i,l=t.which,u=x.caret();t.ctrlKey||t.altKey||t.metaKey||32>l||l&&(0!==u.end-u.begin&&(k(u.begin,u.end),m(u.begin,u.end-1)),n=c(u.begin-1),h>n&&(a=String.fromCharCode(l),s[n].test(a)&&(p(n),R[n]=a,b(),i=c(n),o?setTimeout(e.proxy(e.fn.caret,x,i),0):x.caret(i),r.completed&&i>=h&&r.completed.call(x))),t.preventDefault())}function k(e,t){var n;for(n=e;t>n&&h>n;n++)s[n]&&(R[n]=r.placeholder)}function b(){x.val(R.join(""))}function y(e){var t,n,a=x.val(),i=-1;for(t=0,pos=0;h>t;t++)if(s[t]){for(R[t]=r.placeholder;pos++<a.length;)if(n=a.charAt(pos-1),s[t].test(n)){R[t]=n,i=t;break}if(pos>a.length)break}else R[t]===a.charAt(pos)&&t!==u&&(pos++,i=t);return e?b():u>i+1?(x.val(""),k(0,h)):(b(),x.val(x.val().substring(0,i+1))),u?t:f}var x=e(this),R=e.map(t.split(""),function(e){return"?"!=e?l[e]?r.placeholder:e:void 0}),S=x.val();x.data(e.mask.dataName,function(){return e.map(R,function(e,t){return s[t]&&e!=r.placeholder?e:null}).join("")}),x.attr("readonly")||x.one("unmask",function(){x.unbind(".mask").removeData(e.mask.dataName)}).bind("focus.mask",function(){clearTimeout(n);var e;S=x.val(),e=y(),n=setTimeout(function(){b(),e==t.length?x.caret(0,e):x.caret(e)},10)}).bind("blur.mask",function(){y(),x.val()!=S&&x.change()}).bind("keydown.mask",g).bind("keypress.mask",v).bind(a,function(){setTimeout(function(){var e=y(!0);x.caret(e),r.completed&&e==x.val().length&&r.completed.call(x)},0)}),y()}))}})})(jQuery);
|
|
|
@ -134,3 +134,4 @@
|
||||||
// return results;
|
// return results;
|
||||||
// });
|
// });
|
||||||
// };
|
// };
|
||||||
|
;
|
|
@ -1,90 +0,0 @@
|
||||||
html, body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.required label:before {
|
|
||||||
content: "* ";
|
|
||||||
color: #f00;
|
|
||||||
}
|
|
||||||
.control-group.required .controls label {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
.control-group.required .controls label:before {
|
|
||||||
content: none;
|
|
||||||
}
|
|
||||||
input[type="text"] {
|
|
||||||
width: 300px ! important;
|
|
||||||
height:1.8em;
|
|
||||||
}
|
|
||||||
.controls select {
|
|
||||||
width: 300px;
|
|
||||||
height:1.8em;
|
|
||||||
}
|
|
||||||
select[id*="hours"] {
|
|
||||||
width:100px;
|
|
||||||
}
|
|
||||||
label[for*="close"] {
|
|
||||||
display:none;
|
|
||||||
}
|
|
||||||
.help-block {
|
|
||||||
font-size: 11px;
|
|
||||||
}
|
|
||||||
.required label { font-weight: bold;}
|
|
||||||
.required > input { background-color: whiteSmoke; }
|
|
||||||
#wrap {
|
|
||||||
min-height: 100%;
|
|
||||||
height: auto !important;
|
|
||||||
height: 100%;
|
|
||||||
/* Negative indent footer by it's height */
|
|
||||||
margin: 0 auto -90px;
|
|
||||||
}
|
|
||||||
#push, #footer {
|
|
||||||
height: 90px;
|
|
||||||
}
|
|
||||||
#footer {
|
|
||||||
/*padding-top: 20px;*/
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#how { cursor: hand; cursor: pointer; float:right; }
|
|
||||||
#how:hover{
|
|
||||||
color:#fff;
|
|
||||||
}
|
|
||||||
.how {display:none;}
|
|
||||||
.page-header { margin-bottom:0px;}
|
|
||||||
|
|
||||||
.checkmark {
|
|
||||||
font-size:72pt;
|
|
||||||
color:#00dd00;
|
|
||||||
}
|
|
||||||
.xmark{
|
|
||||||
font-size:72pt;
|
|
||||||
color:dd0000;
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu {
|
|
||||||
margin:0;
|
|
||||||
padding:0;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
label.error {
|
|
||||||
padding-top:4px;
|
|
||||||
color: #c76e6d;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
div.staging-container {
|
|
||||||
bottom:0px;
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
z-index: 52;
|
|
||||||
}
|
|
||||||
div.staging-container div {
|
|
||||||
background: rgba(0,124,204,0.95);
|
|
||||||
text-align: center;
|
|
||||||
font-weight: bold;
|
|
||||||
width: 100%;
|
|
||||||
margin: auto;
|
|
||||||
padding: 6px 0 5px 0;
|
|
||||||
}
|
|
11
test/fixtures/admin_users.yml
vendored
11
test/fixtures/admin_users.yml
vendored
|
@ -1,11 +0,0 @@
|
||||||
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
|
||||||
|
|
||||||
# This model initially had no columns defined. If you add columns to the
|
|
||||||
# model remove the '{}' from the fixture names and add the columns immediately
|
|
||||||
# below each fixture, per the syntax in the comments below
|
|
||||||
#
|
|
||||||
one: {}
|
|
||||||
# column: value
|
|
||||||
#
|
|
||||||
two: {}
|
|
||||||
# column: value
|
|
|
@ -1,7 +0,0 @@
|
||||||
require 'test_helper'
|
|
||||||
|
|
||||||
class AdminUserTest < ActiveSupport::TestCase
|
|
||||||
# test "the truth" do
|
|
||||||
# assert true
|
|
||||||
# end
|
|
||||||
end
|
|
9
vendor/assets/stylesheets/superhero.min.css
vendored
Normal file
9
vendor/assets/stylesheets/superhero.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user