forked from bofh/fetsite
Compare commits
133 Commits
stable
...
stable-pro
| Author | SHA1 | Date | |
|---|---|---|---|
| e873916095 | |||
| 6ebb36d840 | |||
| f6c3cda045 | |||
| a20c6fa673 | |||
| 1cf84c90ae | |||
| 2e732561e8 | |||
| a8f353f213 | |||
| 6ba20206ab | |||
|
|
2ae99b4b9e | ||
|
|
f61681c5d0 | ||
| 1b91d99b24 | |||
| 28906eb5fb | |||
| 745c4413f4 | |||
| ac7e7f3462 | |||
| e55a71e77d | |||
| 502aae5c27 | |||
| c2ebdcbefc | |||
| 734a137563 | |||
| 9f1de3d9d0 | |||
|
|
0f683ac974 | ||
|
|
5ffecf7087 | ||
|
|
965db4dec0 | ||
|
|
6aecb4b4a8 | ||
|
|
b1616a6d6d | ||
|
|
122bf6c6d4 | ||
|
|
829bdb97be | ||
|
|
6c91513ff8 | ||
|
|
d1a496a017 | ||
|
|
eb95f7a5e4 | ||
|
|
de225627b1 | ||
|
|
08aa459f57 | ||
|
|
2b6890a6e6 | ||
|
|
04ce26754a | ||
|
|
163e1adfc2 | ||
|
|
e5a5ec85ef | ||
|
|
256d9f09fb | ||
|
|
e3c6721811 | ||
|
|
e5f0d75b79 | ||
|
|
07bb853501 | ||
|
|
af5b081a3b | ||
|
|
24f3e90235 | ||
|
|
ef1135962e | ||
|
|
22cf26f76c | ||
|
|
0c7614b41d | ||
|
|
0fedeb2bde | ||
|
|
146885abae | ||
|
|
c38139d6f1 | ||
|
|
8cb6ec785c | ||
|
|
b8903c6d9a | ||
|
|
242d05f4fa | ||
|
|
070e0dfedb | ||
|
|
610e6ae3dd | ||
|
|
6c4873d869 | ||
|
|
09d5e7b880 | ||
|
|
6b37d44c9a | ||
|
|
20088b868f | ||
|
|
f1fbd3bef3 | ||
|
|
17a43097e7 | ||
|
|
3498535d8c | ||
|
|
d313e712f1 | ||
|
|
bb4adf2eb7 | ||
|
|
09532fc74c | ||
|
|
29d5c8dac7 | ||
|
|
926431c0a2 | ||
|
|
d95e1a3399 | ||
|
|
d6fa4e1dc7 | ||
|
|
6528e8a320 | ||
|
|
18beead785 | ||
|
|
3baf44c057 | ||
|
|
9ec7a76d4a | ||
|
|
3b6590f369 | ||
|
|
708911ba4e | ||
|
|
797d2a1d31 | ||
|
|
7ad484cdd7 | ||
|
|
aca92e1107 | ||
|
|
f13fbafaae | ||
|
|
f6738a5226 | ||
|
|
2f4a9e4f10 | ||
|
|
dff490163e | ||
|
|
20a7091800 | ||
|
|
ff49499204 | ||
|
|
8b3e1ee225 | ||
|
|
dc4f161ce4 | ||
|
|
5c5236062b | ||
|
|
43af1114e8 | ||
|
|
0772d51c71 | ||
|
|
f2293513c1 | ||
|
|
87cad802d7 | ||
|
|
2e4a0680df | ||
|
|
4ca664a091 | ||
|
|
02c766f428 | ||
|
|
75e5b8e267 | ||
|
|
7d008cb599 | ||
|
|
b1fc24af80 | ||
|
|
7477b028c5 | ||
|
|
fddaa0dcb6 | ||
|
|
4ed7e92385 | ||
|
|
82876f34a8 | ||
|
|
3d97153fa5 | ||
|
|
6e10830b83 | ||
|
|
8ad15aafd2 | ||
|
|
d4948fff5e | ||
|
|
8ea2109b27 | ||
|
|
f72466f1cd | ||
|
|
cba94e926c | ||
|
|
f522a83813 | ||
|
|
94d67463a9 | ||
|
|
38656a1e75 | ||
|
|
503b9eb732 | ||
|
|
ffee3b8dfb | ||
|
|
978f617131 | ||
|
|
cf2a8adf49 | ||
|
|
14e563ef95 | ||
|
|
5660cd7748 | ||
|
|
af5d055014 | ||
|
|
453dd7867d | ||
|
|
bbfb5e6a1d | ||
|
|
4ed35f184c | ||
|
|
37aab0ef59 | ||
|
|
c53d34191a | ||
|
|
61c5624b16 | ||
|
|
a1ef7028fd | ||
|
|
b5f1ae9e69 | ||
|
|
6a9fe8243b | ||
|
|
1f581ab819 | ||
|
|
e73315bd41 | ||
|
|
491e360141 | ||
|
|
28226df76c | ||
|
|
14598fbbd9 | ||
|
|
ffaa57c914 | ||
|
|
cd439ecf02 | ||
|
|
328adfe3a5 | ||
|
|
e0312386e7 |
9
.gitignore
vendored
9
.gitignore
vendored
@@ -28,7 +28,7 @@
|
|||||||
/db/schema.rb
|
/db/schema.rb
|
||||||
/db/structure.sql
|
/db/structure.sql
|
||||||
/config/initializers/devise.rb
|
/config/initializers/devise.rb
|
||||||
Gemfile.lock
|
|
||||||
# Ignore all logfiles and tempfiles.
|
# Ignore all logfiles and tempfiles.
|
||||||
/log/*.log
|
/log/*.log
|
||||||
/tmp
|
/tmp
|
||||||
@@ -40,15 +40,20 @@ console
|
|||||||
/server
|
/server
|
||||||
/public/uploads/
|
/public/uploads/
|
||||||
/public/sitemap*
|
/public/sitemap*
|
||||||
|
/public/assets/
|
||||||
/vendor/*
|
/vendor/*
|
||||||
/bak/*
|
/bak/*
|
||||||
/solr/*
|
/solr/*
|
||||||
/log/*
|
/log/*
|
||||||
*#
|
*#
|
||||||
Gemfile.lock
|
|
||||||
/config/database.yml
|
/config/database.yml
|
||||||
/config/start_topic.yml
|
/config/start_topic.yml
|
||||||
/config/contact_topic.yml
|
/config/contact_topic.yml
|
||||||
|
/config/etherpad/APIKEY.*
|
||||||
|
/config/page.yml
|
||||||
|
|
||||||
.#*
|
.#*
|
||||||
.*
|
.*
|
||||||
!/.gitignore
|
!/.gitignore
|
||||||
|
*.pid
|
||||||
8
Gemfile
8
Gemfile
@@ -1,11 +1,11 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
gem 'rake', '~>10.0'
|
||||||
gem 'rails', '3.2.13'
|
gem 'rails', '3.2.13'
|
||||||
gem 'sprockets', '2.2.2'
|
gem 'sprockets', '2.2.2'
|
||||||
gem 'webrick', '1.3.1'
|
gem 'webrick', '1.3.1'
|
||||||
# Bundle edge Rails instead:
|
# Bundle edge Rails instead:
|
||||||
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
||||||
gem 'mysql2'
|
gem 'mysql2', '~>0.3.10'
|
||||||
gem 'sqlite3'
|
gem 'sqlite3'
|
||||||
gem 'execjs', '~>1.4.0'
|
gem 'execjs', '~>1.4.0'
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ gem 'jquery-rails'
|
|||||||
# gem 'jbuilder'
|
# gem 'jbuilder'
|
||||||
|
|
||||||
# Use unicorn as the app server
|
# Use unicorn as the app server
|
||||||
gem 'unicorn'
|
gem 'unicorn', '~>4.8.0'
|
||||||
|
|
||||||
# Deploy with Capistran
|
# Deploy with Capistran
|
||||||
# gem 'capistrano'
|
# gem 'capistrano'
|
||||||
@@ -82,7 +82,7 @@ gem 'haml'
|
|||||||
#gem 'wikicloth'
|
#gem 'wikicloth'
|
||||||
#gem 'gollum-lib'
|
#gem 'gollum-lib'
|
||||||
gem 'awesome_nested_set'
|
gem 'awesome_nested_set'
|
||||||
gem 'annotate', ">=2.5.0"
|
gem 'annotate', "~>2.6.0"
|
||||||
gem 'carrierwave', "~>0.9.0"
|
gem 'carrierwave', "~>0.9.0"
|
||||||
group :development, :test do
|
group :development, :test do
|
||||||
gem 'factory_girl_rails',"~>4.5.0"
|
gem 'factory_girl_rails',"~>4.5.0"
|
||||||
|
|||||||
449
Gemfile.lock
Normal file
449
Gemfile.lock
Normal file
@@ -0,0 +1,449 @@
|
|||||||
|
GIT
|
||||||
|
remote: git://github.com/matenia/bootstrap-kaminari-views.git
|
||||||
|
revision: 9df61d400fc144c3f33d65f3f97e4867b8e68273
|
||||||
|
specs:
|
||||||
|
bootstrap-kaminari-views (0.0.5)
|
||||||
|
kaminari (>= 0.13)
|
||||||
|
rails (>= 3.1)
|
||||||
|
|
||||||
|
GIT
|
||||||
|
remote: git://github.com/rgrove/sanitize
|
||||||
|
revision: acc7e6440139379a0c6b4b76b662ed90acd4b923
|
||||||
|
specs:
|
||||||
|
sanitize (4.6.4)
|
||||||
|
crass (~> 1.0.2)
|
||||||
|
nokogiri (>= 1.4.4)
|
||||||
|
nokogumbo (~> 1.4)
|
||||||
|
|
||||||
|
GEM
|
||||||
|
remote: https://rubygems.org/
|
||||||
|
specs:
|
||||||
|
actionmailer (3.2.13)
|
||||||
|
actionpack (= 3.2.13)
|
||||||
|
mail (~> 2.5.3)
|
||||||
|
actionpack (3.2.13)
|
||||||
|
activemodel (= 3.2.13)
|
||||||
|
activesupport (= 3.2.13)
|
||||||
|
builder (~> 3.0.0)
|
||||||
|
erubis (~> 2.7.0)
|
||||||
|
journey (~> 1.0.4)
|
||||||
|
rack (~> 1.4.5)
|
||||||
|
rack-cache (~> 1.2)
|
||||||
|
rack-test (~> 0.6.1)
|
||||||
|
sprockets (~> 2.2.1)
|
||||||
|
active_record_query_trace (1.5.4)
|
||||||
|
activemodel (3.2.13)
|
||||||
|
activesupport (= 3.2.13)
|
||||||
|
builder (~> 3.0.0)
|
||||||
|
activerecord (3.2.13)
|
||||||
|
activemodel (= 3.2.13)
|
||||||
|
activesupport (= 3.2.13)
|
||||||
|
arel (~> 3.0.2)
|
||||||
|
tzinfo (~> 0.3.29)
|
||||||
|
activeresource (3.2.13)
|
||||||
|
activemodel (= 3.2.13)
|
||||||
|
activesupport (= 3.2.13)
|
||||||
|
activesupport (3.2.13)
|
||||||
|
i18n (= 0.6.1)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
acts_as_votable (0.11.1)
|
||||||
|
addressable (2.5.2)
|
||||||
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
|
aes_key_wrap (1.0.1)
|
||||||
|
annotate (2.6.10)
|
||||||
|
activerecord (>= 3.2, <= 4.3)
|
||||||
|
rake (~> 10.4)
|
||||||
|
arel (3.0.3)
|
||||||
|
attr_required (1.0.1)
|
||||||
|
awesome_nested_set (2.1.6)
|
||||||
|
activerecord (>= 3.0.0)
|
||||||
|
bcrypt (3.1.11)
|
||||||
|
bcrypt-ruby (3.1.5)
|
||||||
|
bcrypt (>= 3.1.3)
|
||||||
|
bindata (2.4.3)
|
||||||
|
blueimp-gallery (2.11.0.1)
|
||||||
|
railties (>= 3.1.0)
|
||||||
|
blueimp-gallery-rails (2.7.0)
|
||||||
|
railties (>= 3.0, < 5.0)
|
||||||
|
bootstrap-addons-rails (0.1.2)
|
||||||
|
rails
|
||||||
|
bootstrap-sass (2.3.2.2)
|
||||||
|
sass (~> 3.2)
|
||||||
|
builder (3.0.4)
|
||||||
|
cancan (1.6.10)
|
||||||
|
capybara (2.5.0)
|
||||||
|
mime-types (>= 1.16)
|
||||||
|
nokogiri (>= 1.3.3)
|
||||||
|
rack (>= 1.0.0)
|
||||||
|
rack-test (>= 0.5.4)
|
||||||
|
xpath (~> 2.0)
|
||||||
|
carrierwave (0.9.0)
|
||||||
|
activemodel (>= 3.2.0)
|
||||||
|
activesupport (>= 3.2.0)
|
||||||
|
json (>= 1.7)
|
||||||
|
chronic (0.10.2)
|
||||||
|
climate_control (0.2.0)
|
||||||
|
cocaine (0.5.8)
|
||||||
|
climate_control (>= 0.0.3, < 1.0)
|
||||||
|
coffee-rails (3.2.2)
|
||||||
|
coffee-script (>= 2.2.0)
|
||||||
|
railties (~> 3.2.0)
|
||||||
|
coffee-script (2.4.1)
|
||||||
|
coffee-script-source
|
||||||
|
execjs
|
||||||
|
coffee-script-source (1.12.2)
|
||||||
|
crass (1.0.4)
|
||||||
|
devise (2.2.8)
|
||||||
|
bcrypt-ruby (~> 3.0)
|
||||||
|
orm_adapter (~> 0.1)
|
||||||
|
railties (~> 3.1)
|
||||||
|
warden (~> 1.2.1)
|
||||||
|
diff-lcs (1.3)
|
||||||
|
domain_name (0.5.20180417)
|
||||||
|
unf (>= 0.0.5, < 1.0.0)
|
||||||
|
erubis (2.7.0)
|
||||||
|
etherpad-lite (0.3.0)
|
||||||
|
rest-client (>= 1.6)
|
||||||
|
execjs (1.4.1)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
factory_girl (4.5.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
factory_girl_rails (4.5.0)
|
||||||
|
factory_girl (~> 4.5.0)
|
||||||
|
railties (>= 3.0.0)
|
||||||
|
faraday (0.12.2)
|
||||||
|
multipart-post (>= 1.2, < 3)
|
||||||
|
fb_graph (2.7.17)
|
||||||
|
httpclient (>= 2.4)
|
||||||
|
multi_json (>= 1.3)
|
||||||
|
rack-oauth2 (>= 0.14.4)
|
||||||
|
tzinfo
|
||||||
|
ffi (1.9.23)
|
||||||
|
font-awesome-rails (4.7.0.4)
|
||||||
|
railties (>= 3.2, < 6.0)
|
||||||
|
formtastic (2.2.1)
|
||||||
|
actionpack (>= 3.0)
|
||||||
|
formtastic-bootstrap (3.0.0)
|
||||||
|
formtastic (>= 2.2)
|
||||||
|
git (1.3.0)
|
||||||
|
globalize (3.0.5)
|
||||||
|
activemodel (>= 3.0.0, < 4.0.0)
|
||||||
|
activerecord (>= 3.0.0, < 4.0.0)
|
||||||
|
globalize-accessors (0.1.5)
|
||||||
|
globalize (>= 3)
|
||||||
|
globalize-versioning (0.2.0)
|
||||||
|
activemodel (>= 3.2.0, < 5)
|
||||||
|
activerecord (>= 3.2.0, < 5)
|
||||||
|
globalize (>= 3.0.4, < 6)
|
||||||
|
paper_trail (>= 3.0.0, < 5)
|
||||||
|
haml (5.0.4)
|
||||||
|
temple (>= 0.8.0)
|
||||||
|
tilt
|
||||||
|
hashie (3.5.7)
|
||||||
|
highline (1.7.10)
|
||||||
|
hike (1.2.3)
|
||||||
|
http-cookie (1.0.3)
|
||||||
|
domain_name (~> 0.5)
|
||||||
|
httpclient (2.8.3)
|
||||||
|
i18n (0.6.1)
|
||||||
|
journey (1.0.4)
|
||||||
|
jquery-datetimepicker-rails (2.4.1.0)
|
||||||
|
jquery-fileupload-rails (0.4.1)
|
||||||
|
actionpack (>= 3.1)
|
||||||
|
railties (>= 3.1)
|
||||||
|
jquery-rails (3.1.5)
|
||||||
|
railties (>= 3.0, < 5.0)
|
||||||
|
thor (>= 0.14, < 2.0)
|
||||||
|
jquery-ui-rails (4.1.2)
|
||||||
|
railties (>= 3.1.0)
|
||||||
|
json (2.1.0)
|
||||||
|
json-jwt (1.9.4)
|
||||||
|
activesupport
|
||||||
|
aes_key_wrap
|
||||||
|
bindata
|
||||||
|
jwt (1.5.6)
|
||||||
|
kaminari (0.17.0)
|
||||||
|
actionpack (>= 3.0.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
kgio (2.11.2)
|
||||||
|
libv8 (3.16.14.19)
|
||||||
|
mail (2.5.5)
|
||||||
|
mime-types (~> 1.16)
|
||||||
|
treetop (~> 1.4.8)
|
||||||
|
meta-tags (2.9.0)
|
||||||
|
actionpack (>= 3.2.0, < 5.3)
|
||||||
|
mime-types (1.25.1)
|
||||||
|
mini_portile2 (2.3.0)
|
||||||
|
minitest (4.7.5)
|
||||||
|
multi_json (1.13.1)
|
||||||
|
multi_xml (0.6.0)
|
||||||
|
multipart-post (2.0.0)
|
||||||
|
mysql2 (0.3.21)
|
||||||
|
net-ldap (0.16.1)
|
||||||
|
netrc (0.11.0)
|
||||||
|
nokogiri (1.8.2)
|
||||||
|
mini_portile2 (~> 2.3.0)
|
||||||
|
nokogumbo (1.5.0)
|
||||||
|
nokogiri
|
||||||
|
oauth2 (1.4.0)
|
||||||
|
faraday (>= 0.8, < 0.13)
|
||||||
|
jwt (~> 1.0)
|
||||||
|
multi_json (~> 1.3)
|
||||||
|
multi_xml (~> 0.5)
|
||||||
|
rack (>= 1.2, < 3)
|
||||||
|
omniauth (1.2.2)
|
||||||
|
hashie (>= 1.2, < 4)
|
||||||
|
rack (~> 1.0)
|
||||||
|
omniauth-facebook (2.0.1)
|
||||||
|
omniauth-oauth2 (~> 1.2)
|
||||||
|
omniauth-ldap (1.0.5)
|
||||||
|
net-ldap (~> 0.12)
|
||||||
|
omniauth (~> 1.0)
|
||||||
|
pyu-ruby-sasl (~> 0.0.3.2)
|
||||||
|
rubyntlm (~> 0.3.4)
|
||||||
|
omniauth-oauth2 (1.5.0)
|
||||||
|
oauth2 (~> 1.1)
|
||||||
|
omniauth (~> 1.2)
|
||||||
|
opengraph_parser (0.2.3)
|
||||||
|
addressable
|
||||||
|
nokogiri
|
||||||
|
options (2.3.2)
|
||||||
|
orm_adapter (0.5.0)
|
||||||
|
paper_trail (3.0.9)
|
||||||
|
activerecord (>= 3.0, < 5.0)
|
||||||
|
activesupport (>= 3.0, < 5.0)
|
||||||
|
paperclip (3.4.2)
|
||||||
|
activemodel (>= 3.0.0)
|
||||||
|
activerecord (>= 3.0.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
cocaine (~> 0.5.0)
|
||||||
|
mime-types
|
||||||
|
polyglot (0.3.5)
|
||||||
|
pr_geohash (1.0.0)
|
||||||
|
progress_bar (1.2.0)
|
||||||
|
highline (~> 1.6)
|
||||||
|
options (~> 2.3.0)
|
||||||
|
public_suffix (3.0.2)
|
||||||
|
pyu-ruby-sasl (0.0.3.3)
|
||||||
|
rack (1.4.7)
|
||||||
|
rack-cache (1.7.2)
|
||||||
|
rack (>= 0.4)
|
||||||
|
rack-oauth2 (1.9.2)
|
||||||
|
activesupport
|
||||||
|
attr_required
|
||||||
|
httpclient
|
||||||
|
json-jwt (>= 1.9.0)
|
||||||
|
rack
|
||||||
|
rack-ssl (1.3.4)
|
||||||
|
rack
|
||||||
|
rack-test (0.6.3)
|
||||||
|
rack (>= 1.0)
|
||||||
|
rails (3.2.13)
|
||||||
|
actionmailer (= 3.2.13)
|
||||||
|
actionpack (= 3.2.13)
|
||||||
|
activerecord (= 3.2.13)
|
||||||
|
activeresource (= 3.2.13)
|
||||||
|
activesupport (= 3.2.13)
|
||||||
|
bundler (~> 1.0)
|
||||||
|
railties (= 3.2.13)
|
||||||
|
railties (3.2.13)
|
||||||
|
actionpack (= 3.2.13)
|
||||||
|
activesupport (= 3.2.13)
|
||||||
|
rack-ssl (~> 1.3.2)
|
||||||
|
rake (>= 0.8.7)
|
||||||
|
rdoc (~> 3.4)
|
||||||
|
thor (>= 0.14.6, < 2.0)
|
||||||
|
raindrops (0.19.0)
|
||||||
|
rake (10.5.0)
|
||||||
|
rb-fsevent (0.10.3)
|
||||||
|
rb-inotify (0.9.10)
|
||||||
|
ffi (>= 0.5.0, < 2)
|
||||||
|
rdoc (3.9.5)
|
||||||
|
ref (2.0.0)
|
||||||
|
rest-client (2.0.2)
|
||||||
|
http-cookie (>= 1.0.2, < 2.0)
|
||||||
|
mime-types (>= 1.16, < 4.0)
|
||||||
|
netrc (~> 0.8)
|
||||||
|
rmagick (2.16.0)
|
||||||
|
rolify (4.0.0)
|
||||||
|
rsolr (2.2.1)
|
||||||
|
builder (>= 2.1.2)
|
||||||
|
faraday (>= 0.9.0)
|
||||||
|
rspec (3.3.0)
|
||||||
|
rspec-core (~> 3.3.0)
|
||||||
|
rspec-expectations (~> 3.3.0)
|
||||||
|
rspec-mocks (~> 3.3.0)
|
||||||
|
rspec-activemodel-mocks (1.0.3)
|
||||||
|
activemodel (>= 3.0)
|
||||||
|
activesupport (>= 3.0)
|
||||||
|
rspec-mocks (>= 2.99, < 4.0)
|
||||||
|
rspec-collection_matchers (1.1.3)
|
||||||
|
rspec-expectations (>= 2.99.0.beta1)
|
||||||
|
rspec-core (3.3.2)
|
||||||
|
rspec-support (~> 3.3.0)
|
||||||
|
rspec-expectations (3.3.1)
|
||||||
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
|
rspec-support (~> 3.3.0)
|
||||||
|
rspec-html-matchers (0.7.3)
|
||||||
|
nokogiri (~> 1)
|
||||||
|
rspec (>= 3.0.0.a, < 4)
|
||||||
|
rspec-mocks (3.3.2)
|
||||||
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
|
rspec-support (~> 3.3.0)
|
||||||
|
rspec-rails (3.3.3)
|
||||||
|
actionpack (>= 3.0, < 4.3)
|
||||||
|
activesupport (>= 3.0, < 4.3)
|
||||||
|
railties (>= 3.0, < 4.3)
|
||||||
|
rspec-core (~> 3.3.0)
|
||||||
|
rspec-expectations (~> 3.3.0)
|
||||||
|
rspec-mocks (~> 3.3.0)
|
||||||
|
rspec-support (~> 3.3.0)
|
||||||
|
rspec-support (3.3.0)
|
||||||
|
rubyntlm (0.3.4)
|
||||||
|
rubyzip (1.2.1)
|
||||||
|
sass (3.5.6)
|
||||||
|
sass-listen (~> 4.0.0)
|
||||||
|
sass-listen (4.0.0)
|
||||||
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
sass-rails (3.2.6)
|
||||||
|
railties (~> 3.2.0)
|
||||||
|
sass (>= 3.1.10)
|
||||||
|
tilt (~> 1.3)
|
||||||
|
seed_dump (0.5.3)
|
||||||
|
shareable (1.1.4)
|
||||||
|
actionpack (>= 3.0.0)
|
||||||
|
activesupport (>= 3.0.0)
|
||||||
|
simple_calendar (0.1.11)
|
||||||
|
rails (>= 3.0)
|
||||||
|
sitemap_generator (6.0.1)
|
||||||
|
builder (~> 3.0)
|
||||||
|
sprockets (2.2.2)
|
||||||
|
hike (~> 1.2)
|
||||||
|
multi_json (~> 1.0)
|
||||||
|
rack (~> 1.0)
|
||||||
|
tilt (~> 1.1, != 1.3.0)
|
||||||
|
sqlite3 (1.3.13)
|
||||||
|
sunspot (2.3.0)
|
||||||
|
pr_geohash (~> 1.0)
|
||||||
|
rsolr (>= 1.1.1, < 3)
|
||||||
|
sunspot_rails (2.3.0)
|
||||||
|
rails (>= 3)
|
||||||
|
sunspot (= 2.3.0)
|
||||||
|
sunspot_solr (2.3.0)
|
||||||
|
sunspot_test (0.4.1)
|
||||||
|
sunspot_rails (>= 2.1.1)
|
||||||
|
sunspot_solr
|
||||||
|
temple (0.8.0)
|
||||||
|
themes_for_rails (0.5.1)
|
||||||
|
rails (>= 3.0.0)
|
||||||
|
therubyracer (0.12.3)
|
||||||
|
libv8 (~> 3.16.14.15)
|
||||||
|
ref
|
||||||
|
thor (0.20.0)
|
||||||
|
tilt (1.4.1)
|
||||||
|
tinymce-rails (4.1.10)
|
||||||
|
railties (>= 3.1.1)
|
||||||
|
treetop (1.4.15)
|
||||||
|
polyglot
|
||||||
|
polyglot (>= 0.3.1)
|
||||||
|
tzinfo (0.3.54)
|
||||||
|
uglifier (4.1.10)
|
||||||
|
execjs (>= 0.3.0, < 3)
|
||||||
|
unf (0.1.4)
|
||||||
|
unf_ext
|
||||||
|
unf_ext (0.0.7.5)
|
||||||
|
unicorn (4.8.3)
|
||||||
|
kgio (~> 2.6)
|
||||||
|
rack
|
||||||
|
raindrops (~> 0.7)
|
||||||
|
warden (1.2.7)
|
||||||
|
rack (>= 1.0)
|
||||||
|
webrick (1.3.1)
|
||||||
|
whenever (0.10.0)
|
||||||
|
chronic (>= 0.6.3)
|
||||||
|
xpath (2.1.0)
|
||||||
|
nokogiri (~> 1.3)
|
||||||
|
yaml_db (0.6.0)
|
||||||
|
rails (>= 3.0, < 5.2)
|
||||||
|
rake (>= 0.8.7)
|
||||||
|
|
||||||
|
PLATFORMS
|
||||||
|
ruby
|
||||||
|
|
||||||
|
DEPENDENCIES
|
||||||
|
active_record_query_trace
|
||||||
|
acts_as_votable
|
||||||
|
annotate (~> 2.6.0)
|
||||||
|
awesome_nested_set
|
||||||
|
blueimp-gallery
|
||||||
|
blueimp-gallery-rails
|
||||||
|
bootstrap-addons-rails
|
||||||
|
bootstrap-kaminari-views!
|
||||||
|
bootstrap-sass (~> 2.3.2.1)
|
||||||
|
cancan (~> 1.6.0)
|
||||||
|
capybara (~> 2.5.0)
|
||||||
|
carrierwave (~> 0.9.0)
|
||||||
|
coffee-rails (~> 3.0)
|
||||||
|
devise (~> 2.2.3)
|
||||||
|
etherpad-lite
|
||||||
|
execjs (~> 1.4.0)
|
||||||
|
factory_girl_rails (~> 4.5.0)
|
||||||
|
fb_graph (~> 2.7.17)
|
||||||
|
font-awesome-rails
|
||||||
|
formtastic (~> 2.2.1)
|
||||||
|
formtastic-bootstrap (~> 3.0.0)
|
||||||
|
git
|
||||||
|
globalize (~> 3.0.4)
|
||||||
|
globalize-accessors
|
||||||
|
globalize-versioning
|
||||||
|
haml
|
||||||
|
jquery-datetimepicker-rails
|
||||||
|
jquery-fileupload-rails (= 0.4.1)
|
||||||
|
jquery-rails
|
||||||
|
jquery-ui-rails (~> 4.1.0)
|
||||||
|
kaminari
|
||||||
|
meta-tags
|
||||||
|
minitest (~> 4.7.5)
|
||||||
|
mysql2 (~> 0.3.10)
|
||||||
|
omniauth (~> 1.2.2)
|
||||||
|
omniauth-facebook (~> 2.0.0)
|
||||||
|
omniauth-ldap (~> 1.0.4)
|
||||||
|
opengraph_parser
|
||||||
|
paper_trail (~> 3.0.5)
|
||||||
|
paperclip (~> 3.4.0)
|
||||||
|
progress_bar
|
||||||
|
rails (= 3.2.13)
|
||||||
|
rake (~> 10.0)
|
||||||
|
rmagick
|
||||||
|
rolify (~> 4.0.0)
|
||||||
|
rspec-activemodel-mocks (~> 1.0.1)
|
||||||
|
rspec-collection_matchers (~> 1.1.2)
|
||||||
|
rspec-core (~> 3.3.0)
|
||||||
|
rspec-expectations (~> 3.3.1)
|
||||||
|
rspec-html-matchers (~> 0.7.0)
|
||||||
|
rspec-rails (~> 3.3.0)
|
||||||
|
rspec-support (~> 3.3.0)
|
||||||
|
rubyzip
|
||||||
|
sanitize!
|
||||||
|
sass-rails (~> 3.0)
|
||||||
|
seed_dump (~> 0.5.3)
|
||||||
|
shareable
|
||||||
|
simple_calendar (~> 0.1.9)
|
||||||
|
sitemap_generator
|
||||||
|
sprockets (= 2.2.2)
|
||||||
|
sqlite3
|
||||||
|
sunspot_rails
|
||||||
|
sunspot_solr
|
||||||
|
sunspot_test
|
||||||
|
themes_for_rails
|
||||||
|
therubyracer
|
||||||
|
tinymce-rails (~> 4.1.0)
|
||||||
|
uglifier (>= 1.0.3)
|
||||||
|
unicorn (~> 4.8.0)
|
||||||
|
webrick (= 1.3.1)
|
||||||
|
whenever
|
||||||
|
yaml_db
|
||||||
|
|
||||||
|
BUNDLED WITH
|
||||||
|
1.16.1
|
||||||
25
README
Normal file
25
README
Normal 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
|
||||||
134
app/assets/stylesheets/infoscreenframe.css
Normal file
134
app/assets/stylesheets/infoscreenframe.css
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
html {
|
||||||
|
background-color: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: wrap;
|
||||||
|
height: 100vh;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
height: 200px;
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
padding-top: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.impulsPath {
|
||||||
|
fill: none;
|
||||||
|
stroke: #04669c;
|
||||||
|
stroke-miterlimit: 1;
|
||||||
|
stroke-width: 6px;
|
||||||
|
stroke-dasharray: 1946.243;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
stroke-linecap: round;
|
||||||
|
animation: dash 10s ease-out infinite;
|
||||||
|
animation-direction: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.FET-logotext-stroke {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#FET-logotext {
|
||||||
|
opacity: 0;
|
||||||
|
animation: logotext 10s ease-in infinite;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.content-area {
|
||||||
|
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
width: 100%;
|
||||||
|
height: 150px;
|
||||||
|
background-color: #04669c;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
color: #fff;
|
||||||
|
flex-basis: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h3,
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-family: Helvetica, Arial;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h3 {
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .adress {
|
||||||
|
margin: auto;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .contact {
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer{
|
||||||
|
display: inline-flex;
|
||||||
|
margin: auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
.footer .servicecontainer .servicetime {
|
||||||
|
margin: auto;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer .servicetime #time {
|
||||||
|
font-size: 0.7em
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer .servicestatus{
|
||||||
|
margin: auto;
|
||||||
|
width:20px;
|
||||||
|
height: 100vh; /* height: 100%;*/
|
||||||
|
padding-right: 30px;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*K E Y F R A M E S*/
|
||||||
|
|
||||||
|
@keyframes dash {
|
||||||
|
from {
|
||||||
|
stroke-dashoffset: 1946.243;
|
||||||
|
opacity: 0;
|
||||||
|
stroke-width: 0.5;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
stroke-width: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes logotext {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,11 +9,9 @@
|
|||||||
if params[:locale]
|
if params[:locale]
|
||||||
if I18n.available_locales.include?(params[:locale].to_sym)
|
if I18n.available_locales.include?(params[:locale].to_sym)
|
||||||
session[:locale] = params[:locale]
|
session[:locale] = params[:locale]
|
||||||
|
|
||||||
else
|
else
|
||||||
flash.now[:notice]= "#{params[:locale]} translation not available"
|
flash.now[:notice]= "#{params[:locale]} translation not available"
|
||||||
logger.error flash.now[:notice]
|
logger.error flash.now[:notice]
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
http_header=request.env['HTTP_ACCEPT_LANGUAGE']
|
http_header=request.env['HTTP_ACCEPT_LANGUAGE']
|
||||||
@@ -22,8 +20,8 @@
|
|||||||
else
|
else
|
||||||
ht=nil
|
ht=nil
|
||||||
end
|
end
|
||||||
I18n.locale = session[:locale] || ht || I18n.default_locale
|
I18n.locale = session[:locale] || I18n.default_locale
|
||||||
|
# removed ht from selection add || ht to check http header
|
||||||
|
|
||||||
session[:locale] = I18n.locale
|
session[:locale] = I18n.locale
|
||||||
end
|
end
|
||||||
@@ -62,7 +60,7 @@ u=current_user
|
|||||||
if ! u.try(:preferredtheme).nil? and ThemesForRails.available_theme_names.include?(u.preferredtheme)
|
if ! u.try(:preferredtheme).nil? and ThemesForRails.available_theme_names.include?(u.preferredtheme)
|
||||||
u.preferredtheme
|
u.preferredtheme
|
||||||
else
|
else
|
||||||
"blue1"
|
"blue2"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class RubrikenController < ApplicationController
|
|||||||
@rubriken= Rubrik.accessible_by(current_ability, :show)
|
@rubriken= Rubrik.accessible_by(current_ability, :show)
|
||||||
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :list).page(params[:page]).per(3)
|
@neuigkeiten = Neuigkeit.accessible_by(current_ability, :list).page(params[:page]).per(3)
|
||||||
|
|
||||||
@calentries= (@rubriken.map {|r| r.calendar.calentries.of_month(Date.new(params[:year],params[:month],1))}).flatten.select {|c| c.object !=nil}
|
@calentries= (@rubriken.map {|r| r.calendar.calentries.of_month(Date.new(params[:year].to_i,params[:month].to_i,1))}).flatten.select {|c| c.object !=nil}
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js {render action: :show}
|
format.js {render action: :show}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class Document < ActiveRecord::Base
|
|||||||
"document_"+self.id.to_s
|
"document_"+self.id.to_s
|
||||||
end
|
end
|
||||||
def self.ether
|
def self.ether
|
||||||
EtherpadLite.connect('http://www.fet.at/etherpad', File.new('/srv/etherpad/etherpad-lite/APIKEY.txt'))
|
EtherpadLite.connect('https://www.fet.at/etherpad', File.new('config/etherpad/APIKEY.txt'))#https://www.etherpad.fet.at
|
||||||
end
|
end
|
||||||
def create_pdf
|
def create_pdf
|
||||||
require "open3"
|
require "open3"
|
||||||
@@ -71,12 +71,21 @@ class Document < ActiveRecord::Base
|
|||||||
def move_to_etherpad
|
def move_to_etherpad
|
||||||
unless self.is_etherpad? || self.id.nil?
|
unless self.is_etherpad? || self.id.nil?
|
||||||
self.etherpadkey="document_"+ self.id.to_s
|
self.etherpadkey="document_"+ self.id.to_s
|
||||||
|
|
||||||
|
if self.text.nil?
|
||||||
|
self.ep_pad.html = '<div>'+"text"+'</div>'
|
||||||
|
else
|
||||||
self.ep_pad.html = '<div>'+self.text+'</div>'
|
self.ep_pad.html = '<div>'+self.text+'</div>'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
def dump_to_etherpad
|
def dump_to_etherpad
|
||||||
if self.is_etherpad?
|
if self.is_etherpad?
|
||||||
|
if self.text.nil?
|
||||||
|
self.ep_pad.html = '<div>'+"text"+'</div>'
|
||||||
|
else
|
||||||
self.ep_pad.html = '<div>'+self.text+'</div>'
|
self.ep_pad.html = '<div>'+self.text+'</div>'
|
||||||
|
end
|
||||||
else
|
else
|
||||||
self.move_to_etherpad
|
self.move_to_etherpad
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class Gremium < ActiveRecord::Base
|
|||||||
# has_many :members, through: :memberships
|
# has_many :members, through: :memberships
|
||||||
searchable do
|
searchable do
|
||||||
text :desc
|
text :desc
|
||||||
text :name, :boost=>4.0
|
text :name
|
||||||
end
|
end
|
||||||
|
|
||||||
belongs_to :thema # Gehört zu einem Thema
|
belongs_to :thema # Gehört zu einem Thema
|
||||||
|
|||||||
@@ -135,6 +135,16 @@ class Neuigkeit < ActiveRecord::Base
|
|||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
def text_infoscreen_words
|
||||||
|
md = /<p>(?<text>[^\<\>]*)/.match Sanitize.clean(self.text,:elements=>['p'])
|
||||||
|
words=md[:text].split(" ") unless md.nil?
|
||||||
|
if words.nil? || words.empty?
|
||||||
|
"...."
|
||||||
|
else
|
||||||
|
words[0..1000].join(" ")+ " ..." unless words.nil?
|
||||||
|
|
||||||
|
end
|
||||||
|
end
|
||||||
def has_calentries?
|
def has_calentries?
|
||||||
!self.calentries.nil? && !self.calentries.empty?
|
!self.calentries.nil? && !self.calentries.empty?
|
||||||
end
|
end
|
||||||
@@ -186,6 +196,6 @@ class Neuigkeit < ActiveRecord::Base
|
|||||||
searchable do
|
searchable do
|
||||||
text :text
|
text :text
|
||||||
text :datum
|
text :datum
|
||||||
text :title, :boost=>3.0
|
text :title
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ end
|
|||||||
|
|
||||||
searchable do
|
searchable do
|
||||||
text :desc
|
text :desc
|
||||||
text :name, :boost=>4.0
|
text :name
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ class Studium < ActiveRecord::Base
|
|||||||
text :zahl
|
text :zahl
|
||||||
text :typ
|
text :typ
|
||||||
text :abkuerzung
|
text :abkuerzung
|
||||||
text :name, :boost=>3.0
|
text :name
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ class Thema < ActiveRecord::Base
|
|||||||
# make topic searchable
|
# make topic searchable
|
||||||
searchable do
|
searchable do
|
||||||
text :text
|
text :text
|
||||||
text :title, :boost=>4.0
|
text :title
|
||||||
end
|
end
|
||||||
|
|
||||||
resourcify
|
resourcify
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ end
|
|||||||
|
|
||||||
searchable do
|
searchable do
|
||||||
text :text
|
text :text
|
||||||
text :title, :boost=>4.0
|
text :title
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,31 +1,20 @@
|
|||||||
<div id="<%= beispiel.divid %>" class="contentbox">
|
<div id="<%= beispiel.divid %>" class="contentbox">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span6" >
|
<div class="span5" >
|
||||||
<b><%=link_to ffi1_icon("note20")+" " + beispiel.name + " " + I18n.l(beispiel.datum), beispiel.beispieldatei.url, title: beispiel.desc %></b>
|
<b><%=link_to ffi1_icon("note20")+" " + beispiel.name + " " + I18n.l(beispiel.datum), beispiel.beispieldatei.url, title: beispiel.desc %></b>
|
||||||
</div>
|
</div>
|
||||||
<div class="span1" >
|
<div class="span1" >
|
||||||
<%= (beispiel.beispieldatei.size/1024.0).round(2).to_s %>KiB
|
<%= (beispiel.beispieldatei.size/1024.0).round(2).to_s %>KiB
|
||||||
</div>
|
</div>
|
||||||
<div class="span5">
|
<div class="span2" >
|
||||||
|
<%= beispiel.lecturer.try(:name).to_s %>
|
||||||
<%=
|
</div>
|
||||||
if can?(:like, beispiel)
|
<div class="span4">
|
||||||
link_to ffi1_icon("like3")+" like" + "("+beispiel.get_likes.size.to_s+")", like_beispiel_path(beispiel),title: "liked by " + ((current_user.liked?(beispiel)) ? ("you and " + ((beispiel.get_likes.size - 1).to_s + " others")) : beispiel.get_likes.size.to_s), remote: true
|
<%= flag_link(beispiel, "goodquality")%>
|
||||||
else
|
<%= flag_link(beispiel, "badquality")%>
|
||||||
"liked by " + beispiel.get_likes.size.to_s
|
<%= flag_link(beispiel, "delete")%>
|
||||||
end
|
<%= like_dislike_for(beispiel) %>
|
||||||
%>
|
<%= link_to ff_icon("icon-pencil")+"edit", edit_beispiel_path(beispiel), remote: true if can? :edit, beispiel %>
|
||||||
|
|
||||||
<%=
|
|
||||||
if can?(:dislike, beispiel)
|
|
||||||
link_to ffi1_icon("dislike")+" dislike" + "("+beispiel.get_dislikes.size.to_s+")", dislike_beispiel_path(beispiel),title:"disliked by " + ((current_user.disliked?(beispiel)) ? ("you and " + ((beispiel.get_dislikes.size - 1).to_s + " others")) : beispiel.get_dislikes.size.to_s) , remote: true
|
|
||||||
else
|
|
||||||
"disliked by " + beispiel.get_dislikes.size.to_s
|
|
||||||
end
|
|
||||||
|
|
||||||
%>
|
|
||||||
|
|
||||||
<%= link_to ff_icon("icon-pencil")+"edit", edit_beispiel_path(beispiel) if can? :edit, beispiel%>
|
|
||||||
<%= link_to fa_icon("trash")+"delete", beispiel_path(beispiel), :method=>:delete, :data=>{:confirm=>I18n.t('beispiel.sure')} if can? :delete, beispiel %>
|
<%= link_to fa_icon("trash")+"delete", beispiel_path(beispiel), :method=>:delete, :data=>{:confirm=>I18n.t('beispiel.sure')} if can? :delete, beispiel %>
|
||||||
<% link_to "Refresh", beispiel_path(beispiel,show_comments: true), remote: true %></br>
|
<% link_to "Refresh", beispiel_path(beispiel,show_comments: true), remote: true %></br>
|
||||||
</div>
|
</div>
|
||||||
@@ -39,4 +28,5 @@
|
|||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<%= render_comments_for(beispiel) %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f| %>
|
||||||
<div><%= f.label :email %><br />
|
<div><%= f.label :email %><br />
|
||||||
<%= f.email_field :email, :autofocus => true %></div>
|
<%= f.email_field :email, :autofocus => true %></div>
|
||||||
@@ -23,4 +24,6 @@
|
|||||||
<div><%= f.submit "Sign in" %></div>
|
<div><%= f.submit "Sign in" %></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%= render "devise/shared/links" %>
|
<%= render "devise/shared/links" %>
|
||||||
|
|||||||
@@ -22,7 +22,9 @@
|
|||||||
<ul class='breadcrumb hidden-print'>
|
<ul class='breadcrumb hidden-print'>
|
||||||
<% @document.versions.each do |v| %>
|
<% @document.versions.each do |v| %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to User.find(v.whodunnit).name+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) unless v.whodunnit.nil? %>
|
|
||||||
|
<%= link_to User.find(v.whodunnit).try(:name)+": "+ v.event + " (" + I18n.l(v.created_at)+ ") ", write_document_path(@document,:versionid=>v.id) if User.exists?(v.whodunnit) unless v.whodunnit.nil? %>
|
||||||
|
|
||||||
<% end %> <span class="divider">/</span></li>
|
<% end %> <span class="divider">/</span></li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
<%= link_to "weiter" , "http://www.fet.at/etherpad/p/"+@document.ep_pad.id , target: :blank %>
|
<%= link_to "weiter" , "https://www.fet.at/etherpad/p/"+@document.ep_pad.id , target: :blank %>
|
||||||
|
|||||||
@@ -65,5 +65,13 @@ end
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= render 'layouts/pretty_toolbar' %>
|
<% if can?(:edit, @fetprofile) %>
|
||||||
|
<div>
|
||||||
|
<span>
|
||||||
|
<%= link_to ff_icon("icon-pencil")+I18n.t('common.edit'), edit_fetprofile_path(@fetprofile) if can?(:edit, @fetprofile) %>
|
||||||
|
<%= link_to fa_icon("trash")+I18n.t('common.delete'), fetprofile_path(@fetprofile),method: :delete, data: { confirm: "Are you sure?" } if can?(:delete, @fetprofile) %>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
<%#= render 'layouts/pretty_toolbar' %>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,10 +8,9 @@ top: 0" %>
|
|||||||
<% #, gallery_foto_path(@foto.gallery, ((@foto.gallery.fotos[@foto.gallery.fotos.index(@foto)+1].nil?) ? (@foto.gallery.fotos[0].try(:id).to_i) : @foto.gallery.fotos[@foto.gallery.fotos.index(@foto)+1].try(:id).to_i) ) %>
|
<% #, gallery_foto_path(@foto.gallery, ((@foto.gallery.fotos[@foto.gallery.fotos.index(@foto)+1].nil?) ? (@foto.gallery.fotos[0].try(:id).to_i) : @foto.gallery.fotos[@foto.gallery.fotos.index(@foto)+1].try(:id).to_i) ) %>
|
||||||
<div style="position:absolute; bottom:0; ">
|
<div style="position:absolute; bottom:0; ">
|
||||||
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, @foto.datei.url,
|
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, @foto.datei.url,
|
||||||
:class=>"btn",title: I18n.t('fotos.download')+': '+@foto.title,:target=>:blank, :style=>"" %>
|
:class=>"btn",title: I18n.t('fotos.download')+': '+@foto.title.to_s,:target=>:blank, :style=>"" %>
|
||||||
<!-- <div class="fb-like" data-href"<%= gallery_foto_path(@foto.gallery,@foto, {fotoid:@foto.id,theme: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>-->
|
<!-- <div class="fb-like" data-href"<%= gallery_foto_path(@foto.gallery,@foto, {fotoid:@foto.id,theme: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>-->
|
||||||
<%= render_shareable :url=>gallery_foto_url(@foto.gallery,@foto, {theme: nil, locale: nil}),:static_link=>true, :buttons=>[:facebook, :twitter, :google_plus] %>
|
<%= render_shareable :url=>gallery_foto_url(@foto.gallery,@foto, {theme: nil, locale: nil}),:static_link=>true, :buttons=>[:facebook, :twitter, :google_plus] %>
|
||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -145,9 +145,12 @@ end
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, f.datei.url,
|
<%= link_to ff_icon('icon-circle-arrow-down').html_safe, f.datei.url,
|
||||||
:class=>"btn-small",title: I18n.t('fotos.download')+': '+f.title, rel: 'tooltip' %>
|
:class=>"btn-small",title: I18n.t('fotos.download').to_s+': '+f.title.to_s, rel: 'tooltip' %>
|
||||||
<%= link_to ff_icon('icon-remove-circle').html_safe, gallery_foto_path(@gallery, f),
|
<%= link_to ff_icon('icon-remove-circle').html_safe, gallery_foto_path(@gallery, f),
|
||||||
:method => :delete, :class=>"btn-small btn-danger",title: I18n.t('fotos.delete')+': '+f.title, rel: 'tooltip', confirm: I18n.t('fotos.delete')+': '+f.title+', Sicher?' if can?(:delete,f) %>
|
:method => :delete, :class=>"btn-small btn-danger",
|
||||||
|
title: I18n.t('fotos.delete').to_s+': '+f.title.to_s, rel: 'tooltip',
|
||||||
|
confirm: I18n.t('fotos.delete').to_s+': '+f.title.to_s+',
|
||||||
|
Sicher?' if can?(:delete,f) %>
|
||||||
<p></p>
|
<p></p>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -221,5 +224,3 @@ end
|
|||||||
* html .fb-like{display:inline}/* ie6 inline block fix*/
|
* html .fb-like{display:inline}/* ie6 inline block fix*/
|
||||||
*+html .fb-like{display:inline}/* ie7 inline block fix*/
|
*+html .fb-like{display:inline}/* ie7 inline block fix*/
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,12 +7,14 @@
|
|||||||
fjs.parentNode.insertBefore(js, fjs);
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
}(document, 'script', 'facebook-jssdk'));</script>
|
}(document, 'script', 'facebook-jssdk'));</script>
|
||||||
|
|
||||||
<div class="content-wrap content-column" style="max-width:100em;">
|
<div class="content-wrap content-column" style="max-width:90em;">
|
||||||
<h1><%= I18n.t('home.willkommen') %></h1>
|
<h1><%= I18n.t('home.willkommen') %></h1>
|
||||||
<%= render partial: "themen/small", object: @starttopic %>
|
<%= raw(@starttopic.text) unless @starttopic.nil? %>
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span5">
|
<div class="span4">
|
||||||
|
|
||||||
<ul class="linklist">
|
<ul class="linklist">
|
||||||
<li>
|
<li>
|
||||||
@@ -21,41 +23,43 @@
|
|||||||
<li>
|
<li>
|
||||||
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) ,class: :linkbox %>
|
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) ,class: :linkbox %>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
|
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
|
||||||
</li>
|
</li>
|
||||||
<li><%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %></li>
|
<li><%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox if Studium.count > 0 %></li>
|
||||||
<li><%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %></li>
|
<li><%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %></li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul>
|
|
||||||
|
<% cache("stickytopics_startpage_"+cache_array_key(@stickythemen)) do %>
|
||||||
|
<ul class="linklist">
|
||||||
<% @stickythemen.each do |t1| %>
|
<% @stickythemen.each do |t1| %>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to t1 do %>
|
<%= link_to t1,:class=>:linkbox do %>
|
||||||
<%= render partial: "themen/nlink", object: t %>
|
<%= render partial: "themen/nlink", object: t1 %>
|
||||||
<%= end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
<% end %>
|
||||||
<%= render 'beispiele' %>
|
<%= render 'beispiele' %>
|
||||||
<div class="fb-like-box" data-href="https://www.facebook.com/FachschaftET" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span7">
|
|
||||||
<ul class="unstyled linkbox-list" style="margin:5px;">
|
<div class="span5">
|
||||||
|
<ul class="unstyled linkbox-list">
|
||||||
<% @neuigkeiten.each do |n| %>
|
<% @neuigkeiten.each do |n| %>
|
||||||
<li><%= render n if can?(:show, n) %> </li>
|
<li><%= render n if can?(:show, n) %> </li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
Verschiedene Styles
|
</div>
|
||||||
<ul>
|
|
||||||
<li> <%= link_to "Darkblue", home_index_path({:theme=>"darkblue"}) %></li>
|
|
||||||
<li> <%= link_to "Blue1", home_index_path({:theme=>"blue1"}) %></li>
|
|
||||||
|
|
||||||
<li> <%= link_to "2003", home_index_path({:theme=>"2003"}) %></li>
|
<div class="span3">
|
||||||
<li> <%= link_to "white_1", home_index_path({:theme=>"white_1"}) %></li>
|
<% cache("calendar_" + cache_array_key(@calentries)+params[:month].to_s+params[:year].to_s) do %>
|
||||||
</ul>
|
<%= render 'calendars/calentries', :object=>@calentries %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="fb-like-box" data-href="https://www.facebook.com/FachschaftET" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,24 +3,25 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
|
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
|
||||||
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
|
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
|
||||||
|
<%= stylesheet_link_tag "/iframe/infoscreenframe.css" %>
|
||||||
|
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
<%= javascript_include_tag "jmpress" %>
|
<%= javascript_include_tag "jmpress" %>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
<%= content_tag(:iframe,'', width: "100%", height: "100%", name: "targetframe", allowTransparency:"true", scrolling:"no", frameborder:"0", src: "/iframe/infoscreenframe.html") %> <%#header picture/animation %>
|
||||||
<div id ="jmpress">
|
<div id ="jmpress">
|
||||||
<% i=1 %>
|
<% i=1 %>
|
||||||
<% @neuigkeiten.each do |n| %>
|
<% @neuigkeiten.each do |n| %>
|
||||||
|
|
||||||
<div class="step contentbox" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" data-rotate="<%= Random.rand(0..18)*10 %>" style="width:1000px; height:500px; padding: 50px; display:block" data-duration="10000"><% @toolbar_elements=[];@questions=[] %>
|
<div class="step" id="step-<%=i%>" data-x="<%= i *2000 %>" data-y="<%= Random.rand(0..5)*200 %>" style="position:absolute; height:540px; width:1230px; display: block;" data-duration="10000">
|
||||||
<div class="media" style="width: 660px; height:340px; transform: scale(1.5) translate(120px,50px)" >
|
<div class="media" style="width:'95%'; height:480px;" >
|
||||||
|
<div class="pull-left" href="#" style="max-width:250px;">
|
||||||
<div class="pull-left" href="#" style="max-width:200px;">
|
|
||||||
<% unless n.picture_robust.big_thumb.to_s.empty? %>
|
<% unless n.picture_robust.big_thumb.to_s.empty? %>
|
||||||
<p>
|
<p>
|
||||||
<br><%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %>
|
<br><%= link_to image_tag(n.picture_robust.big_thumb),n.picture_robust.try(:url) %></p>
|
||||||
</p>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<h3>
|
<h3>
|
||||||
<% if n.has_calentries? %>
|
<% if n.has_calentries? %>
|
||||||
@@ -43,32 +44,48 @@
|
|||||||
<%= raw(n.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(n.rubrik, n), remote: true if can? :edit, n %>
|
<%= raw(n.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(n.rubrik, n), remote: true if can? :edit, n %>
|
||||||
</h1>
|
</h1>
|
||||||
<div itemprop="articleBody" style="font-size:large">
|
<div itemprop="articleBody" style="font-size:large">
|
||||||
<%= raw(n.text_first_words) %>
|
<%= raw(n.text_infoscreen_words) %>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<% i = i+1 %>
|
<% i = i+1 %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="ui-progressbar ui-widget ui-widget-content ui-corner-all" style="height:10px; z-index: 2000; left: 5px; right: 5px; bottom: 5px; height: 10px; position:absolute">
|
<script>
|
||||||
<div id="" class="ui-progressbar-value ui-widget-header ui-corner-left" style=""></div>
|
var d = new Date();
|
||||||
</div>
|
var n = d.getDay();
|
||||||
|
var now = d.getHours() + "." + d.getMinutes();
|
||||||
|
var weekdays = [
|
||||||
|
["Sunday"],
|
||||||
|
["Monday", 9.00, 14.00],
|
||||||
|
["Tuesday", 9.00, 14.00],
|
||||||
|
["Wednesday", 9.00, 14.00],
|
||||||
|
["Thursday", 9.00, 14.00],
|
||||||
|
["Friday", 9.00, 12.00],
|
||||||
|
["Saturday"] // we are closed, sorry!
|
||||||
|
];
|
||||||
|
var day = weekdays[n];
|
||||||
|
if (now > day[1] && now < day[2]) {
|
||||||
|
document.write("<div id='footer' style='background: green; height:25px; width:50px; margin:10px; position:absolute'>");
|
||||||
|
document.write("OPEN");
|
||||||
|
document.write("</div>");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
document.write("<div id='footer' style='background: red; height:25px; width:60px; margin:10px; position:absolute'>");
|
||||||
|
document.write("CLOSED");
|
||||||
|
document.write("</div>");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function () {
|
$(function () {
|
||||||
$('#jmpress').jmpress({
|
$('#jmpress').jmpress({
|
||||||
duration: {
|
|
||||||
barPropertyStart: '0',
|
|
||||||
barSelector: '.ui-progressbar-value'
|
|
||||||
},
|
|
||||||
initStep: function(element, eventData) {
|
initStep: function(element, eventData) {
|
||||||
console.log('We\'re changing to step: #' + $(element).attr('id') + '!');
|
console.log('We\'re changing to step: #' + $(element).attr('id') + '!');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,15 +1,41 @@
|
|||||||
<h1> FET Intern NEU </h1>
|
<h1> FET Intern NEU blue2</h1>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
|
<div>
|
||||||
<ul class="linklist">
|
<ul class="linklist">
|
||||||
<li>
|
<li>
|
||||||
<%= link_to "Adressliste", internlist_fetprofiles_path ,class: :linkbox %></li>
|
<%= link_to fa_icon("list")+"Adressliste", internlist_fetprofiles_path ,class: :linkbox %>
|
||||||
<li> <%= link_to "Admin" , admin_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<%= link_to ff_icon("ffi1-setting")+"Neue Oberfläche" , set_preferred_theme_user_path(current_user, params: {theme: "blue2"}), class: :linkbox if can? :set_preferred_theme , current_user %>
|
<%= link_to ff_icon("ffi1-setting")+"Admin" , admin_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||||
</li></ul>
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to ff_icon("fa fa-folder")+"Treeview" , treeview_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to ff_icon("ffi1-newspaper9")+"Crawler" , crawler_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to ff_icon("ffi1-setting")+"Meetings" , meetingtyps_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<%= link_to ff_icon("ffi1-setting")+"Alte Oberfläche" , set_preferred_theme_user_path(current_user, params: {theme: "blue1"}), class: :linkbox if can? :set_preferred_theme, current_user %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
</ul><br>
|
||||||
|
</div>
|
||||||
|
<div>Suche nach Protokollen
|
||||||
|
<%= semantic_form_for :search,:remote=>true, :url=>search_documents_path, :html=>{:id=>"search_form",:class=>"", :method=>'get'} do |f| %>
|
||||||
|
<%= f.input :query, :input_html => { :name => 'query' } , :label=>false, :class=>"search-query" %>
|
||||||
|
<% f.actions do %>
|
||||||
|
<% f.action :submit, :as => :input %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<div id="searchresults">
|
||||||
|
<%= render :partial=>"documents/search_results", :object=>@results %>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<ul class="unstyled linkbox-list">
|
<ul class="unstyled linkbox-list">
|
||||||
<li>
|
<li>
|
||||||
<% @themengruppen.each do |themengruppe| %>
|
<% @themengruppen.each do |themengruppe| %>
|
||||||
|
|||||||
@@ -1,20 +1,15 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="shortcut icon" href="<%= absurl("/logo2014_64.png")%>">
|
<link rel="shortcut icon" href="https://www.fet.at/logo2014_64.png">
|
||||||
|
|
||||||
<link rel="alternate" hreflang="de" href="<%= url_for(params.merge(:locale=>:de))%>" />
|
<link rel="alternate" hreflang="de" href="<%= url_for(params.merge(:locale=>:de))%>" />
|
||||||
|
|
||||||
<link rel="alternate" hreflang="en" href="<%= url_for(params.merge(:locale=>:en))%>" />
|
<link rel="alternate" hreflang="en" href="<%= url_for(params.merge(:locale=>:en))%>" />
|
||||||
<!--<link rel="shortcut icon" href="http://www.fet.at/favicon.ico">-->
|
|
||||||
<!---->
|
|
||||||
|
|
||||||
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
|
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
|
||||||
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
|
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
|
||||||
<% theme_stylesheet_link_tag "test", :media => "all" %>
|
|
||||||
<% theme_stylesheet_link_tag "mod", :media=>"all" %>
|
|
||||||
<%= javascript_include_tag "application" %>
|
<%= javascript_include_tag "application" %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
<% if content_for?(:header) %>
|
<% if content_for?(:header) %>
|
||||||
|
|||||||
@@ -43,9 +43,10 @@
|
|||||||
<li><%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> </li>
|
<li><%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> </li>
|
||||||
|
|
||||||
</ul></div>
|
</ul></div>
|
||||||
</li>
|
</li><li>
|
||||||
<%= render 'layouts/login' %>
|
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) %>
|
||||||
</ul>
|
<%# render 'layouts/login' %>
|
||||||
|
</li></ul>
|
||||||
|
|
||||||
<!--<span class="pull-right"><%if I18n.locale == :en %>
|
<!--<span class="pull-right"><%if I18n.locale == :en %>
|
||||||
<%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%>
|
<%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%>
|
||||||
|
|||||||
@@ -1,12 +1,10 @@
|
|||||||
<%= content_for :header do %>
|
<%= content_for :header do %>
|
||||||
<title>Fetsite - <%= @lva.full_name %></title>
|
<title>Fetsite - <%= @lva.full_name %></title>
|
||||||
<% set_meta_tags :og => {
|
<% set_meta_tags :og => {
|
||||||
:url=>lva_path(:theme=>nil)
|
:url=>lva_path(:theme=>nil) }
|
||||||
}
|
|
||||||
%>
|
%>
|
||||||
<%= display_meta_tags %>
|
<%= display_meta_tags %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<div itemscope itemtype="schema.org/Article" >
|
<div itemscope itemtype="schema.org/Article" >
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<%= render 'studien/tabs'%>
|
<%= render 'studien/tabs'%>
|
||||||
@@ -17,6 +15,7 @@
|
|||||||
<%= render 'layouts/pretty_toolbar' %>
|
<%= render 'layouts/pretty_toolbar' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span8">
|
<div class="span8">
|
||||||
<h1 itemprop="name"><%= @lva.full_name %></h1>
|
<h1 itemprop="name"><%= @lva.full_name %></h1>
|
||||||
@@ -45,6 +44,7 @@
|
|||||||
<%= @lva.desc.to_s.html_safe %>
|
<%= @lva.desc.to_s.html_safe %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<div class="contentbox">
|
<div class="contentbox">
|
||||||
@@ -59,10 +59,12 @@
|
|||||||
<li><b><%= link_to modul.name , modul_path(modul)%></b>
|
<li><b><%= link_to modul.name , modul_path(modul)%></b>
|
||||||
<ul>
|
<ul>
|
||||||
<% modul.modulgruppen.each do |g| %>
|
<% modul.modulgruppen.each do |g| %>
|
||||||
|
|
||||||
<li><%= link_to g.studium.title_context , studium_path(g.studium)%> (<%=link_to g.name, modulgruppe_path(g)%>)</li>
|
<li><%= link_to g.studium.title_context , studium_path(g.studium)%> (<%=link_to g.name, modulgruppe_path(g)%>)</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@@ -70,34 +72,68 @@
|
|||||||
<h2> <%= I18n.t "lecturers.lecturers" %> </h2>
|
<h2> <%= I18n.t "lecturers.lecturers" %> </h2>
|
||||||
<% @lva.lecturers.each do |lec| %>
|
<% @lva.lecturers.each do |lec| %>
|
||||||
<%= render :partial=>'lecturers/lec_lva', :object=>lec %>
|
<%= render :partial=>'lecturers/lec_lva', :object=>lec %>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
|
<%= new_question_for(@lva) %>
|
||||||
|
<% unless @questions.nil? %>
|
||||||
|
<% @questions.each do |q| %>
|
||||||
|
<%= render q if can? :show, q %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
|
|
||||||
<h2><%= I18n.t("lva.bspe") %></h2>
|
<h2><%= I18n.t("lva.bspe") %></h2>
|
||||||
<p><%= I18n.t("lva.ratebsp")%> <%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %>
|
<p>
|
||||||
|
<%= I18n.t("lva.ratebsp")%>
|
||||||
|
<%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %>
|
||||||
</p>
|
</p>
|
||||||
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
|
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
|
||||||
<% @beispiele_all.each do |b| %>
|
<% @beispiele.each do |b| %>
|
||||||
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s+ can?(:comment, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
||||||
<%= render b%>
|
<%= render b%>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% if @beispiele_badQ.count > 0 %>
|
||||||
|
<h3> Bad Quality or Outdated</h3>
|
||||||
|
<% @beispiele_badQ.each do |b| %>
|
||||||
|
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
||||||
|
<%= render b%>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% if @beispiele_deleted.count > 0 %>
|
||||||
|
<h3> Trash</h3>
|
||||||
|
<% @beispiele_deleted.each do |b| %>
|
||||||
|
|
||||||
|
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
||||||
|
<%= render b%>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row-fluid"> <div class="span12">
|
<div class="row-fluid">
|
||||||
|
<div class="span12">
|
||||||
|
|
||||||
<% unless @lva.nlinks.empty? %>
|
<% unless @lva.nlinks.empty? %>
|
||||||
<h2><%= I18n.t("rubrik.title") %></h2>
|
<h2><%= I18n.t("rubrik.title") %></h2>
|
||||||
<% @lva.nlinks.each do |l| %>
|
<% @lva.nlinks.each do |l| %>
|
||||||
<%= render l.neuigkeit %>
|
<%= render l.neuigkeit %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div></div>
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<% cache("lva_beispiel_form_bulk_"+@lva.id.to_s+I18n.locale.to_s+@lva.updated_at.to_i.to_s) do %>
|
<% cache("lva_beispiel_form_bulk_"+@lva.id.to_s+I18n.locale.to_s+@lva.updated_at.to_i.to_s) do %>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
@@ -106,6 +142,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% unless @crawlobjects.nil? %>
|
<% unless @crawlobjects.nil? %>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
|
|||||||
@@ -1,8 +1,21 @@
|
|||||||
|
<% if neuigkeit_view.nil?
|
||||||
|
neuigkeit_view=@neuigkeit
|
||||||
|
end
|
||||||
|
%>
|
||||||
<div id="neuigkeit_<%= neuigkeit_view.id %>" class="contentbox" itemscope itemtype="http://schema.org/Article">
|
<div id="neuigkeit_<%= neuigkeit_view.id %>" class="contentbox" itemscope itemtype="http://schema.org/Article">
|
||||||
<meta itemprop="about" content="<%= neuigkeit_view.text_first_words %>"/>
|
<%= meta_itemprop("about", neuigkeit_view.text_first_words) %>
|
||||||
<meta itemprop="sameAs" content="<%= neuigkeit_url(neuigkeit_view,:theme=>nil)%>"/>
|
<%= meta_itemprop("sameAs", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
||||||
<meta itemprop="url" content="<%= neuigkeit_url(neuigkeit_view,:theme=>nil)%>"/>
|
<%= meta_itemprop("url", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<% cache("menu_neuigkeit"+ neuigkeit_view.id.to_s + can?(:edit,neuigkeit_view).to_s + can?(:find_link, neuigkeit_view).to_s + can?(:new, Survey::Question).to_s + can?(:publish, neuigkeit_view).to_s + can?(:unpublish, neuigkeit_view).to_s + neuigkeit_view.published?.to_s + neuigkeit_view.flag_important.to_s + neuigkeit_view.flag_infoscreen.to_s) do %>
|
||||||
|
<%= render partial: "menu" , object: neuigkeit_view%>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<%#= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
||||||
|
</div>
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<span itemprop="articleSection">
|
<span itemprop="articleSection">
|
||||||
<%= ff_icon(neuigkeit_view.rubrik.icon) unless neuigkeit_view.rubrik.icon.nil? or neuigkeit_view.rubrik.icon.empty? %> <%= neuigkeit_view.rubrik.name %>
|
<%= ff_icon(neuigkeit_view.rubrik.icon) unless neuigkeit_view.rubrik.icon.nil? or neuigkeit_view.rubrik.icon.empty? %> <%= neuigkeit_view.rubrik.name %>
|
||||||
@@ -15,6 +28,7 @@
|
|||||||
</span>
|
</span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% unless neuigkeit_view.published? %>
|
<% unless neuigkeit_view.published? %>
|
||||||
<div class="sticker sticker-red"> Not Published <%= link_to "Publish", publish_rubrik_neuigkeit_path(neuigkeit_view.rubrik,neuigkeit_view),remote:true, class: :btn if can? :publish, neuigkeit_view %></div>
|
<div class="sticker sticker-red"> Not Published <%= link_to "Publish", publish_rubrik_neuigkeit_path(neuigkeit_view.rubrik,neuigkeit_view),remote:true, class: :btn if can? :publish, neuigkeit_view %></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -31,7 +45,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h1 itemprop="name">
|
<h1 itemprop="name">
|
||||||
<%= raw(neuigkeit_view.title) %> <%= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(neuigkeit_view.rubrik, neuigkeit_view), remote: true if can? :edit, neuigkeit_view %>
|
<%= raw(neuigkeit_view.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(neuigkeit_view.rubrik, neuigkeit_view), remote: true if can? :edit, neuigkeit_view %>
|
||||||
</h1>
|
</h1>
|
||||||
<div itemprop="articleBody">
|
<div itemprop="articleBody">
|
||||||
<%= raw(neuigkeit_view.text) %>
|
<%= raw(neuigkeit_view.text) %>
|
||||||
@@ -40,14 +54,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= render_calentries_for(neuigkeit_view)%>
|
<%= render_calentries_for(neuigkeit_view)%>
|
||||||
|
<%= new_calentry_div(neuigkeit_view) %>
|
||||||
<% unless neuigkeit_view.meeting.nil? %>
|
<% unless neuigkeit_view.meeting.nil? %>
|
||||||
<%= render neuigkeit_view.meeting %>
|
<%= render neuigkeit_view.meeting %>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%= render_attachments_for(neuigkeit_view) %>
|
<%= render_attachments_list_for(neuigkeit_view) %>
|
||||||
|
|
||||||
<%= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<% @questions.each do |q| %>
|
||||||
|
<%= render q if can? :show, q %>
|
||||||
|
<% end %>
|
||||||
|
|||||||
@@ -38,17 +38,13 @@
|
|||||||
</p>
|
</p>
|
||||||
<%= render partial: "neuigkeit_view", object: @neuigkeit %>
|
<%= render partial: "neuigkeit_view", object: @neuigkeit %>
|
||||||
|
|
||||||
<%= new_question_for(@neuigkeit) if can? :new, Survey::Question %>
|
|
||||||
<% @questions.each do |q| %>
|
|
||||||
<%= render q if can? :show, q %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="fb-like" data-href"<%= rubrik_neuigkeit_url(@rubrik,@neuigkeit,{themes: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
|
<div class="fb-like" data-href"<%= rubrik_neuigkeit_url(@rubrik,@neuigkeit,{themes: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
|
||||||
|
|
||||||
|
<%= render_comments_for(@neuigkeit) %>
|
||||||
|
|
||||||
|
<%# link_to fa_icon("link") + "Neue Verknüpfung" , "#", id: "findlink-open" if can? :find_link, @neuigkeit %>
|
||||||
|
|
||||||
<%= link_to fa_icon("link") + "Neue Verknüpfung" , "#", id: "findlink-open" if can? :find_link, @neuigkeit %>
|
|
||||||
<% cache(cache_array_key(@neuigkeit.nlinks, "NLinks")) do %>
|
<% cache(cache_array_key(@neuigkeit.nlinks, "NLinks")) do %>
|
||||||
<%= render partial: 'neuigkeiten/nlink_list_whole', :object=>@neuigkeit.nlinks %>
|
<%= render partial: 'neuigkeiten/nlink_list_whole', :object=>@neuigkeit.nlinks %>
|
||||||
<% end %>
|
<% end %>
|
||||||
@@ -62,6 +58,7 @@
|
|||||||
<%= render partial: 'nlink_list_search_whole', object: @nlink_search %>
|
<%= render partial: 'nlink_list_search_whole', object: @nlink_search %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
$(function(){
|
$(function(){
|
||||||
dialog = $( "#findlink-body" ).dialog({
|
dialog = $( "#findlink-body" ).dialog({
|
||||||
|
|||||||
@@ -33,16 +33,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
<% unless @calentries.nil? or @calentries.empty? or true%>
|
||||||
<div class="span3">
|
<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 %>
|
<% 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 %>
|
<%= render 'calendars/calentries', :object=>@calentries %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
<% end %>
|
||||||
<% if !current_user.nil? and current_user.has_role?(:fetuser) %>
|
<% 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)%>
|
<%= 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 %>
|
<% end %>
|
||||||
</div>
|
</div><% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
<div class="content-wrap content-column" style="max-width:90em;">
|
<div class="content-wrap content-column" style="max-width:90em;">
|
||||||
<h1><%= I18n.t('home.willkommen') %></h1>
|
<h1><%= I18n.t('home.willkommen') %></h1>
|
||||||
<%= raw(@starttopic.text) %>
|
<%= raw(@starttopic.text) unless @starttopic.nil? %>
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
|
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
|
||||||
</li>
|
</li>
|
||||||
<li><%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %></li>
|
<li><%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox if Studium.count >0 %></li>
|
||||||
<li><%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %></li>
|
<li><%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
<div id="<%= beispiel.divid %>" class="contentbox">
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span5" >
|
|
||||||
<b><%=link_to ffi1_icon("note20")+" " + beispiel.name + " " + I18n.l(beispiel.datum), beispiel.beispieldatei.url, title: beispiel.desc %></b>
|
|
||||||
</div>
|
|
||||||
<div class="span1" >
|
|
||||||
<%= (beispiel.beispieldatei.size/1024.0).round(2).to_s %>KiB
|
|
||||||
</div>
|
|
||||||
<div class="span2" >
|
|
||||||
<%= beispiel.lecturer.try(:name).to_s %>
|
|
||||||
</div>
|
|
||||||
<div class="span4">
|
|
||||||
<%= flag_link(beispiel, "goodquality")%>
|
|
||||||
<%= flag_link(beispiel, "badquality")%>
|
|
||||||
<%= flag_link(beispiel, "delete")%>
|
|
||||||
<%= like_dislike_for(beispiel) %>
|
|
||||||
<%= link_to ff_icon("icon-pencil")+"edit", edit_beispiel_path(beispiel), remote: true if can? :edit, beispiel %>
|
|
||||||
<%= link_to fa_icon("trash")+"delete", beispiel_path(beispiel), :method=>:delete, :data=>{:confirm=>I18n.t('beispiel.sure')} if can? :delete, beispiel %>
|
|
||||||
<% link_to "Refresh", beispiel_path(beispiel,show_comments: true), remote: true %></br>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% unless beispiel.desc.nil? || beispiel.desc.empty? %>
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
|
|
||||||
<%= beispiel.desc %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render_comments_for(beispiel) %>
|
|
||||||
</div>
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
<%= content_for :header do %>
|
|
||||||
<title>FET - <%= @fetprofile.name %></title>
|
|
||||||
<% unless @fetprofile.picture.url.nil?
|
|
||||||
picture_url=URI(root_url)
|
|
||||||
picture_url.path=@fetprofile.picture.portrait.url
|
|
||||||
end
|
|
||||||
%>
|
|
||||||
|
|
||||||
<% set_meta_tags :og => {
|
|
||||||
:image => picture_url.to_s,
|
|
||||||
:title => @fetprofile.name.to_s ,
|
|
||||||
:type => "profile",
|
|
||||||
:url=>fetprofile_url(@fetprofile,:theme=>nil),
|
|
||||||
:profile=> {
|
|
||||||
:first_name=>@fetprofile.vorname,
|
|
||||||
:last_name=>@fetprofile.nachname
|
|
||||||
}
|
|
||||||
}
|
|
||||||
%>
|
|
||||||
<% set_meta_tags :og=>{:article=> {:published_time=>I18n.l(@neuigkeit.try(:datum).try(:to_date)) }} unless @neuigkeit.try(:datum).try(:to_date).nil? %>
|
|
||||||
|
|
||||||
<%= display_meta_tags %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
|
|
||||||
<%= render 'fetprofiles/tabs' %>
|
|
||||||
|
|
||||||
<div class="content-wrap content-column">
|
|
||||||
|
|
||||||
<p id="notice"><%= notice %></p>
|
|
||||||
<div style="max-width:70em" itemtype="http://schema.org/Person" itemscope>
|
|
||||||
<meta itemprop="sameAs" content="<%= fetprofile_path(@fetprofile, theme: nil) %>"/>
|
|
||||||
<meta itemprop="url" content="<%= fetprofile_path(@fetprofile, theme: nil) %>"/>
|
|
||||||
<div class="media">
|
|
||||||
<span class="pull-left" itemprop="image" itemscope itemtype="http://schema.org/ImageObject">
|
|
||||||
<span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject">
|
|
||||||
<%= image_tag @fetprofile.picture.portrait.url %>
|
|
||||||
<meta itemprop="url" content="<%= @fetprofile.picture.portrait.url%>" />
|
|
||||||
</span>
|
|
||||||
<meta itemprop="url" content="<%= @fetprofile.picture.url%>" />
|
|
||||||
<meta itemprop="representativeOfPage" content="true" />
|
|
||||||
</span>
|
|
||||||
<div class="media-body">
|
|
||||||
<h2><span itemprop="givenName"><%= @fetprofile.vorname %></span><span itemprop="familyName"> <%= @fetprofile.nachname %></span><% unless @fetprofile.short.empty? %><span itemprop=""> <%= @fetprofile.short %> </span><% end %></h2>
|
|
||||||
<meta itemprop="name" content="<%= @fetprofile.name %>" />
|
|
||||||
|
|
||||||
<p itemprop="email">
|
|
||||||
<%= @fetprofile.fetmail %>
|
|
||||||
</p>
|
|
||||||
<p itemprop="description">
|
|
||||||
<%= @fetprofile.desc %>
|
|
||||||
</p>
|
|
||||||
<%= render partial: "interninfo", object: @fetprofile if can?(:seeintern, @fetprofile) %>
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
<% @memberships.each do |m| %>
|
|
||||||
<li>
|
|
||||||
<%= link_to gremium_path(m.gremium) do %> <%= render m %><% end %>
|
|
||||||
<%= link_to I18n.t('common.edit'), edit_fetprofile_membership_path(@fetprofile,m) if params["verwalten"] && can?(:edit, m)%>
|
|
||||||
<%= link_to I18n.t('common.delete'), [@fetprofile, m], method: :delete, data: {confirm: I18n.t('common.sure_del')} if params["verwalten"] && can?(:delete, m ) %>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% if can?(:edit, @fetprofile) %>
|
|
||||||
<div>
|
|
||||||
<span>
|
|
||||||
<%= link_to ff_icon("icon-pencil")+I18n.t('common.edit'), edit_fetprofile_path(@fetprofile) if can?(:edit, @fetprofile) %>
|
|
||||||
<%= link_to fa_icon("trash")+I18n.t('common.delete'), fetprofile_path(@fetprofile),method: :delete, data: { confirm: "Are you sure?" } if can?(:delete, @fetprofile) %>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<%#= render 'layouts/pretty_toolbar' %>
|
|
||||||
</div>
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
<div id="fb-root"></div>
|
|
||||||
<script>(function(d, s, id) {
|
|
||||||
var js, fjs = d.getElementsByTagName(s)[0];
|
|
||||||
if (d.getElementById(id)) return;
|
|
||||||
js = d.createElement(s); js.id = id;
|
|
||||||
js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&appId=120379864660921&version=v2.0";
|
|
||||||
fjs.parentNode.insertBefore(js, fjs);
|
|
||||||
}(document, 'script', 'facebook-jssdk'));</script>
|
|
||||||
|
|
||||||
<div class="content-wrap content-column" style="max-width:90em;">
|
|
||||||
<h1><%= I18n.t('home.willkommen') %></h1>
|
|
||||||
<%= raw(@starttopic.text) %>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span4">
|
|
||||||
|
|
||||||
<ul class="linklist">
|
|
||||||
<li>
|
|
||||||
<%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ffi1_icon("academic") + I18n.t('home.login'), user_omniauth_authorize_path(:ldap) ,class: :linkbox %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ffi1_icon("quiz")+ I18n.t("themengruppe.faqs"), faqs_themengruppen_path,class: :linkbox %>
|
|
||||||
</li>
|
|
||||||
<li><%= link_to ffi1_icon("books19")+"Beispielsammlung", studium_path(Studium.first, {:ansicht=>'semesteransicht'}) ,class: :btn ,class: :linkbox %></li>
|
|
||||||
<li><%= link_to "Alte Beispielsammlung", "http://www.fet.at/alt/bin/view/Beispielsammlung/WebHome" ,class: :btn ,class: :linkbox %></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<% cache("stickytopics_startpage_"+cache_array_key(@stickythemen)) do %>
|
|
||||||
<ul class="linklist">
|
|
||||||
<% @stickythemen.each do |t1| %>
|
|
||||||
<li>
|
|
||||||
<%= link_to t1,:class=>:linkbox do %>
|
|
||||||
<%= render partial: "themen/nlink", object: t1 %>
|
|
||||||
<% end %>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
<% end %>
|
|
||||||
<%= render 'beispiele' %>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="span5">
|
|
||||||
<ul class="unstyled linkbox-list">
|
|
||||||
<% @neuigkeiten.each do |n| %>
|
|
||||||
<li><%= render n if can?(:show, n) %> </li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="span3">
|
|
||||||
<% cache("calendar_" + cache_array_key(@calentries)+params[:month].to_s+params[:year].to_s) do %>
|
|
||||||
<%= render 'calendars/calentries', :object=>@calentries %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="fb-like-box" data-href="https://www.facebook.com/FachschaftET" data-colorscheme="light" data-show-faces="true" data-header="true" data-stream="false" data-show-border="true"></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
<h1> FET Intern NEU blue2</h1>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span6">
|
|
||||||
<div>
|
|
||||||
<ul class="linklist">
|
|
||||||
<li>
|
|
||||||
<%= link_to fa_icon("list")+"Adressliste", internlist_fetprofiles_path ,class: :linkbox %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ff_icon("ffi1-setting")+"Admin" , admin_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ff_icon("fa fa-folder")+"Treeview" , treeview_home_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ff_icon("ffi1-newspaper9")+"Crawler" , crawler_index_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ff_icon("ffi1-setting")+"Meetings" , meetingtyps_path, class: :linkbox if current_user.has_role?(:fetadmin) %>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to ff_icon("ffi1-setting")+"Alte Oberfläche" , set_preferred_theme_user_path(current_user, params: {theme: "blue1"}), class: :linkbox if can? :set_preferred_theme, current_user %>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul><br>
|
|
||||||
</div>
|
|
||||||
<div>Suche nach Protokollen
|
|
||||||
<%= semantic_form_for :search,:remote=>true, :url=>search_documents_path, :html=>{:id=>"search_form",:class=>"", :method=>'get'} do |f| %>
|
|
||||||
<%= f.input :query, :input_html => { :name => 'query' } , :label=>false, :class=>"search-query" %>
|
|
||||||
<% f.actions do %>
|
|
||||||
<% f.action :submit, :as => :input %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<div id="searchresults">
|
|
||||||
<%= render :partial=>"documents/search_results", :object=>@results %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ul class="unstyled linkbox-list">
|
|
||||||
<li>
|
|
||||||
<% @themengruppen.each do |themengruppe| %>
|
|
||||||
<div class="container-fluid">
|
|
||||||
<%= render themengruppe if can?(:show,themengruppe)%>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<%= link_to "Users", users_path %>
|
|
||||||
</div>
|
|
||||||
<div class="span6">
|
|
||||||
<h2>Neuigkeiten</h2>
|
|
||||||
<ul class="unstyled linkbox-list">
|
|
||||||
<% @neuigkeiten.each do |n| %>
|
|
||||||
<li><%= render n if can?(:show, n) %></li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<link rel="shortcut icon" href="<%= absurl("/logo2014_64.png")%>">
|
|
||||||
|
|
||||||
<link rel="alternate" hreflang="de" href="<%= url_for(params.merge(:locale=>:de))%>" />
|
|
||||||
<link rel="alternate" hreflang="en" href="<%= url_for(params.merge(:locale=>:en))%>" />
|
|
||||||
|
|
||||||
<%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %>
|
|
||||||
<%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %>
|
|
||||||
<%= javascript_include_tag "application" %>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
<% if content_for?(:header) %>
|
|
||||||
<%= yield :header %>
|
|
||||||
<% else %>
|
|
||||||
<title>Fetsite</title>
|
|
||||||
<% end %>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="maincontainer" class="container-fluid">
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span10 offset1 header_span">
|
|
||||||
<% cache("menu_u"+user_signed_in?.to_s+current_user.try(:id).to_s+"l"+I18n.locale.to_s+ can?(:seeintern, User).to_s+ can?(:index,Gallery).to_s+params[:theme].to_s, expires_in: 24.hours) do %>
|
|
||||||
<div class="header_wrap">
|
|
||||||
<div class="header hidden-print">
|
|
||||||
<%= link_to home_index_path do %>
|
|
||||||
<!-- <span class="feticon-fet_logo fa-4x color-1"> </span>-->
|
|
||||||
<%= image_tag('/logo2014_64.png',{:style=>"float:left;height:50px",:height=>"50"}) %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div class="header visible-print">
|
|
||||||
<%= image_tag('/logo2014_64.png',{:style=>"float:left;height:50px",:height=>"50"}) %>
|
|
||||||
</div>
|
|
||||||
<div class="visible-print">
|
|
||||||
Fachschaft Elektrotechnik
|
|
||||||
<hr/>
|
|
||||||
</div>
|
|
||||||
<div id="menudiv" style="margin-top:12px" class="hidden-print">
|
|
||||||
<%= render :template => 'layouts/menu' %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span10 offset1" id="contentdiv">
|
|
||||||
<%= yield %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<script>
|
|
||||||
$('.dropdown-toggle').click(function(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
setTimeout($.proxy(function() {
|
|
||||||
if ('ontouchstart' in document.documentElement) {
|
|
||||||
$(this).siblings('.dropdown-backdrop').off().remove();
|
|
||||||
}
|
|
||||||
}, this), 0);
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
<div class="navbar">
|
|
||||||
<div class="navbar-inner">
|
|
||||||
<div class="container">
|
|
||||||
<!-- <a class="brand" href="#"><% t 'home.mtitle'%></a>-->
|
|
||||||
<a class ="btn btn-navbar" data-toggle="collapse" data-parent="#menudiv" data-target=".nav-collapse">
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</a>
|
|
||||||
<div class="nav-collapse collapse">
|
|
||||||
<ul class="nav nav-pills nav-stacked">
|
|
||||||
<li><%= link_to I18n.t(:home,:scope=>'home' ), home_index_path %>
|
|
||||||
</li>
|
|
||||||
<li><%= link_to I18n.t(:news,:scope=>'home' ),rubriken_path %></li>
|
|
||||||
|
|
||||||
<li><%= link_to I18n.t(:info,:scope=>'home' ),themengruppen_path %></li>
|
|
||||||
<li><%= link_to I18n.t('mitarbeiter',:scope=>'home' ),fetprofiles_path %></li>
|
|
||||||
<% if can? :index, Gallery %>
|
|
||||||
<li><%= link_to I18n.t('fotos',:scope=>'home' ),galleries_path %></li>
|
|
||||||
<% end %>
|
|
||||||
<li><%= link_to I18n.t(:studien,:scope=>'home' ), studien_path %></li>
|
|
||||||
<li> <%= link_to I18n.t("home.search"), search_home_index_path %></li>
|
|
||||||
<li> <%= link_to I18n.t("home.kontakt"), kontakt_home_index_path %></li>
|
|
||||||
<% if can?(:seeintern, User) %>
|
|
||||||
<li>
|
|
||||||
<%= link_to 'Intern' , intern_home_index_path %>
|
|
||||||
</li><% end %>
|
|
||||||
</ul>
|
|
||||||
<ul class="nav nav-pills nav-stacked pull-right">
|
|
||||||
<li>
|
|
||||||
<!--<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" > <%= image_tag("/flaggen/png/"+I18n.locale.to_s+".png") + " " +I18n.t('sprache',:scope=>'home')%><b class="caret"></b></a>-->
|
|
||||||
<!-- Split button -->
|
|
||||||
<div class="btn-group navbar-btn">
|
|
||||||
<button type="button" class="btn btn-link dropdown-toggle" data-hover="dropdown" aria-expanded="false">
|
|
||||||
<%= image_tag("/flaggen/png/"+I18n.locale.to_s+".png") + " " +I18n.t('sprache',:scope=>'home')%>
|
|
||||||
</button>
|
|
||||||
<button type="button" class="btn btn-link dropdown-toggle" data-hover="dropdown" data-toggle="dropdown" >
|
|
||||||
<span class="caret"></span>
|
|
||||||
</button>
|
|
||||||
<ul class="dropdown-menu" role="menu">
|
|
||||||
<li><%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%> </li>
|
|
||||||
|
|
||||||
<li><%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> </li>
|
|
||||||
|
|
||||||
</ul></div>
|
|
||||||
</li>
|
|
||||||
<%= render 'layouts/login' %>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<!--<span class="pull-right"><%if I18n.locale == :en %>
|
|
||||||
<%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%>
|
|
||||||
<% elsif I18n.locale == :de %>
|
|
||||||
<%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%>
|
|
||||||
<%end %>
|
|
||||||
</span>-->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@@ -1,155 +0,0 @@
|
|||||||
<%= content_for :header do %>
|
|
||||||
<title>Fetsite - <%= @lva.full_name %></title>
|
|
||||||
<% set_meta_tags :og => {
|
|
||||||
:url=>lva_path(:theme=>nil) }
|
|
||||||
%>
|
|
||||||
<%= display_meta_tags %>
|
|
||||||
<% end %>
|
|
||||||
<div itemscope itemtype="schema.org/Article" >
|
|
||||||
<div class="container-fluid">
|
|
||||||
<%= render 'studien/tabs'%>
|
|
||||||
<p id="notice"><%= notice %></p>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
<%= render 'layouts/pretty_toolbar' %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span8">
|
|
||||||
<h1 itemprop="name"><%= @lva.full_name %></h1>
|
|
||||||
<meta itemprop="url" content="<%= lva_path(@lva) %>" />
|
|
||||||
<ul class="linklist">
|
|
||||||
<li>
|
|
||||||
<%= link_to ffi1_icon("live2")+"ET-Forum", @lva.forumlink, class: :linkbox, itemprop: "discussionUrl" unless @lva.forumlink.nil? or @lva.forumlink.empty?%>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<%= link_to "TISS", @lva.tisslink, class: :linkbox %>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div itemprop="articleBody">
|
|
||||||
<h2><%= I18n.t('lva.pruefungsinfo')%></h2>
|
|
||||||
<div class="">
|
|
||||||
<%= @lva.pruefungsinformation.to_s.html_safe %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2><%= I18n.t('lva.lernaufwand')%></h2>
|
|
||||||
<div class="">
|
|
||||||
<%= @lva.lernaufwand %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2><%= I18n.t('lva.desc')%></h2>
|
|
||||||
<div class="">
|
|
||||||
<%= @lva.desc.to_s.html_safe %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="span4">
|
|
||||||
<div class="contentbox">
|
|
||||||
<ul>
|
|
||||||
<li><b><%= I18n.t('lva.lvanr')%>:</b> <%=@lva.lvanr %></li>
|
|
||||||
<li><b>ECTS:</b> <%=@lva.ects %></li>
|
|
||||||
<li><b><%= I18n.t('lva.stunden')%>:</b> <%=@lva.stunden %></li>
|
|
||||||
</ul>
|
|
||||||
<h2><%= I18n.t('lva.module')%></h2>
|
|
||||||
<ul>
|
|
||||||
<% @lva.modul.each do |modul| %>
|
|
||||||
<li><b><%= link_to modul.name , modul_path(modul)%></b>
|
|
||||||
<ul>
|
|
||||||
<% modul.modulgruppen.each do |g| %>
|
|
||||||
|
|
||||||
<li><%= link_to g.studium.title_context , studium_path(g.studium)%> (<%=link_to g.name, modulgruppe_path(g)%>)</li>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div class="contentbox">
|
|
||||||
<h2> <%= I18n.t "lecturers.lecturers" %> </h2>
|
|
||||||
<% @lva.lecturers.each do |lec| %>
|
|
||||||
<%= render :partial=>'lecturers/lec_lva', :object=>lec %>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
<%= new_question_for(@lva) %>
|
|
||||||
<% @questions.each do |q| %>
|
|
||||||
<%= render q if can? :show, q %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<h2><%= I18n.t("lva.bspe") %></h2>
|
|
||||||
<p>
|
|
||||||
<%= I18n.t("lva.ratebsp")%>
|
|
||||||
<%= link_to ffi1_icon("facebook1") + I18n.t('home.fblogin'), user_omniauth_authorize_path(:facebook) ,class: :linkbox %>
|
|
||||||
</p>
|
|
||||||
<%= link_to t("beispiel.zip") , beispiel_sammlung_lva_path(@lva), class: :linkbox %>
|
|
||||||
<% @beispiele.each do |b| %>
|
|
||||||
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
|
||||||
<%= render b%>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% if @beispiele_badQ.count > 0 %>
|
|
||||||
<h3> Bad Quality or Outdated</h3>
|
|
||||||
<% @beispiele_badQ.each do |b| %>
|
|
||||||
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
|
||||||
<%= render b%>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% if @beispiele_deleted.count > 0 %>
|
|
||||||
<h3> Trash</h3>
|
|
||||||
<% @beispiele_deleted.each do |b| %>
|
|
||||||
|
|
||||||
<% cache("beispiel_" +I18n.locale.to_s+b.id.to_s+can?(:delete,b).to_s+"_"+can?(:edit,b).to_s + "_" + can?(:flag, b).to_s + "_" + can?(:like, b).to_s + "_" + b.updated_at.try(:utc).try(:to_s) + get_theme_help(current_user).to_s) do %>
|
|
||||||
<%= render b%>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
|
|
||||||
<% unless @lva.nlinks.empty? %>
|
|
||||||
<h2><%= I18n.t("rubrik.title") %></h2>
|
|
||||||
<% @lva.nlinks.each do |l| %>
|
|
||||||
<%= render l.neuigkeit %>
|
|
||||||
<% end %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% cache("lva_beispiel_form_bulk_"+@lva.id.to_s+I18n.locale.to_s+@lva.updated_at.to_i.to_s) do %>
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
<%= render 'beispiele/form_bulk' %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<% unless @crawlobjects.nil? %>
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span12">
|
|
||||||
<% @crawlobjects.each do |co| %>
|
|
||||||
<%= render co %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
<% if neuigkeit_view.nil?
|
|
||||||
neuigkeit_view=@neuigkeit
|
|
||||||
end
|
|
||||||
%>
|
|
||||||
<div id="neuigkeit_<%= neuigkeit_view.id %>" class="contentbox" itemscope itemtype="http://schema.org/Article">
|
|
||||||
<%= meta_itemprop("about", neuigkeit_view.text_first_words) %>
|
|
||||||
<%= meta_itemprop("sameAs", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
|
||||||
<%= meta_itemprop("url", neuigkeit_url(neuigkeit_view,:theme=>nil)) %>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<% cache("menu_neuigkeit"+ neuigkeit_view.id.to_s + can?(:edit,neuigkeit_view).to_s + can?(:find_link, neuigkeit_view).to_s + can?(:new, Survey::Question).to_s + can?(:publish, neuigkeit_view).to_s + can?(:unpublish, neuigkeit_view).to_s + neuigkeit_view.published?.to_s + neuigkeit_view.flag_important.to_s + neuigkeit_view.flag_infoscreen.to_s) do %>
|
|
||||||
<%= render partial: "menu" , object: neuigkeit_view%>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
|
|
||||||
<%#= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
|
||||||
</div>
|
|
||||||
<div class="media">
|
|
||||||
<span itemprop="articleSection">
|
|
||||||
<%= ff_icon(neuigkeit_view.rubrik.icon) unless neuigkeit_view.rubrik.icon.nil? or neuigkeit_view.rubrik.icon.empty? %> <%= neuigkeit_view.rubrik.name %>
|
|
||||||
</span>
|
|
||||||
<span class="pull-right">
|
|
||||||
<span itemprop="author"><%= neuigkeit_view.author.email.to_s unless neuigkeit_view.try(:author).try(:email).to_s %>
|
|
||||||
<%= neuigkeit_view.author.text %></span>
|
|
||||||
<% unless neuigkeit_view.try(:datum).try(:to_date).nil? %>
|
|
||||||
<%= " "+ I18n.t("neuigkeit.am")+" " %><span itemprop="datePublished"><%= I18n.l(neuigkeit_view.try(:datum).try(:to_date)) %>
|
|
||||||
</span>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<% unless neuigkeit_view.published? %>
|
|
||||||
<div class="sticker sticker-red"> Not Published <%= link_to "Publish", publish_rubrik_neuigkeit_path(neuigkeit_view.rubrik,neuigkeit_view),remote:true, class: :btn if can? :publish, neuigkeit_view %></div>
|
|
||||||
<% end %>
|
|
||||||
<% unless neuigkeit_view.origurl.nil? || neuigkeit_view.origurl.empty? %>
|
|
||||||
<div class="alert"><%= link_to "Zitiert von "+ neuigkeit_view.origurl, neuigkeit_view.origurl %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<div class="media">
|
|
||||||
<% unless neuigkeit_view.picture_robust.big_thumb.to_s.empty? %>
|
|
||||||
<div class="pull-left" href="#">
|
|
||||||
<p><br><%= link_to image_tag(neuigkeit_view.picture_robust.big_thumb),neuigkeit_view.picture_robust.try(:url) %>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<div class="media-body">
|
|
||||||
<h1 itemprop="name">
|
|
||||||
<%= raw(neuigkeit_view.title) %> <%#= link_to fa_icon("edit"), edit_rubrik_neuigkeit_path(neuigkeit_view.rubrik, neuigkeit_view), remote: true if can? :edit, neuigkeit_view %>
|
|
||||||
</h1>
|
|
||||||
<div itemprop="articleBody">
|
|
||||||
<%= raw(neuigkeit_view.text) %>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<%= render_calentries_for(neuigkeit_view)%>
|
|
||||||
<%= new_calentry_div(neuigkeit_view) %>
|
|
||||||
<% unless neuigkeit_view.meeting.nil? %>
|
|
||||||
<%= render neuigkeit_view.meeting %>
|
|
||||||
<% end%>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<%= render_attachments_list_for(neuigkeit_view) %>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<% @questions.each do |q| %>
|
|
||||||
<%= render q if can? :show, q %>
|
|
||||||
<% end %>
|
|
||||||
@@ -1,77 +0,0 @@
|
|||||||
<%= content_for :header do %>
|
|
||||||
<title>Fetsite - <%= @neuigkeit.title %> (<%= @neuigkeit.rubrik.name %>)</title>
|
|
||||||
<% set_meta_tags :author => fetprofile_path(@neuigkeit.author.fetprofile) unless @neuigkeit.author.fetprofile.nil? %>
|
|
||||||
<% unless @neuigkeit.picture_robust.url.nil? %>
|
|
||||||
<%
|
|
||||||
picture_url=URI(root_url)
|
|
||||||
picture_url.path=@neuigkeit.picture_robust.url(:locale=>nil, :theme=>nil)
|
|
||||||
%>
|
|
||||||
<% end %>
|
|
||||||
<% set_meta_tags :og =>
|
|
||||||
{
|
|
||||||
:image => picture_url.to_s,
|
|
||||||
:title => @neuigkeit.title.to_s + " (" + @neuigkeit.rubrik.name.to_s + ")",
|
|
||||||
:type => "article",
|
|
||||||
:description =>@neuigkeit.text_first_words,
|
|
||||||
:url=>neuigkeit_url(:theme=>nil)
|
|
||||||
}
|
|
||||||
%>
|
|
||||||
<%= display_meta_tags %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<%= render 'rubriken/tabs' %>
|
|
||||||
|
|
||||||
<div id="fb-root"></div>
|
|
||||||
|
|
||||||
<script>(function(d, s, id) {
|
|
||||||
var js, fjs = d.getElementsByTagName(s)[0];
|
|
||||||
if (d.getElementById(id)) return;
|
|
||||||
js = d.createElement(s); js.id = id;
|
|
||||||
js.src = "//connect.facebook.net/de_DE/sdk.js#xfbml=1&appId=120379864660921&version=v2.0";
|
|
||||||
fjs.parentNode.insertBefore(js, fjs);
|
|
||||||
}(document, 'script', 'facebook-jssdk'));</script>
|
|
||||||
|
|
||||||
<div class="content-column content-wrap">
|
|
||||||
<%= link_to "Refresh", neuigkeit_path(@neuigkeit), remote: true %>
|
|
||||||
<p id="notice">
|
|
||||||
<%= notice %>
|
|
||||||
</p>
|
|
||||||
<%= render partial: "neuigkeit_view", object: @neuigkeit %>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="fb-like" data-href"<%= rubrik_neuigkeit_url(@rubrik,@neuigkeit,{themes: nil, locale: nil})%>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
|
|
||||||
|
|
||||||
<%= render_comments_for(@neuigkeit) %>
|
|
||||||
|
|
||||||
<%# link_to fa_icon("link") + "Neue Verknüpfung" , "#", id: "findlink-open" if can? :find_link, @neuigkeit %>
|
|
||||||
|
|
||||||
<% cache(cache_array_key(@neuigkeit.nlinks, "NLinks")) do %>
|
|
||||||
<%= render partial: 'neuigkeiten/nlink_list_whole', :object=>@neuigkeit.nlinks %>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div id="findlink-body" class="ui-dialog" style="">
|
|
||||||
<% if can? :find_link, @neuigkeit %>
|
|
||||||
Nach Element suchen:
|
|
||||||
<%= semantic_form_for :find_link, :url=>find_link_rubrik_neuigkeit_path(@rubrik,@neuigkeit), :html=>{:id=>"search_form", :method=>'get'} , :remote=> true do |f| %>
|
|
||||||
<%= f.input :query, :input_html => { :name => 'query' },:label=>false %>
|
|
||||||
<% end %>
|
|
||||||
<%= render partial: 'nlink_list_search_whole', object: @nlink_search %>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(function(){
|
|
||||||
dialog = $( "#findlink-body" ).dialog({
|
|
||||||
autoOpen: false,
|
|
||||||
width: 350,
|
|
||||||
modal: true,
|
|
||||||
title: "Neue Verknüpfung hinzufügen",
|
|
||||||
buttons: {
|
|
||||||
"Fertig": function() {
|
|
||||||
dialog.dialog( "close" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
$("#findlink-open").on("click",function(){dialog.dialog("open")})
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@@ -16,6 +16,7 @@ de:
|
|||||||
savecont: "Zwischenspeichern"
|
savecont: "Zwischenspeichern"
|
||||||
intern: "Intern"
|
intern: "Intern"
|
||||||
manage: "Verwalten"
|
manage: "Verwalten"
|
||||||
|
new: "Neu"
|
||||||
home:
|
home:
|
||||||
sprache: "Deutsch"
|
sprache: "Deutsch"
|
||||||
kontakt: "Kontakt"
|
kontakt: "Kontakt"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ de:
|
|||||||
active_members: "Aktive Mitglieder"
|
active_members: "Aktive Mitglieder"
|
||||||
notactive_members: "Pension"
|
notactive_members: "Pension"
|
||||||
new_profile: "Neues Profil anlegen"
|
new_profile: "Neues Profil anlegen"
|
||||||
|
new: "Neues Profil anlegen"
|
||||||
gremium:
|
gremium:
|
||||||
new: "Neues Gremium"
|
new: "Neues Gremium"
|
||||||
seit: "seit"
|
seit: "seit"
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ production:
|
|||||||
hostname: localhost
|
hostname: localhost
|
||||||
port: 8080
|
port: 8080
|
||||||
log_level: WARNING
|
log_level: WARNING
|
||||||
|
min_memory: 32M
|
||||||
|
max_memory: 1G
|
||||||
path: /solr-4.10.2/default #production #ollection1 #production
|
path: /solr-4.10.2/default #production #ollection1 #production
|
||||||
# solr_home: solr
|
# solr_home: solr
|
||||||
# read_timeout: 2
|
# read_timeout: 2
|
||||||
@@ -10,10 +12,17 @@ production:
|
|||||||
|
|
||||||
development:
|
development:
|
||||||
solr:
|
solr:
|
||||||
hostname: localhost
|
hostname: triton-amp.local
|
||||||
port: 8982
|
port: 8080
|
||||||
log_level: INFO
|
log_level: INFO
|
||||||
path: /solr/development
|
path: /solr/mycore
|
||||||
|
min_memory: 32M
|
||||||
|
max_memory: 1G
|
||||||
|
# solr:
|
||||||
|
# hostname: localhost
|
||||||
|
# port: 8983
|
||||||
|
# log_level: INFO
|
||||||
|
# path: /solr/mycore
|
||||||
|
|
||||||
test:
|
test:
|
||||||
solr:
|
solr:
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
ruby_command="ruby"
|
ruby_command="ruby"
|
||||||
rake_command="rake"
|
rake_command="rake"
|
||||||
bundler_command="bundler"
|
bundler_command="bundle"
|
||||||
|
|
||||||
# Are the necessary programs installed?
|
# Are the necessary programs installed?
|
||||||
command -v $ruby_command >/dev/null 2>&1 || { echo >&2 "The given ruby command does not exist. Please change the command or install ruby"; exit 1; }
|
command -v $ruby_command >/dev/null 2>&1 || { echo >&2 "The given ruby command does not exist. Please change the command or install ruby"; exit 1; }
|
||||||
@@ -14,7 +14,7 @@ echo "Generating base configs..."
|
|||||||
# Generate clean config files if they don't exist
|
# Generate clean config files if they don't exist
|
||||||
cp -u config/database.yml.example config/database.yml
|
cp -u config/database.yml.example config/database.yml
|
||||||
cp -u config/omniauth_secrets.yml.example config/omniauth_secrets.yml
|
cp -u config/omniauth_secrets.yml.example config/omniauth_secrets.yml
|
||||||
|
touch config/crawl_config.yml
|
||||||
echo "Bundle install..."
|
echo "Bundle install..."
|
||||||
# Run Bundler
|
# Run Bundler
|
||||||
$bundler_command install || { echo "Bundler failed. Please run \"$bundle\_command install\" seperately and debug the errors, before running this script again";exit 1; }
|
$bundler_command install || { echo "Bundler failed. Please run \"$bundle\_command install\" seperately and debug the errors, before running this script again";exit 1; }
|
||||||
@@ -23,10 +23,12 @@ echo "Migrate the database..."
|
|||||||
# Run the migration
|
# Run the migration
|
||||||
$rake_command db:migrate || { echo "Migration failed. Please run \"$rake\_command db:migrate\" seperately and debug the errors, before running this script again"; exit 1; }
|
$rake_command db:migrate || { echo "Migration failed. Please run \"$rake\_command db:migrate\" seperately and debug the errors, before running this script again"; exit 1; }
|
||||||
|
|
||||||
|
|
||||||
echo "Start the sunspot server"
|
echo "Start the sunspot server"
|
||||||
# Run Sunspot
|
# Run Sunspot
|
||||||
$rake_command sunspot:solr:stop &> /dev/null
|
$rake_command sunspot:solr:stop &> /dev/null
|
||||||
$rake_command sunspot:solr:start || exit 1
|
$rake_command sunspot:solr:start || exit 1
|
||||||
|
bundle exec sunspot-solr start -p 8982
|
||||||
|
|
||||||
# Topic 1 is supposed to be the startpage topic
|
# Topic 1 is supposed to be the startpage topic
|
||||||
if [ ! -f config/start_topic.yml ]; then
|
if [ ! -f config/start_topic.yml ]; then
|
||||||
@@ -34,7 +36,7 @@ if [ ! -f config/start_topic.yml ]; then
|
|||||||
echo "1" > config/start_topic.yml
|
echo "1" > config/start_topic.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Generate fetadmin user "admin@fet.at", password: 12345678
|
touch config/crawl_config.yml
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
public/assets/infoscreen_header_provisorisch.png
Normal file
BIN
public/assets/infoscreen_header_provisorisch.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
134
public/assets/infoscreenframe.css
Normal file
134
public/assets/infoscreenframe.css
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
html {
|
||||||
|
background-color: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: wrap;
|
||||||
|
height: 100vh;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
height: 200px;
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
padding-top: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.impulsPath {
|
||||||
|
fill: none;
|
||||||
|
stroke: #04669c;
|
||||||
|
stroke-miterlimit: 1;
|
||||||
|
stroke-width: 6px;
|
||||||
|
stroke-dasharray: 1946.243;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
stroke-linecap: round;
|
||||||
|
animation: dash 10s ease-out infinite;
|
||||||
|
animation-direction: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.FET-logotext-stroke {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#FET-logotext {
|
||||||
|
opacity: 0;
|
||||||
|
animation: logotext 10s ease-in infinite;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.content-area {
|
||||||
|
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
width: 100%;
|
||||||
|
height: 150px;
|
||||||
|
background-color: #04669c;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
color: #fff;
|
||||||
|
flex-basis: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h3,
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-family: Helvetica, Arial;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h3 {
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .adress {
|
||||||
|
margin: auto;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .contact {
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer{
|
||||||
|
display: inline-flex;
|
||||||
|
margin: auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
.footer .servicecontainer .servicetime {
|
||||||
|
margin: auto;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer .servicetime #time {
|
||||||
|
font-size: 0.7em
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer .servicestatus{
|
||||||
|
margin: auto;
|
||||||
|
width:20px;
|
||||||
|
height: 100%
|
||||||
|
padding-right: 30px;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*K E Y F R A M E S*/
|
||||||
|
|
||||||
|
@keyframes dash {
|
||||||
|
from {
|
||||||
|
stroke-dashoffset: 1946.243;
|
||||||
|
opacity: 0;
|
||||||
|
stroke-width: 0.5;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
stroke-width: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes logotext {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
134
public/iframe/infoscreenframe.css
Normal file
134
public/iframe/infoscreenframe.css
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
html {
|
||||||
|
background-color: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: wrap;
|
||||||
|
height: 100vh;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
height: 200px;
|
||||||
|
width: 100%
|
||||||
|
}
|
||||||
|
|
||||||
|
svg {
|
||||||
|
padding-top: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.impulsPath {
|
||||||
|
fill: none;
|
||||||
|
stroke: #04669c;
|
||||||
|
stroke-miterlimit: 1;
|
||||||
|
stroke-width: 6px;
|
||||||
|
stroke-dasharray: 1946.243;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
stroke-linejoin: round;
|
||||||
|
stroke-linecap: round;
|
||||||
|
animation: dash 10s ease-out infinite;
|
||||||
|
animation-direction: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.FET-logotext-stroke {
|
||||||
|
fill: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
#FET-logotext {
|
||||||
|
opacity: 0;
|
||||||
|
animation: logotext 10s ease-in infinite;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.content-area {
|
||||||
|
|
||||||
|
height: auto;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
width: 100%;
|
||||||
|
height: 150px;
|
||||||
|
background-color: #04669c;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
color: #fff;
|
||||||
|
flex-basis: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h3,
|
||||||
|
p {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-family: Helvetica, Arial;
|
||||||
|
letter-spacing: 0.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h3 {
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .adress {
|
||||||
|
margin: auto;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .contact {
|
||||||
|
margin: auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer{
|
||||||
|
display: inline-flex;
|
||||||
|
margin: auto;
|
||||||
|
|
||||||
|
}
|
||||||
|
.footer .servicecontainer .servicetime {
|
||||||
|
margin: auto;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer .servicetime #time {
|
||||||
|
font-size: 0.7em
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .servicecontainer .servicestatus{
|
||||||
|
margin: auto;
|
||||||
|
width:20px;
|
||||||
|
height: 100%
|
||||||
|
padding-right: 30px;
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*K E Y F R A M E S*/
|
||||||
|
|
||||||
|
@keyframes dash {
|
||||||
|
from {
|
||||||
|
stroke-dashoffset: 1946.243;
|
||||||
|
opacity: 0;
|
||||||
|
stroke-width: 0.5;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
stroke-dashoffset: 0;
|
||||||
|
stroke-width: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes logotext {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
104
public/iframe/infoscreenframe.html
Normal file
104
public/iframe/infoscreenframe.html
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="de">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Infoscreen</title>
|
||||||
|
<style media="screen">
|
||||||
|
pre.code {
|
||||||
|
-moz-border-radius: 10px;
|
||||||
|
-webkit-border-radius: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
height: 280px;
|
||||||
|
overflow: auto;
|
||||||
|
background: #181818;
|
||||||
|
border: solid 2px #181818;
|
||||||
|
}
|
||||||
|
|
||||||
|
#codelines {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#svg {
|
||||||
|
-moz-border-radius: 10px;
|
||||||
|
-webkit-border-radius: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
border: solid 2px #ccc;
|
||||||
|
width: 300px;
|
||||||
|
height: 300px;
|
||||||
|
float: left;
|
||||||
|
margin-right: 10px;
|
||||||
|
font: 1em source-sans-pro, Source Sans Pro, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="./infoscreenframe.css">
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="header">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1280 200">
|
||||||
|
<path id="impulsPath" class="impulsPath" d="M0,61.43H1018c2.41,0,6.77-2.28,9.12-2.28,2.66,0,8.3,6.58,11.65,6.58,3.16,0,7.47-15.07,10-15.07,4.3,0,10.38,29.62,14.18,29.62s11.89-55.47,13.67-55.47c5.32,0,10.63,86.34,14.18,86.34,4.3,0,10.63-111.15,13.42-111.15,3.54,0,8.86,123.56,13.17,123.56,3.8,0,8.36-116.85,13.55-116.85,3.42,0,8.74,100,13.67,100,3.67,0,9.24-71.15,12.91-71.15,3.42,0,10.51,41.78,12.91,41.78,3.42,0,8.48-24.56,12.41-24.56,4.43,0,7.93,12.91,12.41,12.91,5.7,0,8.3-6.58,11.65-6.58s6.77,2.28,9.12,2.28h64"/>
|
||||||
|
<g id="FET-logotext"><g id="F"><path d="M1042,82.71l12.7-35.9v-.1c.2-.3,3.8-8.5,13.1-9.6h37.9l-4,11.6h-25.8a7.19,7.19,0,0,0-4.8,3.7l-.6,1.6h14.1l-4.1,11.7h-14l-6.1,17Z"/><path class="FET-logotext-stroke" d="M1102.9,39l-2.6,7.6h-24.6a9.18,9.18,0,0,0-6.4,5l-1.6,4.4h14.1l-2.7,7.7h-14l-6.1,17h-14.2l11.7-33.2s3.3-7.5,11.5-8.5h34.9m5.7-4h-40.9c-10.4,1.3-14.5,10.4-14.7,10.8l-.1.1V46L1041,79.31l-1.9,5.3h22.7l.9-2.7,5.1-14.4H1082l.9-2.7,2.7-7.7,1.9-5.3h-13.7a5.48,5.48,0,0,1,2.3-1.4h27.1l.9-2.7,2.6-7.6,1.9-5.1Z"/></g><g id="E"><path d="M1101.3,82.71h-.2a8.59,8.59,0,0,1-6.2-3.8,9.86,9.86,0,0,1-.7-7.9l8.8-24.9.1-.1c.2-.3,4.3-8.1,13.3-9H1154l-4,11.7-26-.1a7.1,7.1,0,0,0-4.6,3.7l-.6,1.7h14.1l-4.1,11.7h-14.2l-1.1,3.1a2.37,2.37,0,0,0,.2,1.6,2.23,2.23,0,0,0,1.2.7h27l-4,11.7h-36.6Z"/><path class="FET-logotext-stroke" d="M1151.2,39l-2.6,7.7-24.8-.1a9.21,9.21,0,0,0-6.2,5l-1.7,4.4H1130l-2.7,7.7h-14.1l-1.6,4.5s-1.1,4.1,3,4.9H1139l-2.6,7.7h-35c-7.8-1.3-5.3-9.1-5.3-9.1l8.7-24.6s3.7-7.1,11.7-7.9l34.7-.2m5.6-4h-40.6c-10.1,1-14.7,9.7-14.9,10l-.1.3-.1.3-8.7,24.6v.2c-.2.5-1.6,5.4.9,9.6a10.41,10.41,0,0,0,7.5,4.7l.3.1h38.2l.9-2.7,2.6-7.7,1.8-5.3h-29l.5-1.4h14.1l.9-2.7,2.7-7.7,1.9-5.3H1122a6.42,6.42,0,0,1,2.2-1.4l24.3.1h2.9l.9-2.7,2.6-7.7,1.9-5.3Z"/></g><g id="T"><path d="M1154.3,82.71l12-34-15.1-.1.9-2.6a14.39,14.39,0,0,1,11.5-9H1204l-4.1,11.7h-15l-12.1,34.1h-18.5Z"/><path class="FET-logotext-stroke" d="M1201.2,38.91l-2.7,7.7h-15l-12.1,34.1h-14.3l12-34-15.1-.1a12.54,12.54,0,0,1,9.9-7.7h37.3m5.7-4h-43.6a16.53,16.53,0,0,0-13.1,10.3l-1.8,5.3h5.6l9.5.1-10.1,28.7-1.9,5.3h22.7l.9-2.7,11.1-31.4h15l.9-2.7,2.7-7.7,2.1-5.2Z"/></g></g>
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="content-area">
|
||||||
|
<!-- Inhaltsbereich -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="footer">
|
||||||
|
<div class="adress">
|
||||||
|
<h3>Fachschaft Elektrotechnik</h3><br>
|
||||||
|
<p>Gußhausstraße 25-27<br>Room CD 01 09 (1st floor)<br>1040 Vienna</p>
|
||||||
|
</div>
|
||||||
|
<div class="contact">
|
||||||
|
<h3>Contact</h3><br>
|
||||||
|
<p>E-Mail: service@fet.at<br>Phone: +43-1-58801 49553<br></p>
|
||||||
|
</div>
|
||||||
|
<div class="servicecontainer">
|
||||||
|
<div class="servicetime">
|
||||||
|
<h3>Service times</h3><br>
|
||||||
|
<p style="text-align: right">Mon to Thur: 9am to 02pm<br>Fri: 9am to 12am<br>
|
||||||
|
<span id="time"></span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="servicestatus">
|
||||||
|
<!-- <svg class="servicestatusled">
|
||||||
|
<circle id="servicestatusled" cx="10" cy="15" r="10" style="fill: red" />
|
||||||
|
</svg> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
var today = new Date();
|
||||||
|
today = today;
|
||||||
|
document.getElementById('time').innerHTML = today;
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user