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 @@

Edit <%= resource_name.to_s.humanize %>

- - <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> <%= devise_error_messages! %> @@ -30,11 +28,19 @@
<%= f.submit "Update" %>
<% end %> -

Cancel my account

+
+ <%= link_to "Back", :back %> +
-

Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.

+
+

Danger zone

+

+ 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 %> +

+
- <%= link_to "Back", :back %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 9a266a2..7b2f5e3 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,7 +11,7 @@
<%= render :partial => 'fragments/top' %>
-
+
<%= flash_display 'flash' %> <%= yield %>
diff --git a/app/views/layouts/public.html.erb b/app/views/layouts/public.html.erb index 412ba07..1e9a762 100644 --- a/app/views/layouts/public.html.erb +++ b/app/views/layouts/public.html.erb @@ -6,7 +6,7 @@ <%= javascript_include_tag "application" %> <%= csrf_meta_tag %> - +
<%= render :partial => 'fragments/top' %> diff --git a/app/views/pages/about.html.erb b/app/views/pages/about.html.erb index 58255c1..0b0193d 100644 --- a/app/views/pages/about.html.erb +++ b/app/views/pages/about.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/pages/contact.html.erb b/app/views/pages/contact.html.erb index 8cee90c..39a0be5 100644 --- a/app/views/pages/contact.html.erb +++ b/app/views/pages/contact.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/pages/help.html.erb b/app/views/pages/help.html.erb index e9aab89..8f752c4 100644 --- a/app/views/pages/help.html.erb +++ b/app/views/pages/help.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/pages/home.html.erb b/app/views/pages/home.html.erb index 4464f4a..6149994 100644 --- a/app/views/pages/home.html.erb +++ b/app/views/pages/home.html.erb @@ -1,4 +1,4 @@ -
+

Totally Free DNS service for Geeks created by Geeks

diff --git a/app/views/pages/privacy.html.erb b/app/views/pages/privacy.html.erb index 9ac5004..74788f4 100644 --- a/app/views/pages/privacy.html.erb +++ b/app/views/pages/privacy.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/pages/team.html.erb b/app/views/pages/team.html.erb index 6ac063f..0f3f16b 100644 --- a/app/views/pages/team.html.erb +++ b/app/views/pages/team.html.erb @@ -1,4 +1,4 @@ -
+
diff --git a/app/views/pages/terms.html.erb b/app/views/pages/terms.html.erb index 24cf200..68cf7e0 100644 --- a/app/views/pages/terms.html.erb +++ b/app/views/pages/terms.html.erb @@ -1,4 +1,4 @@ -
+