diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 065e5d5..a406fb6 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -5,6 +5,7 @@ // the compiled file. // //= require jquery +//= require jquery-ui //= require jquery_ujs //= require pjax //= require active_scaffold diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 49a088c..ba562e5 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -2,13 +2,20 @@ * This is a manifest file that'll automatically include all the stylesheets available in this directory * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at * the top of the compiled file, but it's generally better to create a new file per style scope. + *= require normalize + *= require theme/base -*= require theme/default +*= require theme/theme *= require theme/error_explanation +*= require theme/public +*= require theme/application + *= require pages/home *= require pages/team *= require pages/help +*= require pages/edit_account + *= require active_scaffold *= require overrides *= require slides diff --git a/app/assets/stylesheets/pages/edit_account.css.scss b/app/assets/stylesheets/pages/edit_account.css.scss new file mode 100644 index 0000000..34f705b --- /dev/null +++ b/app/assets/stylesheets/pages/edit_account.css.scss @@ -0,0 +1,11 @@ +.danger-zone { + h3 { + color: #cc4831; + } + form input { + color: #cc4831; + } + p { + color: #cc4831; + } +} \ No newline at end of file diff --git a/app/assets/stylesheets/pages/home.css.scss b/app/assets/stylesheets/pages/home.css.scss index 392743e..f814db3 100644 --- a/app/assets/stylesheets/pages/home.css.scss +++ b/app/assets/stylesheets/pages/home.css.scss @@ -1,12 +1,6 @@ @import "compass/css3/text-shadow"; @import "ui/buttons"; -.home-page .header-inner { - width: 77%; - margin: auto; - position: relative; -} - #main .home-page-block { background-color: #333333; .content h1 { diff --git a/app/assets/stylesheets/theme/application.css.scss b/app/assets/stylesheets/theme/application.css.scss new file mode 100644 index 0000000..4d06abe --- /dev/null +++ b/app/assets/stylesheets/theme/application.css.scss @@ -0,0 +1,8 @@ +.application #main { + width: 100%; +} + +.application #main .article { + width: 77%; + margin: auto; +} \ No newline at end of file diff --git a/app/assets/stylesheets/theme/error_explanation.css.scss b/app/assets/stylesheets/theme/error_explanation.css.scss index c8b01d5..879a505 100644 --- a/app/assets/stylesheets/theme/error_explanation.css.scss +++ b/app/assets/stylesheets/theme/error_explanation.css.scss @@ -16,4 +16,4 @@ border: 1px solid #cc4831; } } -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/theme/public.css.scss b/app/assets/stylesheets/theme/public.css.scss new file mode 100644 index 0000000..3c5de92 --- /dev/null +++ b/app/assets/stylesheets/theme/public.css.scss @@ -0,0 +1,5 @@ +.public .header-inner { + width: 77%; + margin: auto; + position: relative; +} diff --git a/app/assets/stylesheets/theme/default.scss b/app/assets/stylesheets/theme/theme.scss similarity index 100% rename from app/assets/stylesheets/theme/default.scss rename to app/assets/stylesheets/theme/theme.scss diff --git a/app/models/user.rb b/app/models/user.rb index 2c59360..afa2dfb 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -16,7 +16,8 @@ class User < ActiveRecord::Base # Setup accessible (or protected) attributes for your model attr_accessible :email, :password, :password_confirmation, :remember_me, :first_name, :last_name - has_many :records + has_many :domains, :inverse_of => :user, :dependent => :destroy + has_many :records, :inverse_of => :user, :dependent => :destroy def name first_name + ' ' + last_name diff --git a/app/views/devise/registrations/edit.html.erb b/app/views/devise/registrations/edit.html.erb index a464d6d..f7ffeba 100644 --- a/app/views/devise/registrations/edit.html.erb +++ b/app/views/devise/registrations/edit.html.erb @@ -4,8 +4,6 @@
Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.
++ If you cancel your account all your data will be deleted! + <%= button_to "Cancel account", registration_path(resource_name), + :confirm => "All your data will be deleted! Are you sure?", :method => :delete %> +
+