This commit is contained in:
Andreas Stephanides
2017-07-25 10:21:50 +02:00
14 changed files with 42 additions and 14 deletions

25
README Normal file
View File

@@ -0,0 +1,25 @@
SETUP:
install ruby 2.1.10
install requirements
apt-get ...
mkdir /srv/fetsite
cd /srv/fetsite
copy / fetch Gemfile
make User fetsite
bundle install
# Config Files kopieren:
cp /srv/fetsite/config/omniout_secrets.yml.example /srv/fetsite/config/omniout_secrets.yml
cp /srv/fetsite/config/omniout_secrets.yml.example /srv/fetsite/config/omniout_secrets.yml
touch crawler_config.yml
# Datenbank erstellen
rake db:migrate

View File

@@ -26,7 +26,7 @@ class Gremium < ActiveRecord::Base
# has_many :members, through: :memberships
searchable do
text :desc
text :name, :boost=>4.0
text :name
end
belongs_to :thema # Gehört zu einem Thema

View File

@@ -186,6 +186,6 @@ class Neuigkeit < ActiveRecord::Base
searchable do
text :text
text :datum
text :title, :boost=>3.0
text :title
end
end

View File

@@ -42,7 +42,7 @@ end
searchable do
text :desc
text :name, :boost=>4.0
text :name
end
end

View File

@@ -89,7 +89,7 @@ class Studium < ActiveRecord::Base
text :zahl
text :typ
text :abkuerzung
text :name, :boost=>3.0
text :name
end
end

View File

@@ -47,7 +47,7 @@ class Thema < ActiveRecord::Base
# make topic searchable
searchable do
text :text
text :title, :boost=>4.0
text :title
end
resourcify

View File

@@ -40,7 +40,7 @@ end
searchable do
text :text
text :title, :boost=>4.0
text :title
end
end

View File

@@ -35,10 +35,11 @@
</div>
<div class="span3">
<% unless @calentries.nil? or @calentries.empty? %>
<% cache("calendar_" + @calentries.map{|c| c.id}.join('') + @calentries.max{|c|c.updated_at.to_i}.updated_at.to_i.to_s+"_"+I18n.locale.to_s+params[:month].to_s+params[:year].to_s) do %>
<%= render 'calendars/calentries', :object=>@calentries %>
<% end %>
<% end %>
<% if !current_user.nil? and current_user.has_role?(:fetuser) %>
<%= link_to calendars_url(:format=>:ics, :key=>Key.find_or_create(current_user,1).uuid) , calendars_path(:format=>:ics, :key=>Key.find_or_create(current_user,1).uuid)%>
<% end %>

View File

@@ -9,7 +9,7 @@
<div class="content-wrap content-column" style="max-width:90em;">
<h1><%= I18n.t('home.willkommen') %></h1>
<%= raw(@starttopic.text) %>
<%= raw(@starttopic.text) unless @starttopic.nil? %>
<div class="container-fluid">

View File

@@ -9,7 +9,7 @@
<div class="content-wrap content-column" style="max-width:90em;">
<h1><%= I18n.t('home.willkommen') %></h1>
<%= raw(@starttopic.text) %>
<%= raw(@starttopic.text) unless @starttopic.nil? %>
<div class="container-fluid">

View File

@@ -16,6 +16,7 @@ de:
savecont: "Zwischenspeichern"
intern: "Intern"
manage: "Verwalten"
new: "Neu"
home:
sprache: "Deutsch"
kontakt: "Kontakt"

View File

@@ -6,6 +6,7 @@ de:
active_members: "Aktive Mitglieder"
notactive_members: "Pension"
new_profile: "Neues Profil anlegen"
new: "Neues Profil anlegen"
gremium:
new: "Neues Gremium"
seit: "seit"

View File

@@ -3,17 +3,17 @@ production:
hostname: localhost
port: 8080
log_level: WARNING
path: /solr-4.10.2/default #production #ollection1 #production
path: /solr/#/default #production #ollection1 #production
# solr_home: solr
# read_timeout: 2
# open_timeout: 0.5
development:
solr:
hostname: localhost
port: 8982
hostname: solr
port: 8983
log_level: INFO
path: /solr/development
path: /solr/mycore
test:
solr:

0
test1 Normal file
View File