diff --git a/app/models/calentry.rb b/app/models/calentry.rb index d4c64bc..a69f5de 100644 --- a/app/models/calentry.rb +++ b/app/models/calentry.rb @@ -18,5 +18,5 @@ class Calentry < ActiveRecord::Base def name summary end - + scope :upcoming, -> { where("start >= ?" , Time.now).where("start <= ?", 8.days.from_now) } end diff --git a/app/models/fetprofile.rb b/app/models/fetprofile.rb index ca5eb35..87a402d 100644 --- a/app/models/fetprofile.rb +++ b/app/models/fetprofile.rb @@ -6,4 +6,5 @@ class Fetprofile < ActiveRecord::Base def name [vorname, nachname, "(",short,")"].join(" ") end + scope :active, -> { where(:active=>:true).order(:vorname) } end diff --git a/app/views/fetprofiles/index.html.erb b/app/views/fetprofiles/index.html.erb index 8f27cff..b005167 100644 --- a/app/views/fetprofiles/index.html.erb +++ b/app/views/fetprofiles/index.html.erb @@ -1,23 +1,25 @@ +
+
+

Listing fetprofiles

+
+
- - -
- +
+
<%= link_to 'New Fetprofile', new_fetprofile_path %> +
diff --git a/app/views/fetprofiles/show.html.erb b/app/views/fetprofiles/show.html.erb index 99e2912..b4e17fc 100644 --- a/app/views/fetprofiles/show.html.erb +++ b/app/views/fetprofiles/show.html.erb @@ -16,7 +16,7 @@

<%= "Aktiv".html_safe if @fetprofile.active %>

- +

<%= link_to 'Destroy', @fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %>

diff --git a/app/views/home/setup_fetsite_dev.html.erb b/app/views/home/setup_fetsite_dev.html.erb index a4f6161..2d7dc0e 100644 --- a/app/views/home/setup_fetsite_dev.html.erb +++ b/app/views/home/setup_fetsite_dev.html.erb @@ -3,7 +3,8 @@

Git installieren und Repository koperen

Falls noch nicht installiert, GIT installieren
sudo apt-get install git git-cola
-Repository auf Github forken und dann auf dem Rechner clonen. +Repository auf Github forken und dann auf dem Rechner clonen. +Den folgenden Befehl im Verzeichnis in das gekont werden soll ausführen.
git clone https://github.com//fetsite

Ruby on Rails installieren

Ruby 1.9 installieren wobei wichtig ist, dass die Version 1.9 ist @@ -12,6 +13,7 @@ Falls mehrere Ruby Versionen installiert ist mit
 sudo update-alternatives --config ruby
überprüfen, dass Ruby 1.9 verwendet wird.
sudo apt-get install rubygems1.9
+Im angelegten Verzeichnis den bundle installer ausführen.
sudo gem install bundler
ImageMagick,sqlite3 installieren
sudo apt-get install libmagickwand-dev libsqlite3-dev nodejs
diff --git a/app/views/layouts/menu.html.erb b/app/views/layouts/menu.html.erb index c5c383b..7b93ae5 100755 --- a/app/views/layouts/menu.html.erb +++ b/app/views/layouts/menu.html.erb @@ -14,6 +14,7 @@
  • <%= link_to I18n.t(:news,:scope=>'home' ),rubriken_path %>
  • <%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %>
  • <%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %>
  • +
  • <%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %>
  • <%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %>
  • <%= link_to "Kalender", calendars_path %>
  • diff --git a/config/locales/de.yml b/config/locales/de.yml index 350aba4..e73fab7 100755 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -17,6 +17,7 @@ de: news: "Neuigkeiten" info: "Information" mitarbeiter: "Mitarbeiter" + fotos: "Fotos" formtastic: titles: modul: