spina-conferences-primer_theme 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/spina/conferences/primer_theme/conferences_controller.rb +2 -0
- data/app/controllers/spina/conferences/primer_theme/presentations_controller.rb +6 -0
- data/app/helpers/spina/conferences/primer_theme/application_helper.rb +1 -1
- data/lib/spina/conferences/primer_theme/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d8f78c47c7e62b8f1641637726ff25cd91287b192d211b2611cb4e3fdee3c8f
|
4
|
+
data.tar.gz: 3250dcb6212ba99235b1913687c8744ddff6c7460c9ab0bcfffb9859ab0f6f63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd58dadf7abf1ece8546b842de360721e6c3a833cf16a69e4bbd9ea9b7a8ecd1e7149a12258e5700bf6d2dad1fb5a1cfa8fe0378eec62341828e0915e5c855ef
|
7
|
+
data.tar.gz: 966d524a6977b9e34d0ed54b9e5444984bc8513f47eb7c9c9910e845ea9ff4450ad257f2f43fda4c0d43fd2c603f4be065bb81bd52b35dfbd1c7418c1fa28a2d
|
@@ -25,6 +25,8 @@ module Spina
|
|
25
25
|
presentation_types: [:translations],
|
26
26
|
presentations: [session: [:room], presenters: [:institution]])
|
27
27
|
.find(params[:id])
|
28
|
+
rescue ActiveRecord::RecordNotFound
|
29
|
+
send_file Rails.root.join('public/404.html'), type: 'text/html; charset=utf-8', status: 404
|
28
30
|
end
|
29
31
|
|
30
32
|
def set_tab
|
@@ -9,6 +9,10 @@ module Spina
|
|
9
9
|
|
10
10
|
def show
|
11
11
|
add_breadcrumb @presentation.name
|
12
|
+
respond_to do |format|
|
13
|
+
format.html
|
14
|
+
format.ics { render nothing: true, status: :gone }
|
15
|
+
end
|
12
16
|
end
|
13
17
|
|
14
18
|
private
|
@@ -16,6 +20,8 @@ module Spina
|
|
16
20
|
def set_presentation
|
17
21
|
@presentation = Admin::Conferences::Presentation.includes(:presenters, attachments: [attachment_type: [:translations]])
|
18
22
|
.find(params[:id])
|
23
|
+
rescue ActiveRecord::RecordNotFound
|
24
|
+
send_file Rails.root.join('public/404.html'), type: 'text/html; charset=utf-8', status: 404
|
19
25
|
end
|
20
26
|
|
21
27
|
def set_conference
|
@@ -20,7 +20,7 @@ module Spina
|
|
20
20
|
current_page.ancestors.each do |ancestor|
|
21
21
|
component.slot(:item, href: 'ancestor.materialized_path') { ancestor.menu_title }
|
22
22
|
end
|
23
|
-
component.slot(:item, selected: true) { menu_title }
|
23
|
+
component.slot(:item, selected: true) { current_page.menu_title }
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|