forked from bofh/fetsite
Merge branch 'master' of https://github.com/fetsite/fetsite
Conflicts: app/views/layouts/menu.html.erb config/routes.rb
This commit is contained in:
@@ -13,6 +13,12 @@ de:
|
||||
allestudien: "Alle Studien"
|
||||
loeschen: "Dieses Studium löschen"
|
||||
edit: "Studium bearbeiten"
|
||||
verwaltung:
|
||||
title: "Studien verwalten"
|
||||
explanation: "<ul>
|
||||
<li>Klick auf den Namen eines Objektes führt zu dessen Ansicht, ein Klick auf edit direkt zum Bearbeitungsformular</li>
|
||||
<li>Per Dropdown-Menü kann nach einzelnen Objekten gefiltert werden. Die Filter können kombiniert werden, wobei nur erlaubte Kombinationen möglich sind. <b>Solange validation-Fehler (im Log rot und fett) auftreten, keine Filter verwenden</b></li>
|
||||
</ul>"
|
||||
modul:
|
||||
edit: "Modul bearbeiten"
|
||||
list: "Alle Module"
|
||||
@@ -82,15 +88,21 @@ de:
|
||||
lva:
|
||||
attributes:
|
||||
modul:
|
||||
blank: "Wählen Sie zumindest ein Modul aus"
|
||||
blank: "Lva muss zumindest einem Modul zugewiesen sein"
|
||||
name:
|
||||
blank: "Geben Sie bitte den Namen der LVA an"
|
||||
blank: "Die Lva muss einen Namen haben"
|
||||
ects:
|
||||
blank: "Geben Sie die ECTS der LVA an"
|
||||
blank: "Es müssen ECTS eingetragen sein"
|
||||
stunden:
|
||||
blank: "Geben Sie die Stunden der LVA an"
|
||||
blank: "Es muss die Studenanzahl eingettragen sein"
|
||||
lvanr:
|
||||
invalid: "Geben Sie eine LVA-Nummer in richtigem Format an. Wenn die LVA noch keine Nummer hat, so geben sie 000 an."
|
||||
invalid: "Die Nummer muss im Format 000.000 eingegeben sein"
|
||||
blank: "Geben sie eine Lva-Nr an"
|
||||
taken: "Die Lva-Nummer ist vergeben"
|
||||
typ:
|
||||
blank: "Es muss ein Lva-Typ angegeben sein"
|
||||
inclusion: "Der Typ ist nicht aus der Auswahl der gültigen Typen"
|
||||
|
||||
studium:
|
||||
attributes:
|
||||
zahl:
|
||||
@@ -102,6 +114,215 @@ de:
|
||||
taken: "Der Name ist bereits vergeben"
|
||||
typ:
|
||||
inclusion: 'Wählen Sie "Bachelor" oder "Master" aus'
|
||||
|
||||
|
||||
|
||||
modul:
|
||||
attributes:
|
||||
modulgruppen:
|
||||
blank: "Wählen Sie zumindest eine Modulgruppe aus"
|
||||
filter:
|
||||
studium: "Studium"
|
||||
modulgruppe: "Modulgruppe"
|
||||
modul: "Modul"
|
||||
lva: "Lva"
|
||||
beispiel: "Beispiel"
|
||||
reset: "Alle Filter zurücksetzen"
|
||||
verwalten:
|
||||
fehler:
|
||||
keine: "Keine Fehlermeldungen oder Warnungen"
|
||||
support:
|
||||
array:
|
||||
two_words_connector: ', '
|
||||
date:
|
||||
abbr_day_names:
|
||||
- So
|
||||
- Mo
|
||||
- Di
|
||||
- Mi
|
||||
- Do
|
||||
- Fr
|
||||
- Sa
|
||||
abbr_month_names:
|
||||
-
|
||||
- Jan
|
||||
- Feb
|
||||
- Mär
|
||||
- Apr
|
||||
- Mai
|
||||
- Jun
|
||||
- Jul
|
||||
- Aug
|
||||
- Sep
|
||||
- Okt
|
||||
- Nov
|
||||
- Dez
|
||||
day_names:
|
||||
- Sonntag
|
||||
- Montag
|
||||
- Dienstag
|
||||
- Mittwoch
|
||||
- Donnerstag
|
||||
- Freitag
|
||||
- Samstag
|
||||
formats:
|
||||
default: ! '%d.%m.%Y'
|
||||
long: ! '%e. %B %Y'
|
||||
short: ! '%e. %b'
|
||||
month_names:
|
||||
-
|
||||
- Januar
|
||||
- Februar
|
||||
- März
|
||||
- April
|
||||
- Mai
|
||||
- Juni
|
||||
- Juli
|
||||
- August
|
||||
- September
|
||||
- Oktober
|
||||
- November
|
||||
- Dezember
|
||||
order:
|
||||
- :day
|
||||
- :month
|
||||
- :year
|
||||
datetime:
|
||||
distance_in_words:
|
||||
about_x_hours:
|
||||
one: etwa eine Stunde
|
||||
other: etwa %{count} Stunden
|
||||
about_x_months:
|
||||
one: etwa ein Monat
|
||||
other: etwa %{count} Monate
|
||||
about_x_years:
|
||||
one: etwa ein Jahr
|
||||
other: etwa %{count} Jahre
|
||||
almost_x_years:
|
||||
one: fast ein Jahr
|
||||
other: fast %{count} Jahre
|
||||
half_a_minute: eine halbe Minute
|
||||
less_than_x_minutes:
|
||||
one: weniger als eine Minute
|
||||
other: weniger als %{count} Minuten
|
||||
less_than_x_seconds:
|
||||
one: weniger als eine Sekunde
|
||||
other: weniger als %{count} Sekunden
|
||||
over_x_years:
|
||||
one: mehr als ein Jahr
|
||||
other: mehr als %{count} Jahre
|
||||
x_days:
|
||||
one: ein Tag
|
||||
other: ! '%{count} Tage'
|
||||
x_minutes:
|
||||
one: eine Minute
|
||||
other: ! '%{count} Minuten'
|
||||
x_months:
|
||||
one: ein Monat
|
||||
other: ! '%{count} Monate'
|
||||
x_seconds:
|
||||
one: eine Sekunde
|
||||
other: ! '%{count} Sekunden'
|
||||
prompts:
|
||||
day: Tag
|
||||
hour: Stunden
|
||||
minute: Minuten
|
||||
month: Monat
|
||||
second: Sekunden
|
||||
year: Jahr
|
||||
errors:
|
||||
format: ! '%{attribute} %{message}'
|
||||
messages:
|
||||
accepted: muss akzeptiert werden
|
||||
blank: muss ausgefüllt werden
|
||||
confirmation: stimmt nicht mit der Bestätigung überein
|
||||
empty: muss ausgefüllt werden
|
||||
equal_to: muss genau %{count} sein
|
||||
even: muss gerade sein
|
||||
exclusion: ist nicht verfügbar
|
||||
greater_than: muss größer als %{count} sein
|
||||
greater_than_or_equal_to: muss größer oder gleich %{count} sein
|
||||
inclusion: ist kein gültiger Wert
|
||||
invalid: ist nicht gültig
|
||||
less_than: muss kleiner als %{count} sein
|
||||
less_than_or_equal_to: muss kleiner oder gleich %{count} sein
|
||||
not_a_number: ist keine Zahl
|
||||
not_an_integer: muss ganzzahlig sein
|
||||
odd: muss ungerade sein
|
||||
record_invalid: ! 'Gültigkeitsprüfung ist fehlgeschlagen: %{errors}'
|
||||
taken: ist bereits vergeben
|
||||
too_long: ist zu lang (nicht mehr als %{count} Zeichen)
|
||||
too_short: ist zu kurz (nicht weniger als %{count} Zeichen)
|
||||
wrong_length: hat die falsche Länge (muss genau %{count} Zeichen haben)
|
||||
template:
|
||||
body: ! 'Bitte überprüfen Sie die folgenden Felder:'
|
||||
header:
|
||||
one: ! 'Konnte %{model} nicht speichern: ein Fehler.'
|
||||
other: ! 'Konnte %{model} nicht speichern: %{count} Fehler.'
|
||||
helpers:
|
||||
select:
|
||||
prompt: Bitte wählen
|
||||
submit:
|
||||
create: ! '%{model} erstellen'
|
||||
submit: ! '%{model} speichern'
|
||||
update: ! '%{model} aktualisieren'
|
||||
number:
|
||||
currency:
|
||||
format:
|
||||
delimiter: .
|
||||
format: ! '%n %u'
|
||||
precision: 2
|
||||
separator: ! ','
|
||||
significant: false
|
||||
strip_insignificant_zeros: false
|
||||
unit: €
|
||||
format:
|
||||
delimiter: .
|
||||
precision: 2
|
||||
separator: ! ','
|
||||
significant: false
|
||||
strip_insignificant_zeros: false
|
||||
human:
|
||||
decimal_units:
|
||||
format: ! '%n %u'
|
||||
units:
|
||||
billion:
|
||||
one: Milliarde
|
||||
other: Milliarden
|
||||
million: Millionen
|
||||
quadrillion:
|
||||
one: Billiarde
|
||||
other: Billiarden
|
||||
thousand: Tausend
|
||||
trillion: Billionen
|
||||
unit: ''
|
||||
format:
|
||||
delimiter: ''
|
||||
precision: 1
|
||||
significant: true
|
||||
strip_insignificant_zeros: true
|
||||
storage_units:
|
||||
format: ! '%n %u'
|
||||
units:
|
||||
byte:
|
||||
one: Byte
|
||||
other: Bytes
|
||||
gb: GB
|
||||
kb: KB
|
||||
mb: MB
|
||||
tb: TB
|
||||
percentage:
|
||||
format:
|
||||
delimiter: ''
|
||||
precision:
|
||||
format:
|
||||
delimiter: ''
|
||||
support:
|
||||
array:
|
||||
last_word_connector: ! ' und '
|
||||
two_words_connector: ! ' und '
|
||||
words_connector: ! ', '
|
||||
time:
|
||||
am: vormittags
|
||||
formats:
|
||||
default: ! '%d.%m.%Y, %H:%M Uhr'
|
||||
long: ! '%A, %d. %B %Y, %H:%M Uhr'
|
||||
short: ! '%d.%m.%Y, %H:%M Uhr'
|
||||
pm: nachmittags
|
||||
204
config/routes.rb
204
config/routes.rb
@@ -1,124 +1,114 @@
|
||||
Fetsite::Application.routes.draw do
|
||||
|
||||
resources :fragen
|
||||
|
||||
|
||||
resources :attachments
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
devise_for :users
|
||||
resources :home, :only=>[:index]
|
||||
#get 'home',:controller=>home,:action=>:index,:as=>"home_index"
|
||||
scope '(:locale)/admin' do
|
||||
resources :users
|
||||
get 'config',:controller=>:config,:action=>:index , :as => 'config'
|
||||
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update, :as=>'config_getgitupdate'
|
||||
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update
|
||||
end
|
||||
|
||||
devise_for :users
|
||||
|
||||
resources :pages, :except => [:index] do
|
||||
member do
|
||||
post 'preview'
|
||||
end
|
||||
end
|
||||
get 'pages', :to =>'pages#show'
|
||||
scope '(:locale)' do
|
||||
|
||||
resources :studien, :only=>[:new,:edit,:update,:destroy]
|
||||
scope '(:ansicht)' do
|
||||
resources :studien, :only=>[:show]
|
||||
end
|
||||
resources :modulgruppen,:only =>[:create,:index]
|
||||
devise_for :users
|
||||
resources :home, :only=>[:index]
|
||||
#get 'home',:controller=>home,:action=>:index,:as=>"home_index"
|
||||
scope '(:locale)/admin' do
|
||||
resources :users
|
||||
get 'config',:controller=>:config,:action=>:index , :as => 'config'
|
||||
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update, :as=>'config_getgitupdate'
|
||||
get 'config/get_git_update',:controller=>:config,:action=>:get_git_update
|
||||
end
|
||||
|
||||
resources :studien,:except=>[:show,:new,:edit,:update,:destroy], :shallow=>true do
|
||||
resources :modulgruppen, :path => "(:locale)/modulgruppen"
|
||||
|
||||
end
|
||||
# get 'studien/(:ansicht)/:id', :controller=>:studien, :action=>:show, :as=>'studium_ansicht'
|
||||
resources :semesters
|
||||
resources :moduls
|
||||
resources :lvas
|
||||
resources :neuigkeiten
|
||||
get 'rubriken/verwalten', :controller=>:rubriken, :action=>:alle_verwalten, :as=>'alle_verwalten_rubrik'
|
||||
devise_for :users
|
||||
|
||||
resources :rubriken do
|
||||
resources :neuigkeiten, :only=>[:new, :show]
|
||||
end
|
||||
put 'rubriken/(:id)/addmoderator',:controller=>:rubriken,:action=>:addmoderator
|
||||
get 'rubriken/:id/verwalten',:controller=>:rubriken,:action=>:verwalten, :as=>'verwalten_rubrik'
|
||||
resources :home, :only=>[:index]
|
||||
get 'home/dev', :controller=>:home, :action=>:dev, :as=>'home_dev'
|
||||
resources :beispiele
|
||||
resources :themen
|
||||
resources :themengruppen do
|
||||
resources :themen, :only=>[:new, :show]
|
||||
end
|
||||
resources :pages, :except => [:index] do
|
||||
member do
|
||||
post 'preview'
|
||||
end
|
||||
end
|
||||
get 'pages', :to =>'pages#show'
|
||||
scope '(:locale)' do
|
||||
|
||||
resources :studien, :only=>[:new,:edit,:update,:destroy]
|
||||
scope '(:ansicht)' do
|
||||
resources :studien, :only=>[:show]
|
||||
end
|
||||
resources :modulgruppen,:only =>[:create,:index]
|
||||
|
||||
end
|
||||
resources :studien,:except=>[:show,:new,:edit,:update,:destroy], :shallow=>true do
|
||||
resources :modulgruppen, :path => "(:locale)/modulgruppen"
|
||||
|
||||
end
|
||||
get 'verwalten/studien', :controller=>:studien, :action=>:verwalten, :as=>'studien_verwalten'
|
||||
resources :semesters
|
||||
resources :moduls
|
||||
resources :lvas
|
||||
resources :neuigkeiten
|
||||
get 'rubriken/verwalten', :controller=>:rubriken, :action=>:alle_verwalten, :as=>'alle_verwalten_rubrik'
|
||||
|
||||
# The priority is based upon order of creation:
|
||||
# first created -> highest priority.
|
||||
resources :rubriken do
|
||||
resources :neuigkeiten, :only=>[:new, :show]
|
||||
end
|
||||
put 'rubriken/(:id)/addmoderator',:controller=>:rubriken,:action=>:addmoderator
|
||||
get 'rubriken/:id/verwalten',:controller=>:rubriken,:action=>:verwalten, :as=>'verwalten_rubrik'
|
||||
resources :home, :only=>[:index]
|
||||
get 'home/dev', :controller=>:home, :action=>:dev, :as=>'home_dev'
|
||||
resources :beispiele
|
||||
resources :themen
|
||||
resources :themengruppen do
|
||||
resources :themen, :only=>[:new, :show]
|
||||
end
|
||||
|
||||
resources :calendars
|
||||
resources :calentries
|
||||
end
|
||||
|
||||
# Sample of regular route:
|
||||
# match 'products/:id' => 'catalog#view'
|
||||
# Keep in mind you can assign values other than :controller and :action
|
||||
# The priority is based upon order of creation:
|
||||
# first created -> highest priority.
|
||||
|
||||
# Sample of named route:
|
||||
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
||||
# This route can be invoked with purchase_url(:id => product.id)
|
||||
# Sample of regular route:
|
||||
# match 'products/:id' => 'catalog#view'
|
||||
# Keep in mind you can assign values other than :controller and :action
|
||||
|
||||
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
||||
# resources :products
|
||||
# Sample of named route:
|
||||
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
|
||||
# This route can be invoked with purchase_url(:id => product.id)
|
||||
|
||||
# Sample resource route with options:
|
||||
# resources :products do
|
||||
# member do
|
||||
# get 'short'
|
||||
# post 'toggle'
|
||||
# end
|
||||
#
|
||||
# collection do
|
||||
# get 'sold'
|
||||
# end
|
||||
# end
|
||||
# Sample resource route (maps HTTP verbs to controller actions automatically):
|
||||
# resources :products
|
||||
|
||||
# Sample resource route with sub-resources:
|
||||
# resources :products do
|
||||
# resources :comments, :sales
|
||||
# resource :seller
|
||||
# end
|
||||
# Sample resource route with options:
|
||||
# resources :products do
|
||||
# member do
|
||||
# get 'short'
|
||||
# post 'toggle'
|
||||
# end
|
||||
#
|
||||
# collection do
|
||||
# get 'sold'
|
||||
# end
|
||||
# end
|
||||
|
||||
# Sample resource route with more complex sub-resources
|
||||
# resources :products do
|
||||
# resources :comments
|
||||
# resources :sales do
|
||||
# get 'recent', :on => :collection
|
||||
# end
|
||||
# end
|
||||
# Sample resource route with sub-resources:
|
||||
# resources :products do
|
||||
# resources :comments, :sales
|
||||
# resource :seller
|
||||
# end
|
||||
|
||||
# Sample resource route within a namespace:
|
||||
# namespace :admin do
|
||||
# # Directs /admin/products/* to Admin::ProductsController
|
||||
# # (app/controllers/admin/products_controller.rb)
|
||||
# resources :products
|
||||
# end
|
||||
# Sample resource route with more complex sub-resources
|
||||
# resources :products do
|
||||
# resources :comments
|
||||
# resources :sales do
|
||||
# get 'recent', :on => :collection
|
||||
# end
|
||||
# end
|
||||
|
||||
# You can have the root of your site routed with "root"
|
||||
# just remember to delete public/index.html.
|
||||
# Sample resource route within a namespace:
|
||||
# namespace :admin do
|
||||
# # Directs /admin/products/* to Admin::ProductsController
|
||||
# # (app/controllers/admin/products_controller.rb)
|
||||
# resources :products
|
||||
# end
|
||||
|
||||
root :to => 'home#index'
|
||||
# You can have the root of your site routed with "root"
|
||||
# just remember to delete public/index.html.
|
||||
|
||||
# See how all your routes lay out with "rake routes"
|
||||
root :to => 'home#index'
|
||||
|
||||
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
||||
# Note: This route will make all actions in every controller accessible via GET requests.
|
||||
# match ':controller(/:action(/:id))(.:format)'
|
||||
end
|
||||
# See how all your routes lay out with "rake routes"
|
||||
|
||||
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
||||
# Note: This route will make all actions in every controller accessible via GET requests.
|
||||
# match ':controller(/:action(/:id))(.:format)'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user