diff --git a/app/assets/stylesheets/overrides.css.erb b/app/assets/stylesheets/overrides.css.erb index 959c3b9..5a96ee2 100644 --- a/app/assets/stylesheets/overrides.css.erb +++ b/app/assets/stylesheets/overrides.css.erb @@ -26,6 +26,7 @@ body.errors #main .inner { #as_domains-active-scaffold .name-column, #as_hosts-active-scaffold .name-column { font-weight: bold; + text-shadow: none; } .flash .alert { diff --git a/app/controllers/hosts_controller.rb b/app/controllers/hosts_controller.rb index 024081d..1ac1292 100644 --- a/app/controllers/hosts_controller.rb +++ b/app/controllers/hosts_controller.rb @@ -2,7 +2,7 @@ class HostsController < ApplicationController active_scaffold :a do |conf| conf.columns = [:name, :host_domain, :content, :ttl, :change_date, :authentication_token] conf.list.columns = [:name, :content, :ttl, :change_date, :authentication_token] - conf.create.columns = [:name, :host_domain, :content, :ttl,] + conf.create.columns = [:name, :host_domain, :content, :ttl] conf.update.columns = [:name, :host_domain, :content, :ttl] conf.list.label = 'Hosts' conf.list.sorting = {:name => :asc} diff --git a/app/models/ability.rb b/app/models/ability.rb index 3602bac..0527f30 100644 --- a/app/models/ability.rb +++ b/app/models/ability.rb @@ -1,10 +1,11 @@ class Ability - CRUD = [:read, :create, :edit, :update, :destroy] + CRUD = [:read, :create, :edit, :destroy] include CanCan::Ability attr_accessor :user attr_accessor :context + # See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilities def initialize(options) @user = options[:user] || User.new @context = options[:context] || :application @@ -14,8 +15,6 @@ class Ability owner_abilities sharing_abilities end - - # See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilities end protected diff --git a/app/views/domains/_list_record_columns.html.erb b/app/views/domains/_list_record_columns.html.erb index 5f9b99e..23d515e 100644 --- a/app/views/domains/_list_record_columns.html.erb +++ b/app/views/domains/_list_record_columns.html.erb @@ -4,7 +4,17 @@ <% authorized = record.authorized_for?(:crud_type => :read, :column => column.name) -%> <% column_value = authorized ? get_column_value(record, column) : active_scaffold_config.list.empty_field_text -%> - <% if column.name == :records %> + <% if column.name == :name %> +