Interface fixes icons,colors

This commit is contained in:
2014-07-09 22:44:42 +05:30
parent 9bd786d053
commit 4bc7c4b001
27 changed files with 179 additions and 48 deletions

View File

@@ -63,7 +63,14 @@ class Ability
can [:delete],Calentry
can :doadmin, User
end
unless user.has_role?("fetadmin")
cannot :delete, Modulgruppe
cannot :delete, Rubrik
cannot :delete, Themengruppe
cannot :delete, Fetprofile
cannot :delete, Studium
cannot :delete, Modul
end
# Rechteverwaltung fuer Neuigkeiten
# can :write, Neuigkeit if user.has_role?("newsmoderator", Neuigkeit.rubrik)

View File

@@ -12,7 +12,7 @@
#
class Gremium < ActiveRecord::Base
TYPEN={1=>"offiziell", 2=>"offiziell-temporär", 3 => "inoffiziell",4=>"inoffiziell-tempo", 11=> "berufungskommission",12=> "habilitationskommission" } # Kategorien, im Wesentlichen wichtig für Listung oder nicht Listung
TYPEN={1=>"offiziell", 2=>"offiziell-notab", 3 => "inoffiziell",4=>"inoffiziell-notab", 11=> "berufungskommission",12=> "habilitationskommission" } # Kategorien, im Wesentlichen wichtig für Listung oder nicht Listung
GESCHLECHT={0=>"saechlich", 1 => "maennlich", 2 => "weiblich"} # Geschlecht des Gremiums zur richtige Deklination
ART2FALL={0=>"des", 1=>"des",2=>"der"} # Artikel 2.Fall abhängig vom Geschlecht
ART4FALL={0=>"das", 1=>"den",2=>"die"} # Artikel 2.Fall abhängig vom Geschlecht

View File

@@ -11,7 +11,7 @@
#
class Rubrik < ActiveRecord::Base
attr_accessible :desc, :name, :prio, :calendar, :public
attr_accessible :desc, :name, :prio, :calendar, :public, :icon, :color
has_many :neuigkeiten, :class_name => "Neuigkeit"
has_many :published, :class_name => "Neuigkeit", :conditions=>["Neuigkeit.published"]
has_many :calentries, :through => :neuigkeiten, :as=>:object

View File

@@ -10,7 +10,7 @@
class Themengruppe < ActiveRecord::Base
WORD_COUNT = 50
attr_accessible :text, :title, :picture, :priority, :public
attr_accessible :text, :title, :picture, :priority, :public, :icon
has_many :themen, class_name: 'Thema'
has_many :fragen, through: :themen