diff --git a/Gemfile b/Gemfile index 19612ae..2cbf68f 100755 --- a/Gemfile +++ b/Gemfile @@ -69,3 +69,4 @@ gem 'haml' #gem 'RedCloth' #gem 'gollum' gem 'awesome_nested_set' +gem 'annotate', ">=2.5.0" diff --git a/Gemfile.lock b/Gemfile.lock index 41200a8..7381438 100755 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -28,6 +28,8 @@ GEM activesupport (3.2.9) i18n (~> 0.6) multi_json (~> 1.0) + annotate (2.5.0) + rake arel (3.0.2) awesome_nested_set (2.1.6) activerecord (>= 3.0.0) @@ -151,6 +153,7 @@ PLATFORMS x86-mingw32 DEPENDENCIES + annotate (>= 2.5.0) awesome_nested_set bootstrap-sass (~> 2.2.0) cancan diff --git a/app/doc/Ability.html b/app/doc/Ability.html new file mode 100644 index 0000000..af4e501 --- /dev/null +++ b/app/doc/Ability.html @@ -0,0 +1,283 @@ + + + + + + +class Ability - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Ability

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Class Methods

+ + +
+ +
+ new(user) + click to toggle source +
+ + +
+ + + + + +
+
# File models/ability.rb, line 3
+  def initialize(user)
+    # Define abilities for the passed in user here. For example:
+    #
+    #   if user.admin?
+    #     can :manage, :all
+    #   else
+    #     can :read, :all
+    #   end
+    # The first argument to `can` is the action you are giving the user permission to do.
+    # If you pass :manage it will apply to every action. Other common actions here are
+    # :read, :create, :update and :destroy.
+    #
+    # The second argument is the resource the user can perform the action on. If you pass
+    # :all it will apply to every resource. Otherwise pass a Ruby class of the resource.
+    #
+    # The third argument is an optional hash of conditions to further filter the objects.
+    # For example, here the user can only update published articles.
+    #
+    #   can :update, Article, :published => true
+    #
+    # See the wiki for details: https://github.com/ryanb/cancan/wiki/Defining-Abilitiescan :manage, :all
+    
+    user ||= User.new # guest user (not logged in)
+    
+    
+    # For Debug allow everything
+    # Remove this line in production environment and for testing user management
+    can :manage, :all     
+    
+    # Rechteverwaltung f�r Studien Modul
+    can :read, Modulgruppe
+    can :manage, Modulgruppe
+
+
+ 
+    # Rechteverwaltung fuer Neuigkeiten
+
+#    can :write, Neuigkeit if user.has_role?("newsmoderator", Neuigkeit.rubrik)
+
+   if user.has_role? "newsadmin"
+      can :addmoderator, Rubrik
+    end    
+
+
+
+  end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/ApplicationController.html b/app/doc/ApplicationController.html new file mode 100644 index 0000000..b8f08ef --- /dev/null +++ b/app/doc/ApplicationController.html @@ -0,0 +1,267 @@ + + + + + + +class ApplicationController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class ApplicationController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Protected Instance Methods

+ + +
+ +
+ default_url_options() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/application_controller.rb, line 15
+def default_url_options
+  {locale: I18n.locale}
+end
+
+ +
+ + + + +
+ + +
+ +
+ set_i18n_locale_from_params() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/application_controller.rb, line 5
+def set_i18n_locale_from_params
+  if params[:locale]
+    if I18n.available_locales.include?(params[:locale].to_sym)
+      I18n.locale=params[:locale].to_sym
+    else
+      flash.now[:notice]= "#{params[:locale]} translation not available"
+      logger.error flash.now[:notice]
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/ApplicationHelper.html b/app/doc/ApplicationHelper.html new file mode 100644 index 0000000..e64727e --- /dev/null +++ b/app/doc/ApplicationHelper.html @@ -0,0 +1,323 @@ + + + + + + +module ApplicationHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module ApplicationHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ current_url(overwrite={}) + click to toggle source +
+ + +
+ + + + + +
+
# File helpers/application_helper.rb, line 2
+def current_url(overwrite={})
+  url_for  :params => params.merge(overwrite).except(:controller,:action)
+end
+
+ +
+ + + + +
+ + +
+ +
+ switch_locale_url(target_locale) + click to toggle source +
+ + +
+ + + + + +
+
# File helpers/application_helper.rb, line 5
+def switch_locale_url(target_locale)
+  current_url({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
+ 
+end
+
+ +
+ + + + +
+ + +
+ +
+ toolbar_html(elemente) + click to toggle source +
+ + +
+ + + + + +
+
# File helpers/application_helper.rb, line 9
+ def toolbar_html(elemente)
+   html = ""
+   limiter = " | "
+       elemente.each do |e| 
+               if !e[:icon].nil?
+                       case e[:icon]
+                       when :pencil
+                       text = '<i class="icon-pencil"></i>'.html_safe + e[:text]
+                       when :plus
+                       text ='<i class="icon-plus"></i>'.html_safe+e[:text]
+                       else
+                       text = e[:text]
+                       end
+               else
+                       text =e[:text]
+               end
+               if e[:link].nil? 
+               if !e[:method].nil?
+                       if !e[:confirm].nil?
+                       html = html + link_to(text,e[:path],:confirm=>e[:confirm],:method=>e[:method])
+                       else
+                       html = html + link_to(text,e[:path],:method => e[:method])
+                       end
+               else
+                       if !e[:confirm].nil?
+                       html=html + link_to(text,e[:path],:confirm=>e[:confirm])
+                       else
+                       html= html + link_to(text,e[:path])
+                       end
+
+               end 
+               else
+               html = html + e[:link]
+               end
+               
+               html=html+limiter
+       end
+   raw(html)
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/Beispiel.html b/app/doc/Beispiel.html new file mode 100644 index 0000000..c941e4c --- /dev/null +++ b/app/doc/Beispiel.html @@ -0,0 +1,197 @@ + + + + + + +class Beispiel - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Beispiel

+ +
+ +

Schema Information

+ +

Table name: beispiele

+ +
id                :integer          not null, primary key
+name              :string(255)
+desc              :text
+lva_id            :integer
+created_at        :datetime         not null
+updated_at        :datetime         not null
+file_file_name    :string(255)
+file_content_type :string(255)
+file_file_size    :integer
+file_updated_at   :datetime
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/BeispieleController.html b/app/doc/BeispieleController.html new file mode 100644 index 0000000..525eeb0 --- /dev/null +++ b/app/doc/BeispieleController.html @@ -0,0 +1,461 @@ + + + + + + +class BeispieleController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class BeispieleController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ +

POST /beispiele POST /beispiele.json

+ + + +
+
# File controllers/beispiele_controller.rb, line 42
+def create
+  @beispiel = Beispiel.new(params[:beispiel])
+
+  respond_to do |format|
+    if @beispiel.save
+      format.html { redirect_to @beispiel, notice: 'Beispiel was successfully created.' }
+      format.json { render json: @beispiel, status: :created, location: @beispiel }
+    else
+      format.html { render action: "new" }
+      format.json { render json: @beispiel.errors, status: :unprocessable_entity }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ +

DELETE /beispiele/1 DELETE /beispiele/1.json

+ + + +
+
# File controllers/beispiele_controller.rb, line 74
+def destroy
+  @beispiel = Beispiel.find(params[:id])
+  @beispiel.destroy
+
+  respond_to do |format|
+    format.html { redirect_to beispiele_url }
+    format.json { head :no_content }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ +

GET /beispiele/1/edit

+ + + +
+
# File controllers/beispiele_controller.rb, line 36
+def edit
+  @beispiel = Beispiel.find(params[:id])
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ +

GET /beispiele GET /beispiele.json

+ + + +
+
# File controllers/beispiele_controller.rb, line 4
+def index
+  @beispiele = Beispiel.all
+
+  respond_to do |format|
+    format.html # index.html.erb
+    format.json { render json: @beispiele }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ +

GET /beispiele/new GET /beispiele/new.json

+ + + +
+
# File controllers/beispiele_controller.rb, line 26
+def new
+  @beispiel = Beispiel.new
+
+  respond_to do |format|
+    format.html # new.html.erb
+    format.json { render json: @beispiel }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ +

GET /beispiele/1 GET /beispiele/1.json

+ + + +
+
# File controllers/beispiele_controller.rb, line 15
+def show
+  @beispiel = Beispiel.find(params[:id])
+
+  respond_to do |format|
+    format.html # show.html.erb
+    format.json { render json: @beispiel }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ +

PUT /beispiele/1 PUT /beispiele/1.json

+ + + +
+
# File controllers/beispiele_controller.rb, line 58
+def update
+  @beispiel = Beispiel.find(params[:id])
+
+  respond_to do |format|
+    if @beispiel.update_attributes(params[:beispiel])
+      format.html { redirect_to @beispiel, notice: 'Beispiel was successfully updated.' }
+      format.json { head :no_content }
+    else
+      format.html { render action: "edit" }
+      format.json { render json: @beispiel.errors, status: :unprocessable_entity }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/BeispieleHelper.html b/app/doc/BeispieleHelper.html new file mode 100644 index 0000000..4e39128 --- /dev/null +++ b/app/doc/BeispieleHelper.html @@ -0,0 +1,176 @@ + + + + + + +module BeispieleHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module BeispieleHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/ConfigController.html b/app/doc/ConfigController.html new file mode 100644 index 0000000..b09d209 --- /dev/null +++ b/app/doc/ConfigController.html @@ -0,0 +1,265 @@ + + + + + + +class ConfigController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class ConfigController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ get_git_update() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/config_controller.rb, line 5
+  def get_git_update
+    g = Git.open(".")
+
+    flash[:notice] ="Test"
+#    flash[:notice] =g.remote("github").fetch
+   redirect_to config_url
+
+  end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/config_controller.rb, line 2
+def index
+  
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/Confirmmailer.html b/app/doc/Confirmmailer.html new file mode 100644 index 0000000..2215c6f --- /dev/null +++ b/app/doc/Confirmmailer.html @@ -0,0 +1,182 @@ + + + + + + +class Confirmmailer - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Confirmmailer

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/HomeController.html b/app/doc/HomeController.html new file mode 100644 index 0000000..99622eb --- /dev/null +++ b/app/doc/HomeController.html @@ -0,0 +1,259 @@ + + + + + + +class HomeController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class HomeController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ dev() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/home_controller.rb, line 4
+def dev
+
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/home_controller.rb, line 2
+def index
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/Lva.html b/app/doc/Lva.html new file mode 100644 index 0000000..781473d --- /dev/null +++ b/app/doc/Lva.html @@ -0,0 +1,209 @@ + + + + + + +class Lva - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Lva

+ +
+ +

Schema Information

+ +

Table name: lvas

+ +
id          :integer          not null, primary key
+name        :string(255)
+desc        :text
+ects        :decimal(, )
+lvanr       :string(255)
+stunden     :decimal(, )
+created_at  :datetime         not null
+updated_at  :datetime         not null
+modul_id    :integer
+semester_id :integer
+ +

Information

+
Author +
+

Andreas Stephanides

+
License +
+

GPL

+
+ +

Dieses Model repräsentiert eine LVA. Die notwendigen Informationen können +mit TISS (dem Online System der TU Wien) synchronisiert werden

+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/LvasController.html b/app/doc/LvasController.html new file mode 100644 index 0000000..1456304 --- /dev/null +++ b/app/doc/LvasController.html @@ -0,0 +1,451 @@ + + + + + + +class LvasController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class LvasController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ +

POST /lvas POST /lvas.json

+ + + +
+
# File controllers/lvas_controller.rb, line 32
+def create
+  @lva = Lva.new(params[:lva])
+
+  respond_to do |format|
+    if @lva.save
+      format.html { redirect_to @lva, notice: 'Lva was successfully created.' }
+    
+    else
+      format.html { render action: "new" }
+    
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ +

DELETE /lvas/1 DELETE /lvas/1.json

+ + + +
+
# File controllers/lvas_controller.rb, line 64
+def destroy
+  @lva = Lva.find(params[:id])
+  @lva.destroy
+
+  respond_to do |format|
+    format.html { redirect_to lvas_url }
+ 
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ +

GET /lvas/1/edit

+ + + +
+
# File controllers/lvas_controller.rb, line 26
+def edit
+  @lva = Lva.find(params[:id])
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/lvas_controller.rb, line 4
+def index
+  @lvas = Lva.all
+  
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ +

GET /lvas/new GET /lvas/new.json

+ + + +
+
# File controllers/lvas_controller.rb, line 18
+def new
+  @lva = Lva.new
+  modul=Modul.find(params[:modul_id])
+  @lva.modul<<modul
+ 
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ +

GET /lvas/1

+ + + +
+
# File controllers/lvas_controller.rb, line 11
+def show
+  @lva = Lva.find(params[:id])
+  @toolbar_elements<<{:icon=>:pencil,:text =>I18n.t('common.edit'),:path => edit_lva_path(@lva)}
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ +

PUT /lvas/1 PUT /lvas/1.json

+ + + +
+
# File controllers/lvas_controller.rb, line 48
+def update
+  @lva = Lva.find(params[:id])
+
+  respond_to do |format|
+    if @lva.update_attributes(params[:lva])
+      format.html { redirect_to @lva, notice: 'Lva was successfully updated.' }
+ 
+    else
+      format.html { render action: "edit" }
+
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/Modul.html b/app/doc/Modul.html new file mode 100644 index 0000000..1043ba5 --- /dev/null +++ b/app/doc/Modul.html @@ -0,0 +1,193 @@ + + + + + + +class Modul - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Modul

+ +
+ +

Schema Information

+ +

Table name: moduls

+ +
id         :integer          not null, primary key
+name       :string(255)
+desc       :text
+depend     :text
+created_at :datetime         not null
+updated_at :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/Modulgruppe.html b/app/doc/Modulgruppe.html new file mode 100644 index 0000000..73a1cee --- /dev/null +++ b/app/doc/Modulgruppe.html @@ -0,0 +1,195 @@ + + + + + + +class Modulgruppe - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Modulgruppe

+ +
+ +

Schema Information

+ +

Table name: modulgruppen

+ +
id         :integer          not null, primary key
+typ        :string(255)
+phase      :integer
+name       :string(255)
+desc       :text
+studium_id :integer
+created_at :datetime         not null
+updated_at :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/ModulgruppenController.html b/app/doc/ModulgruppenController.html new file mode 100644 index 0000000..643b348 --- /dev/null +++ b/app/doc/ModulgruppenController.html @@ -0,0 +1,465 @@ + + + + + + +class ModulgruppenController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class ModulgruppenController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ +

POST /modulgruppen

+ + + +
+
# File controllers/modulgruppen_controller.rb, line 44
+def create
+  @modulgruppe = Modulgruppe.new(params[:modulgruppe])
+ if !params[:studium_id].nil?
+    @studium=Studium.find(params[:studium_id]) 
+  else
+    @studium=Studium.find(params[:modulgruppe][:studium_id]) 
+ end
+  respond_to do |format|
+    if @modulgruppe.save
+      format.html { redirect_to @modulgruppe, notice: 'Modulgruppe was successfully created.' }
+
+    else
+      format.html { render action: "new" }
+     
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ +

DELETE /modulgruppen/1

+ + + +
+
# File controllers/modulgruppen_controller.rb, line 79
+def destroy
+  @modulgruppe = Modulgruppe.find(params[:id])
+  @modulgruppe.destroy
+
+  respond_to do |format|
+    format.html { redirect_to modulgruppen_url }
+
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ +

GET /modulgruppen/1/edit

+ + + +
+
# File controllers/modulgruppen_controller.rb, line 35
+def edit
+  @modulgruppe = Modulgruppe.find(params[:id])
+  if !params[:studium_id].nil?
+@studium=Studium.find(params[:studium_id])
+end
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/modulgruppen_controller.rb, line 6
+ def index
+   @modulgruppen = Modulgruppe.all
+if !params[:studium_id].nil?
+ @studium=Studium.find(params[:studium_id])
+ end
+
+ end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ +

GET /modulgruppen/new

+ + + +
+
# File controllers/modulgruppen_controller.rb, line 26
+ def new
+   @modulgruppe = Modulgruppe.new
+if !params[:studium_id].nil?
+ @studium=Studium.find(params[:studium_id])
+ end
+
+ end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ +

GET /modulgruppen/1

+ + + +
+
# File controllers/modulgruppen_controller.rb, line 16
+ def show
+   @modulgruppe = Modulgruppe.find(params[:id])
+if !params[:studium_id].nil?
+ @studium=Studium.find(params[:studium_id])
+ end
+
+ end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/modulgruppen_controller.rb, line 63
+def update
+  @modulgruppe = Modulgruppe.find(params[:id])
+
+  respond_to do |format|
+    if @modulgruppe.update_attributes(params[:modulgruppe])
+      format.html { redirect_to @modulgruppe, notice: 'Modulgruppe was successfully updated.' }
+     
+    else
+      format.html { render action: "edit" }
+ 
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/ModulgruppenHelper.html b/app/doc/ModulgruppenHelper.html new file mode 100644 index 0000000..280119c --- /dev/null +++ b/app/doc/ModulgruppenHelper.html @@ -0,0 +1,176 @@ + + + + + + +module ModulgruppenHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module ModulgruppenHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/ModulsController.html b/app/doc/ModulsController.html new file mode 100644 index 0000000..3692ef1 --- /dev/null +++ b/app/doc/ModulsController.html @@ -0,0 +1,470 @@ + + + + + + +class ModulsController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class ModulsController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ +

POST /moduls POST /moduls.json

+ + + +
+
# File controllers/moduls_controller.rb, line 48
+def create
+  @modul = Modul.new(params[:modul])
+ 
+  
+ respond_to do |format|
+   if @modul.save
+      format.html { redirect_to modulgruppe_path(@modul.modulgruppen.first), notice: 'Modul was successfully created.' }
+      format.json { render json: @modul, status: :created, location: @modul }
+   else
+      format.html { render action: "new" }
+      format.json { render json: @modul.errors, status: :unprocessable_entity }
+   end
+   end
+ 
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ +

DELETE /moduls/1 DELETE /moduls/1.json

+ + + +
+
# File controllers/moduls_controller.rb, line 82
+def destroy
+  
+  @modul = Modul.find(params[:id])
+  modulgruppe=@modul.modulgruppen.first
+  @modul.destroy
+
+
+  redirect_to modulgruppe_path(modulgruppe) 
+  
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ +

GET /moduls/1/edit

+ + + +
+
# File controllers/moduls_controller.rb, line 39
+def edit
+  @modul = Modul.find(params[:id])
+   if !params[:studium_id].nil?
+@studium=Studium.find(params[:studium_id])
+end
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ +

GET /moduls GET /moduls.json

+ + + +
+
# File controllers/moduls_controller.rb, line 4
+def index
+ @moduls = Modul.all
+ if !params[:studium_id].nil?
+@studium=Studium.find(params[:studium_id])
+end
+  respond_to do |format|
+    format.html # index.html.erb
+    format.json { render json: @moduls }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ +

GET /moduls/new GET /moduls/new.json

+ + + +
+
# File controllers/moduls_controller.rb, line 28
+def new
+  @modul = Modul.new
+  modulgruppe=Modulgruppe.find(params[:modulgruppen_id])
+  @modul.modulgruppen<<modulgruppe
+  respond_to do |format|
+    format.html # new.html.erb
+    format.json { render json: @modul }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ +

GET /moduls/1 GET /moduls/1.json

+ + + +
+
# File controllers/moduls_controller.rb, line 17
+def show
+  @modul = Modul.find(params[:id])
+
+    respond_to do |format|
+    format.html # show.html.erb
+    format.json { render json: @modul }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ +

PUT /moduls/1 PUT /moduls/1.json

+ + + +
+
# File controllers/moduls_controller.rb, line 66
+def update
+  @modul = Modul.find(params[:id])
+
+  respond_to do |format|
+    if @modul.update_attributes(params[:modul])
+      format.html { redirect_to url_for(@modul), notice: 'Modul was successfully updated.' }
+      format.json { head :no_content }
+    else
+      format.html { render action: "edit" }
+      format.json { render json: @modul.errors, status: :unprocessable_entity }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/ModulsHelper.html b/app/doc/ModulsHelper.html new file mode 100644 index 0000000..68f1859 --- /dev/null +++ b/app/doc/ModulsHelper.html @@ -0,0 +1,176 @@ + + + + + + +module ModulsHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module ModulsHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/Neuigkeit.html b/app/doc/Neuigkeit.html new file mode 100644 index 0000000..62ea076 --- /dev/null +++ b/app/doc/Neuigkeit.html @@ -0,0 +1,194 @@ + + + + + + +class Neuigkeit - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Neuigkeit

+ +
+ +

Schema Information

+ +

Table name: neuigkeiten

+ +
id         :integer          not null, primary key
+title      :string(255)
+text       :text
+datum      :datetime
+rubrik_id  :integer
+created_at :datetime         not null
+updated_at :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/NeuigkeitenController.html b/app/doc/NeuigkeitenController.html new file mode 100644 index 0000000..6a66070 --- /dev/null +++ b/app/doc/NeuigkeitenController.html @@ -0,0 +1,451 @@ + + + + + + +class NeuigkeitenController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class NeuigkeitenController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/neuigkeiten_controller.rb, line 26
+def create
+  @neuigkeit = Neuigkeit.new(params[:neuigkeit])
+
+  respond_to do |format|
+    if @neuigkeit.save
+      format.html { redirect_to @neuigkeit, notice: 'Neuigkeit was successfully created.' }
+   
+    else
+      format.html { render action: "new" }
+
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ +

DELETE /neuigkeiten/1 DELETE /neuigkeiten/1.json

+ + + +
+
# File controllers/neuigkeiten_controller.rb, line 57
+def destroy
+  @neuigkeit = Neuigkeit.find(params[:id])
+  @neuigkeit.destroy
+
+  respond_to do |format|
+    format.html { redirect_to neuigkeiten_url }
+
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/neuigkeiten_controller.rb, line 22
+def edit
+  @neuigkeit = Neuigkeit.find(params[:id])
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/neuigkeiten_controller.rb, line 3
+def index
+  @neuigkeiten = Neuigkeit.all
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/neuigkeiten_controller.rb, line 15
+ def new
+   @neuigkeit = Neuigkeit.new
+   @rubrik=Rubrik.find(params[:rubrik_id])
+   @neuigkeit.rubrik=@rubrik
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/neuigkeiten_controller.rb, line 8
+def show
+  @neuigkeit = Neuigkeit.find(params[:id])
+  if can? :edit, @neuigkeit
+      @toolbar_elements << {:text=>I18n.t('common.edit'),:path=>edit_neuigkeit_path(@neuigkeit),:icon=>:pencil}
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/neuigkeiten_controller.rb, line 41
+def update
+  @neuigkeit = Neuigkeit.find(params[:id])
+
+  respond_to do |format|
+    if @neuigkeit.update_attributes(params[:neuigkeit])
+      format.html { redirect_to @neuigkeit, notice: 'Neuigkeit was successfully updated.' }
+
+    else
+      format.html { render action: "edit" }
+
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/PagesHelper.html b/app/doc/PagesHelper.html new file mode 100644 index 0000000..9bc618d --- /dev/null +++ b/app/doc/PagesHelper.html @@ -0,0 +1,226 @@ + + + + + + +module PagesHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module PagesHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ breadcrumbs(page) + click to toggle source +
+ + +
+ + + + + + + +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/Role.html b/app/doc/Role.html new file mode 100644 index 0000000..9450dba --- /dev/null +++ b/app/doc/Role.html @@ -0,0 +1,193 @@ + + + + + + +class Role - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Role

+ +
+ +

Schema Information

+ +

Table name: roles

+ +
id            :integer          not null, primary key
+name          :string(255)
+resource_id   :integer
+resource_type :string(255)
+created_at    :datetime         not null
+updated_at    :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/Rubrik.html b/app/doc/Rubrik.html new file mode 100644 index 0000000..ca26cb5 --- /dev/null +++ b/app/doc/Rubrik.html @@ -0,0 +1,242 @@ + + + + + + +class Rubrik - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Rubrik

+ +
+ +

Schema Information

+ +

Table name: rubriken

+ +
id         :integer          not null, primary key
+name       :string(255)
+desc       :text
+prio       :integer
+created_at :datetime         not null
+updated_at :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ moderator() + click to toggle source +
+ + +
+ + + + + +
+
# File models/rubrik.rb, line 17
+def moderator
+   u=User.with_role(:newsmoderator).first
+   if !u.nil? 
+     u.id
+   end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/RubrikenController.html b/app/doc/RubrikenController.html new file mode 100644 index 0000000..c2f6939 --- /dev/null +++ b/app/doc/RubrikenController.html @@ -0,0 +1,554 @@ + + + + + + +class RubrikenController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class RubrikenController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ addmoderator() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 36
+def addmoderator
+  @rubrik = Rubrik.find(params[:id])
+  if can? :addmoderator, @rubrik
+    if params[:moderator].nil?
+      current_user.add_role(:newsmoderator,@rubrik)
+    else
+      User.find(params[:moderator]).add_role(:newsmoderator, @rubrik)
+    end
+    
+    response_notice= I18n.t("rubrik/moderatoradded")
+  else
+    response_notice= I18n.t("rubrik/moderatoraddnorights")
+  end
+  respond_to do |format|
+    format.html { redirect_to @rubrik,:notice => response_notice }
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ alle_verwalten() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 70
+def alle_verwalten
+@rubriken =Rubrik.all
+end
+
+ +
+ + + + +
+ + +
+ +
+ create() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 24
+def create
+  @rubrik = Rubrik.new(params[:rubrik])
+
+  respond_to do |format|
+    if @rubrik.save
+      format.html { redirect_to @rubrik, notice: 'Rubrik was successfully created.' }      
+    else
+      format.html { render action: "new" }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ +

DELETE /rubriken/1 DELETE /rubriken/1.json

+ + + +
+
# File controllers/rubriken_controller.rb, line 75
+def destroy
+  @rubrik = Rubrik.find(params[:id])
+  @rubrik.destroy
+  redirect_to rubriken_url
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 19
+def edit
+  @rubrik = Rubrik.find(params[:id])
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 3
+def index
+  @rubriken = Rubrik.all
+ 
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 14
+def new
+  @rubrik = Rubrik.new
+ 
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 9
+def show
+  @rubrik = Rubrik.find(params[:id])
+  @moderatoren=User.with_role(:newsmoderator,@rubrik)
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 53
+def update
+  @rubrik = Rubrik.find(params[:id])
+
+  respond_to do |format|
+    if @rubrik.update_attributes(params[:rubrik])
+      format.html { redirect_to @rubrik, notice: 'Rubrik was successfully updated.' }
+      format.json { head :no_content }
+    else
+      format.html { render action: "edit" }
+      format.json { render json: @rubrik.errors, status: :unprocessable_entity }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ verwalten() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/rubriken_controller.rb, line 66
+def verwalten
+@rubrik = Rubrik.find(params[:id])
+@moderatoren=User.with_role(:newsmoderator,@rubrik)
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/RubrikenHelper.html b/app/doc/RubrikenHelper.html new file mode 100644 index 0000000..6a1a66c --- /dev/null +++ b/app/doc/RubrikenHelper.html @@ -0,0 +1,176 @@ + + + + + + +module RubrikenHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module RubrikenHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/Semester.html b/app/doc/Semester.html new file mode 100644 index 0000000..ad59a8b --- /dev/null +++ b/app/doc/Semester.html @@ -0,0 +1,194 @@ + + + + + + +class Semester - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Semester

+ +
+ +

Schema Information

+ +

Table name: semesters

+ +
id         :integer          not null, primary key
+name       :string(255)
+nummer     :integer
+studium_id :integer
+ssws       :string(255)
+created_at :datetime         not null
+updated_at :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/SemestersController.html b/app/doc/SemestersController.html new file mode 100644 index 0000000..aeec6e0 --- /dev/null +++ b/app/doc/SemestersController.html @@ -0,0 +1,440 @@ + + + + + + +class SemestersController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class SemestersController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 21
+def create
+  @semester = Semester.new(params[:semester])
+
+  respond_to do |format|
+    if @semester.save
+      format.html { redirect_to @semester, notice: 'Semester was successfully created.' }
+    else
+      format.html { render action: "new" }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 45
+  def destroy
+    @semester = Semester.find(params[:id])
+    @semester.destroy
+redirect_to semester_url
+    
+  end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 17
+def edit
+  @semester = Semester.find(params[:id])
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 3
+def index
+  @semesters = Semester.all
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 13
+def new
+  @semester = Semester.new
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 8
+def show
+  @semester = Semester.find(params[:id])
+
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/semesters_controller.rb, line 33
+def update
+  @semester = Semester.find(params[:id])
+
+  respond_to do |format|
+    if @semester.update_attributes(params[:semester])
+      format.html { redirect_to @semester, notice: 'Semester was successfully updated.' } 
+    else
+      format.html { render action: "edit" }     
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/SemestersHelper.html b/app/doc/SemestersHelper.html new file mode 100644 index 0000000..74e1134 --- /dev/null +++ b/app/doc/SemestersHelper.html @@ -0,0 +1,176 @@ + + + + + + +module SemestersHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module SemestersHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/StudienController.html b/app/doc/StudienController.html new file mode 100644 index 0000000..23718b8 --- /dev/null +++ b/app/doc/StudienController.html @@ -0,0 +1,459 @@ + + + + + + +class StudienController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class StudienController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ create() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 44
+def create
+  @studium = Studium.new(params[:studium])
+  respond_to do |format|
+    if @studium.save
+      format.html { redirect_to url_for(@studium), notice: 'Studium was successfully created.' }
+    else
+      format.html { render action: "new" }
+    end
+  end
+end
+
+ +
+ + + + +
+ + +
+ +
+ destroy() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 68
+def destroy
+      @studium = Studium.find(params[:id])
+      @studium.destroy
+      redirect_to studien_url
+end
+
+ +
+ + + + +
+ + +
+ +
+ edit() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 38
+def edit
+  @studium = Studium.find(params[:id])
+      @toolbar_elements=[{:text => I18n.t('studien.anzeigen') , :path => url_for(@studium) }]
+      @toolbar_elements<<{:text =>I18n.t('studien.allestudien'),:path=>studien_path(@studium)}
+end
+
+ +
+ + + + +
+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 5
+ def index
+   @studien = Studium.all
+   @toolbar_elements<<{:icon =>:plus, :text=> I18n.t('studien.new') ,:path=>new_studium_path }
+end
+
+ +
+ + + + +
+ + +
+ +
+ new() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 34
+def new
+  @studium = Studium.new
+end
+
+ +
+ + + + +
+ + +
+ +
+ show() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 10
+ def show
+   @studium= Studium.find(params[:id])
+   @studienphasen=[]
+   [1, 2 ,3].each do |ph| 
+       modulgruppen_phase=@studium.modulgruppen.where(:phase=>ph)
+       if modulgruppen_phase.count==1 
+               opts={:width=>12, :slice=>1}
+       elsif modulgruppen_phase.count <= 4 
+               opts={:width=>6, :slice=>2}
+       else 
+               opts={:width=>4, :slice=>3}
+       end  
+       modulgruppen =[]
+       modulgruppen_phase.each_slice(opts[:slice]) do |s| 
+       modulgruppen<<s 
+       end
+       @studienphasen << {:modulgruppen=>modulgruppen, :phase => ph}.merge(opts)
+   end    
+   @toolbar_elements=[{:icon =>:plus ,:text=> I18n.t('studien.new') , :path => new_studium_modulgruppe_path(@studium) }]
+   @toolbar_elements<<{:icon=>:pencil,:text =>I18n.t('common.edit'),:path => edit_studium_path(@studium)}
+   @toolbar_elements<<{:text=> I18n.t('common.delete'),:path => studium_path(@studium), :method=> :delete,:confirm=>"Sure?" }
+end
+
+ +
+ + + + +
+ + +
+ +
+ update() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/studien_controller.rb, line 56
+def update
+  @studium = Studium.find(params[:id])
+  
+    if @studium.update_attributes(params[:studium])
+       redirect_to url_for(@studium), notice: 'Studium was successfully updated.' 
+    else
+       render action: "edit" 
+
+    end
+  
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/StudienHelper.html b/app/doc/StudienHelper.html new file mode 100644 index 0000000..8245d40 --- /dev/null +++ b/app/doc/StudienHelper.html @@ -0,0 +1,176 @@ + + + + + + +module StudienHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module StudienHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/Studium.html b/app/doc/Studium.html new file mode 100644 index 0000000..295a4c2 --- /dev/null +++ b/app/doc/Studium.html @@ -0,0 +1,195 @@ + + + + + + +class Studium - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class Studium

+ +
+ +

Schema Information

+ +

Table name: studien

+ +
id         :integer          not null, primary key
+zahl       :string(255)
+name       :string(255)
+shortdesc  :text
+desc       :text
+typ        :string(255)
+created_at :datetime         not null
+updated_at :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/StudmodsHelper.html b/app/doc/StudmodsHelper.html new file mode 100644 index 0000000..04f37bf --- /dev/null +++ b/app/doc/StudmodsHelper.html @@ -0,0 +1,176 @@ + + + + + + +module StudmodsHelper - RDoc Documentation + + + + + + + + + + + + + + + + +
+

module StudmodsHelper

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/TinymceTextInput.html b/app/doc/TinymceTextInput.html new file mode 100644 index 0000000..60df6fd --- /dev/null +++ b/app/doc/TinymceTextInput.html @@ -0,0 +1,228 @@ + + + + + + +class TinymceTextInput - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class TinymceTextInput

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ input_html_options() + click to toggle source +
+ + +
+ + + + + +
+
# File inputs/tinymce_text_input.rb, line 2
+def input_html_options
+        super.merge(:class => "tinymce")
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/User.html b/app/doc/User.html new file mode 100644 index 0000000..0cad416 --- /dev/null +++ b/app/doc/User.html @@ -0,0 +1,207 @@ + + + + + + +class User - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class User

+ +
+ +

Schema Information

+ +

Table name: users

+ +
id                     :integer          not null, primary key
+email                  :string(255)      default(""), not null
+encrypted_password     :string(255)      default(""), not null
+reset_password_token   :string(255)
+reset_password_sent_at :datetime
+remember_created_at    :datetime
+sign_in_count          :integer          default(0)
+current_sign_in_at     :datetime
+last_sign_in_at        :datetime
+current_sign_in_ip     :string(255)
+last_sign_in_ip        :string(255)
+confirmation_token     :string(255)
+confirmed_at           :datetime
+confirmation_sent_at   :datetime
+unconfirmed_email      :string(255)
+failed_attempts        :integer          default(0)
+unlock_token           :string(255)
+locked_at              :datetime
+created_at             :datetime         not null
+updated_at             :datetime         not null
+ +
+ + + + +
+ + + + + + + + + + +
+ +
+ + + + diff --git a/app/doc/UsersController.html b/app/doc/UsersController.html new file mode 100644 index 0000000..39b68e2 --- /dev/null +++ b/app/doc/UsersController.html @@ -0,0 +1,228 @@ + + + + + + +class UsersController - RDoc Documentation + + + + + + + + + + + + + + + + +
+

class UsersController

+ +
+ +
+ + + + +
+ + + + + + + + + + +
+

Public Instance Methods

+ + +
+ +
+ index() + click to toggle source +
+ + +
+ + + + + +
+
# File controllers/users_controller.rb, line 2
+def index 
+@users = User.all
+end
+
+ +
+ + + + +
+ + +
+ +
+ +
+ + + + diff --git a/app/doc/created.rid b/app/doc/created.rid new file mode 100644 index 0000000..55e1a29 --- /dev/null +++ b/app/doc/created.rid @@ -0,0 +1,37 @@ +Tue, 23 Jul 2013 13:44:11 +0200 +./controllers/studien_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/rubriken_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/users_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/config_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/application_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/lvas_controller.rb Mon, 22 Jul 2013 19:15:05 +0200 +./controllers/moduls_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/semesters_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/home_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/modulgruppen_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/beispiele_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./controllers/neuigkeiten_controller.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/studien_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/pages_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/rubriken_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/moduls_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/modulgruppen_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/studmods_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/semesters_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/beispiele_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/application_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/lvas_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./helpers/neuigkeiten_helper.rb Mon, 22 Jul 2013 16:40:55 +0200 +./models/modulgruppe.rb Tue, 23 Jul 2013 13:25:47 +0200 +./models/role.rb Tue, 23 Jul 2013 13:25:48 +0200 +./models/beispiel.rb Tue, 23 Jul 2013 13:25:48 +0200 +./models/neuigkeit.rb Tue, 23 Jul 2013 13:25:48 +0200 +./models/modul.rb Tue, 23 Jul 2013 13:25:48 +0200 +./models/ability.rb Mon, 22 Jul 2013 16:40:55 +0200 +./models/rubrik.rb Tue, 23 Jul 2013 13:25:48 +0200 +./models/lva.rb Tue, 23 Jul 2013 13:44:06 +0200 +./models/semester.rb Tue, 23 Jul 2013 13:25:48 +0200 +./models/studium.rb Tue, 23 Jul 2013 13:25:49 +0200 +./models/user.rb Tue, 23 Jul 2013 13:25:49 +0200 +./mailers/confirmmailer.rb Mon, 22 Jul 2013 16:40:55 +0200 +./inputs/tinymce_text_input.rb Mon, 22 Jul 2013 16:40:55 +0200 diff --git a/app/doc/images/add.png b/app/doc/images/add.png new file mode 100755 index 0000000..6332fef Binary files /dev/null and b/app/doc/images/add.png differ diff --git a/app/doc/images/brick.png b/app/doc/images/brick.png new file mode 100644 index 0000000..7851cf3 Binary files /dev/null and b/app/doc/images/brick.png differ diff --git a/app/doc/images/brick_link.png b/app/doc/images/brick_link.png new file mode 100644 index 0000000..9ebf013 Binary files /dev/null and b/app/doc/images/brick_link.png differ diff --git a/app/doc/images/bug.png b/app/doc/images/bug.png new file mode 100644 index 0000000..2d5fb90 Binary files /dev/null and b/app/doc/images/bug.png differ diff --git a/app/doc/images/bullet_black.png b/app/doc/images/bullet_black.png new file mode 100644 index 0000000..5761970 Binary files /dev/null and b/app/doc/images/bullet_black.png differ diff --git a/app/doc/images/bullet_toggle_minus.png b/app/doc/images/bullet_toggle_minus.png new file mode 100644 index 0000000..b47ce55 Binary files /dev/null and b/app/doc/images/bullet_toggle_minus.png differ diff --git a/app/doc/images/bullet_toggle_plus.png b/app/doc/images/bullet_toggle_plus.png new file mode 100644 index 0000000..9ab4a89 Binary files /dev/null and b/app/doc/images/bullet_toggle_plus.png differ diff --git a/app/doc/images/date.png b/app/doc/images/date.png new file mode 100644 index 0000000..783c833 Binary files /dev/null and b/app/doc/images/date.png differ diff --git a/app/doc/images/delete.png b/app/doc/images/delete.png new file mode 100755 index 0000000..08f2493 Binary files /dev/null and b/app/doc/images/delete.png differ diff --git a/app/doc/images/find.png b/app/doc/images/find.png new file mode 100644 index 0000000..1547479 Binary files /dev/null and b/app/doc/images/find.png differ diff --git a/app/doc/images/loadingAnimation.gif b/app/doc/images/loadingAnimation.gif new file mode 100644 index 0000000..82290f4 Binary files /dev/null and b/app/doc/images/loadingAnimation.gif differ diff --git a/app/doc/images/macFFBgHack.png b/app/doc/images/macFFBgHack.png new file mode 100644 index 0000000..c6473b3 Binary files /dev/null and b/app/doc/images/macFFBgHack.png differ diff --git a/app/doc/images/package.png b/app/doc/images/package.png new file mode 100644 index 0000000..da3c2a2 Binary files /dev/null and b/app/doc/images/package.png differ diff --git a/app/doc/images/page_green.png b/app/doc/images/page_green.png new file mode 100644 index 0000000..de8e003 Binary files /dev/null and b/app/doc/images/page_green.png differ diff --git a/app/doc/images/page_white_text.png b/app/doc/images/page_white_text.png new file mode 100644 index 0000000..813f712 Binary files /dev/null and b/app/doc/images/page_white_text.png differ diff --git a/app/doc/images/page_white_width.png b/app/doc/images/page_white_width.png new file mode 100644 index 0000000..1eb8809 Binary files /dev/null and b/app/doc/images/page_white_width.png differ diff --git a/app/doc/images/plugin.png b/app/doc/images/plugin.png new file mode 100644 index 0000000..6187b15 Binary files /dev/null and b/app/doc/images/plugin.png differ diff --git a/app/doc/images/ruby.png b/app/doc/images/ruby.png new file mode 100644 index 0000000..f763a16 Binary files /dev/null and b/app/doc/images/ruby.png differ diff --git a/app/doc/images/tag_blue.png b/app/doc/images/tag_blue.png new file mode 100755 index 0000000..3f02b5f Binary files /dev/null and b/app/doc/images/tag_blue.png differ diff --git a/app/doc/images/tag_green.png b/app/doc/images/tag_green.png new file mode 100644 index 0000000..83ec984 Binary files /dev/null and b/app/doc/images/tag_green.png differ diff --git a/app/doc/images/transparent.png b/app/doc/images/transparent.png new file mode 100644 index 0000000..d665e17 Binary files /dev/null and b/app/doc/images/transparent.png differ diff --git a/app/doc/images/wrench.png b/app/doc/images/wrench.png new file mode 100644 index 0000000..5c8213f Binary files /dev/null and b/app/doc/images/wrench.png differ diff --git a/app/doc/images/wrench_orange.png b/app/doc/images/wrench_orange.png new file mode 100644 index 0000000..565a933 Binary files /dev/null and b/app/doc/images/wrench_orange.png differ diff --git a/app/doc/images/zoom.png b/app/doc/images/zoom.png new file mode 100644 index 0000000..908612e Binary files /dev/null and b/app/doc/images/zoom.png differ diff --git a/app/doc/index.html b/app/doc/index.html new file mode 100644 index 0000000..1438b1a --- /dev/null +++ b/app/doc/index.html @@ -0,0 +1,135 @@ + + + + + + +RDoc Documentation + + + + + + + + + + + + + + + + +

This is the API documentation for RDoc Documentation. + + +

+ diff --git a/app/doc/js/darkfish.js b/app/doc/js/darkfish.js new file mode 100644 index 0000000..f26fd45 --- /dev/null +++ b/app/doc/js/darkfish.js @@ -0,0 +1,155 @@ +/** + * + * Darkfish Page Functions + * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $ + * + * Author: Michael Granger + * + */ + +/* Provide console simulation for firebug-less environments */ +if (!("console" in window) || !("firebug" in console)) { + var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", + "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"]; + + window.console = {}; + for (var i = 0; i < names.length; ++i) + window.console[names[i]] = function() {}; +}; + + +/** + * Unwrap the first element that matches the given @expr@ from the targets and return them. + */ +$.fn.unwrap = function( expr ) { + return this.each( function() { + $(this).parents( expr ).eq( 0 ).after( this ).remove(); + }); +}; + + +function showSource( e ) { + var target = e.target; + var codeSections = $(target). + parents('.method-detail'). + find('.method-source-code'); + + $(target). + parents('.method-detail'). + find('.method-source-code'). + slideToggle(); +}; + +function hookSourceViews() { + $('.method-heading').click( showSource ); +}; + +function toggleDebuggingSection() { + $('.debugging-section').slideToggle(); +}; + +function hookDebuggingToggle() { + $('#debugging-toggle img').click( toggleDebuggingSection ); +}; + +function hookTableOfContentsToggle() { + $('.indexpage li .toc-toggle').each( function() { + $(this).click( function() { + $(this).toggleClass('open'); + }); + + var section = $(this).next(); + + $(this).click( function() { + section.slideToggle(); + }); + }); +} + +function hookSearch() { + var input = $('#search-field').eq(0); + var result = $('#search-results').eq(0); + $(result).show(); + + var search_section = $('#search-section').get(0); + $(search_section).show(); + + var search = new Search(search_data, input, result); + + search.renderItem = function(result) { + var li = document.createElement('li'); + var html = ''; + + // TODO add relative path to + + + + + + + + + + +

Table of Contents - RDoc Documentation

+ + +

Classes/Modules

+ + +

Methods

+ + + + + diff --git a/app/models/beispiel.rb b/app/models/beispiel.rb index 584d0ba..13f0764 100755 --- a/app/models/beispiel.rb +++ b/app/models/beispiel.rb @@ -1,3 +1,19 @@ +# == Schema Information +# +# Table name: beispiele +# +# id :integer not null, primary key +# name :string(255) +# desc :text +# lva_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# file_file_name :string(255) +# file_content_type :string(255) +# file_file_size :integer +# file_updated_at :datetime +# + class Beispiel < ActiveRecord::Base has_paper_trail attr_accessible :desc, :name, :file, :lva_id diff --git a/app/models/lva.rb b/app/models/lva.rb index 7a452d4..83839b9 100755 --- a/app/models/lva.rb +++ b/app/models/lva.rb @@ -1,4 +1,19 @@ -## +# == Schema Information +# +# Table name: lvas +# +# id :integer not null, primary key +# name :string(255) +# desc :text +# ects :decimal(, ) +# lvanr :string(255) +# stunden :decimal(, ) +# created_at :datetime not null +# updated_at :datetime not null +# modul_id :integer +# semester_id :integer +# +# == Information # Author:: Andreas Stephanides # License:: GPL # Dieses Model repräsentiert eine LVA. Die notwendigen Informationen können mit TISS (dem Online System der TU Wien) synchronisiert werden diff --git a/app/models/modul.rb b/app/models/modul.rb index 40b0b95..84fcfca 100755 --- a/app/models/modul.rb +++ b/app/models/modul.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: moduls +# +# id :integer not null, primary key +# name :string(255) +# desc :text +# depend :text +# created_at :datetime not null +# updated_at :datetime not null +# + class Modul < ActiveRecord::Base attr_accessible :desc,:name, :depend, :studium_id, :modulgruppe_ids diff --git a/app/models/modulgruppe.rb b/app/models/modulgruppe.rb index 7f21489..8875645 100755 --- a/app/models/modulgruppe.rb +++ b/app/models/modulgruppe.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: modulgruppen +# +# id :integer not null, primary key +# typ :string(255) +# phase :integer +# name :string(255) +# desc :text +# studium_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# + class Modulgruppe < ActiveRecord::Base attr_accessible :name, :phase, :typ,:desc, :studium_id belongs_to :studium, :foreign_key => "studium_id" diff --git a/app/models/neuigkeit.rb b/app/models/neuigkeit.rb index c03e526..5f41df6 100755 --- a/app/models/neuigkeit.rb +++ b/app/models/neuigkeit.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: neuigkeiten +# +# id :integer not null, primary key +# title :string(255) +# text :text +# datum :datetime +# rubrik_id :integer +# created_at :datetime not null +# updated_at :datetime not null +# + class Neuigkeit < ActiveRecord::Base attr_accessible :datum, :text, :title, :rubrik_id belongs_to :author, :class_name =>'User' diff --git a/app/models/role.rb b/app/models/role.rb index 145baa7..8da866d 100755 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: roles +# +# id :integer not null, primary key +# name :string(255) +# resource_id :integer +# resource_type :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# + class Role < ActiveRecord::Base has_and_belongs_to_many :users, :join_table => :users_roles belongs_to :resource, :polymorphic => true diff --git a/app/models/rubrik.rb b/app/models/rubrik.rb index b0122bd..99b150c 100755 --- a/app/models/rubrik.rb +++ b/app/models/rubrik.rb @@ -1,3 +1,15 @@ +# == Schema Information +# +# Table name: rubriken +# +# id :integer not null, primary key +# name :string(255) +# desc :text +# prio :integer +# created_at :datetime not null +# updated_at :datetime not null +# + class Rubrik < ActiveRecord::Base attr_accessible :desc, :name, :prio has_many :neuigkeiten, :class_name => "Neuigkeit" diff --git a/app/models/semester.rb b/app/models/semester.rb index 13cb02d..ca866b6 100755 --- a/app/models/semester.rb +++ b/app/models/semester.rb @@ -1,3 +1,16 @@ +# == Schema Information +# +# Table name: semesters +# +# id :integer not null, primary key +# name :string(255) +# nummer :integer +# studium_id :integer +# ssws :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# + class Semester < ActiveRecord::Base has_and_belongs_to_many :lvas attr_accessible :name, :nummer, :ss, :ws diff --git a/app/models/studium.rb b/app/models/studium.rb index 7411b30..0788bb6 100755 --- a/app/models/studium.rb +++ b/app/models/studium.rb @@ -1,3 +1,17 @@ +# == Schema Information +# +# Table name: studien +# +# id :integer not null, primary key +# zahl :string(255) +# name :string(255) +# shortdesc :text +# desc :text +# typ :string(255) +# created_at :datetime not null +# updated_at :datetime not null +# + class Studium < ActiveRecord::Base attr_accessible :desc, :name, :typ, :zahl has_many :modulgruppen, inverse_of: :studium, :class_name => "Modulgruppe" diff --git a/app/models/user.rb b/app/models/user.rb index 673b7d6..3995a3d 100755 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -1,3 +1,29 @@ +# == Schema Information +# +# Table name: users +# +# id :integer not null, primary key +# email :string(255) default(""), not null +# encrypted_password :string(255) default(""), not null +# reset_password_token :string(255) +# reset_password_sent_at :datetime +# remember_created_at :datetime +# sign_in_count :integer default(0) +# current_sign_in_at :datetime +# last_sign_in_at :datetime +# current_sign_in_ip :string(255) +# last_sign_in_ip :string(255) +# confirmation_token :string(255) +# confirmed_at :datetime +# confirmation_sent_at :datetime +# unconfirmed_email :string(255) +# failed_attempts :integer default(0) +# unlock_token :string(255) +# locked_at :datetime +# created_at :datetime not null +# updated_at :datetime not null +# + class User < ActiveRecord::Base rolify # Include default devise modules. Others available are: