spina-conferences-primer_theme 0.3.4 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/spina_conferences_primer_theme_manifest.js +1 -0
  3. data/app/assets/stylesheets/spina/conferences/primer_theme/application.sass +5 -0
  4. data/app/controllers/spina/conferences/primer_theme/conferences/application_controller.rb +16 -0
  5. data/app/controllers/spina/conferences/primer_theme/conferences/conferences_controller.rb +72 -0
  6. data/app/controllers/spina/conferences/primer_theme/conferences/presentations_controller.rb +42 -0
  7. data/app/controllers/spina/conferences/primer_theme/journal/application_controller.rb +13 -0
  8. data/app/controllers/spina/conferences/primer_theme/journal/articles_controller.rb +56 -0
  9. data/app/controllers/spina/conferences/primer_theme/journal/issues_controller.rb +49 -0
  10. data/app/helpers/spina/conferences/primer_theme/application_helper.rb +4 -4
  11. data/app/views/conferences_primer_theme/pages/embedded_form.html.haml +9 -0
  12. data/app/views/layouts/spina/conferences/primer_theme/application.html.haml +2 -1
  13. data/app/views/layouts/spina/conferences/primer_theme/{conferences.html.haml → conferences/conferences.html.haml} +0 -0
  14. data/app/views/layouts/spina/conferences/primer_theme/{presentations.html.haml → conferences/presentations.html.haml} +0 -0
  15. data/app/views/layouts/spina/conferences/primer_theme/journal/articles.html.haml +2 -0
  16. data/app/views/layouts/spina/conferences/primer_theme/journal/issues.html.haml +2 -0
  17. data/app/views/spina/application/_footer.html.haml +17 -15
  18. data/app/views/spina/application/_mobile_navigation_items.html.haml +2 -2
  19. data/app/views/spina/application/_navigation.html.haml +11 -9
  20. data/app/views/spina/conferences/primer_theme/conferences/{_conference.html.haml → conferences/_conference.html.haml} +0 -0
  21. data/app/views/spina/conferences/primer_theme/conferences/{_event.html.haml → conferences/_event.html.haml} +0 -0
  22. data/app/views/spina/conferences/primer_theme/conferences/{_events.html.haml → conferences/_events.html.haml} +0 -0
  23. data/app/views/spina/conferences/primer_theme/conferences/{_header.html.haml → conferences/_header.html.haml} +0 -0
  24. data/app/views/spina/conferences/primer_theme/conferences/{_institution.html.haml → conferences/_institution.html.haml} +0 -0
  25. data/app/views/spina/conferences/primer_theme/conferences/{_institution_logo.html.haml → conferences/_institution_logo.html.haml} +0 -0
  26. data/app/views/spina/conferences/primer_theme/conferences/{_presentation.html.haml → conferences/_presentation.html.haml} +0 -0
  27. data/app/views/spina/conferences/primer_theme/conferences/{_presentation_type.html.haml → conferences/_presentation_type.html.haml} +1 -1
  28. data/app/views/spina/conferences/primer_theme/conferences/{_presentations.html.haml → conferences/_presentations.html.haml} +2 -2
  29. data/app/views/spina/conferences/primer_theme/conferences/{_submission_flash.html.haml → conferences/_submission_flash.html.haml} +0 -0
  30. data/app/views/spina/conferences/primer_theme/conferences/{index.html.haml → conferences/index.html.haml} +0 -0
  31. data/app/views/spina/conferences/primer_theme/conferences/{show.html.haml → conferences/show.html.haml} +3 -3
  32. data/app/views/spina/conferences/primer_theme/{kaminari → conferences/kaminari}/_gap.html.haml +0 -0
  33. data/app/views/spina/conferences/primer_theme/{kaminari → conferences/kaminari}/_next_page.html.haml +0 -0
  34. data/app/views/spina/conferences/primer_theme/{kaminari → conferences/kaminari}/_page.html.haml +0 -0
  35. data/app/views/spina/conferences/primer_theme/{kaminari → conferences/kaminari}/_paginator.html.haml +0 -0
  36. data/app/views/spina/conferences/primer_theme/{kaminari → conferences/kaminari}/_prev_page.html.haml +0 -0
  37. data/app/views/spina/conferences/primer_theme/{presentations → conferences/presentations}/_abstract.html.haml +0 -0
  38. data/app/views/spina/conferences/primer_theme/{presentations → conferences/presentations}/_attachment.html.haml +0 -0
  39. data/app/views/spina/conferences/primer_theme/{presentations → conferences/presentations}/_attachments.html.haml +0 -0
  40. data/app/views/spina/conferences/primer_theme/{presentations → conferences/presentations}/show.html.haml +0 -0
  41. data/app/views/spina/conferences/primer_theme/journal/articles/_authorship.html.haml +6 -0
  42. data/app/views/spina/conferences/primer_theme/journal/articles/show.html.haml +60 -0
  43. data/app/views/spina/conferences/primer_theme/journal/issues/_article.html.haml +15 -0
  44. data/app/views/spina/conferences/primer_theme/journal/issues/_issue.html.haml +17 -0
  45. data/app/views/spina/conferences/primer_theme/journal/issues/_issue_cover.html.haml +6 -0
  46. data/app/views/spina/conferences/primer_theme/journal/issues/index.html.haml +30 -0
  47. data/app/views/spina/conferences/primer_theme/journal/issues/show.html.haml +27 -0
  48. data/config/initializers/themes/conferences_primer_theme.rb +18 -1
  49. data/config/locales/en.yml +79 -54
  50. data/config/routes.rb +7 -1
  51. data/lib/spina/conferences/primer_theme.rb +3 -4
  52. data/lib/spina/conferences/primer_theme/version.rb +1 -1
  53. metadata +51 -38
  54. data/app/controllers/spina/conferences/primer_theme/application_controller.rb +0 -14
  55. data/app/controllers/spina/conferences/primer_theme/conferences_controller.rb +0 -70
  56. data/app/controllers/spina/conferences/primer_theme/presentations_controller.rb +0 -40
@@ -5,13 +5,13 @@
5
5
 
6
6
  = turbo_frame_tag 'conference_tabs' do
7
7
  = render Primer::UnderlineNavComponent.new(label: t(:'.conference_navigation')) do |component|
8
- - component.tab(href: frontend_conference_url(@conference, tab: 'information', presentation_type: @presentation_type&.id),
8
+ - component.tab(href: frontend_conference_path(@conference, tab: 'information', presentation_type: @presentation_type&.id),
9
9
  aria: { selected: (@tab == 'information').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
10
10
  = t(:'.tabs.information')
11
- - component.tab(href: frontend_conference_url(@conference, tab: 'presentations', presentation_type: @presentation_type&.id),
11
+ - component.tab(href: frontend_conference_path(@conference, tab: 'presentations', presentation_type: @presentation_type&.id),
12
12
  aria: { selected: (@tab == 'presentations').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
13
13
  = t(:'.tabs.presentations')
14
- - component.tab(href: frontend_conference_url(@conference, tab: 'events', presentation_type: @presentation_type&.id),
14
+ - component.tab(href: frontend_conference_path(@conference, tab: 'events', presentation_type: @presentation_type&.id),
15
15
  aria: { selected: (@tab == 'events').to_s }, classes: 'UnderlineNav-item', role: 'tab') do
16
16
  = t(:'.tabs.events')
17
17
  - component.actions do
@@ -0,0 +1,6 @@
1
+ = render(Primer::FlexComponent.new(tag: :li, mr: 4, align_items: :center)) do
2
+ = render(Primer::FlexItemComponent.new(mr: 2)) do
3
+ = render(Primer::OcticonComponent.new('person'))
4
+ = render(Primer::FlexComponent.new(tag: :address, direction: :column)) do
5
+ = render(Primer::TextComponent.new(tag: :div, font_weight: :bold)) { authorship.affiliation.name }
6
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary)) { authorship.affiliation.institution.name }
@@ -0,0 +1,60 @@
1
+ - cache [@article, @article.authorships, @article.affiliations, @article.content(:abstract), @article.issue, @article.issue.volume, @article.issue.content(:cover_img)] do
2
+ = render(Primer::HeadingComponent.new) { @article.title }
3
+
4
+ = render(Primer::FlexComponent.new(direction: [:column, nil, :row, nil])) do
5
+ = render(Primer::FlexItemComponent.new(flex_auto: true, mr: [nil, nil, 4, nil])) do
6
+ %ul.list-style-none.d-flex.flex-column.flex-sm-row.my-2
7
+ - @article.affiliations.each do |affiliation|
8
+ = render(Primer::FlexComponent.new(tag: :li, mr: 4, align_items: :center)) do
9
+ = render(Primer::FlexItemComponent.new(mr: 2)) do
10
+ = render(Primer::OcticonComponent.new('person'))
11
+ = render(Primer::FlexComponent.new(tag: :address, direction: :column)) do
12
+ = render(Primer::TextComponent.new(tag: :div, font_weight: :bold)) { affiliation.name }
13
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary)) { affiliation.institution.name }
14
+
15
+ - if @article.has_content?(:abstract)
16
+ = render(Primer::HeadingComponent.new(tag: :h2, mt: 4, font_size: 3)) { t '.abstract' }
17
+ = render(Primer::MarkdownComponent.new) { @article.content.html(:abstract) }
18
+
19
+ = render(Primer::BorderBoxComponent.new(ml: [nil, nil, 4, nil], style: 'min-width: 20vw')) do |sidebar|
20
+ - sidebar.body do
21
+ - if @article.issue.has_content?(:cover_img)
22
+ = render partial: 'spina/conferences/primer_theme/journal/issues/issue_cover', locals: { issue: @article.issue, cover_img: @article.issue.content(:cover_img), size: [200, 400] }
23
+ = render(Primer::BorderBoxComponent.new) do |component|
24
+ - if @article.has_content?(:attachment)
25
+ - component.row do
26
+ = render(Primer::ButtonComponent.new(tag: :a, href: main_app.url_for(@article.content(:attachment)), download: '', scheme: :primary)) do
27
+ = render Primer::OcticonComponent.new('download')
28
+ = t '.download'
29
+ - component.row do
30
+ = render(Primer::HeadingComponent.new(tag: :h2, font_size: 4, color: :text_secondary)) { t '.published' }
31
+ = render(Primer::TextComponent.new) do
32
+ = time_tag @article.issue.date, format: :long
33
+ - component.row do
34
+ = render(Primer::HeadingComponent.new(tag: :h2, font_size: 4, color: :text_secondary)) { t '.issue' }
35
+ = render(Primer::TextComponent.new) do
36
+ = link_to t('spina.conferences.primer_theme.journal.volume_issue',
37
+ volume_number: @article.issue.volume.number,
38
+ issue_number: @article.issue.number), frontend_issue_path(@article.issue)
39
+ - unless @article.doi.blank?
40
+ - component.row do
41
+ = render(Primer::HeadingComponent.new(tag: :h2, font_size: 4, color: :text_secondary)) { t '.doi' }
42
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary, mt: 1)) do
43
+ = link_to nil, @article.doi
44
+ - unless @article.url.blank?
45
+ - component.row do
46
+ = render(Primer::HeadingComponent.new(tag: :h2, font_size: 4, color: :text_secondary)) { t '.url' }
47
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary, mt: 1)) do
48
+ = link_to nil, @article.url
49
+ - component.row do
50
+ -# TODO: allow user to select licence
51
+ = render(Primer::FlexComponent.new(direction: :column)) do
52
+ = render(Primer::TextComponent.new(mb: 2)) do
53
+ Copyright #{@article.issue.date.year} #{@article.affiliations.collect(&:name).to_sentence}
54
+ %a{ rel: 'licence', href: 'https://creativecommons.org/licenses/by/4.0/' }
55
+ %img{ alt: 'Creative Commons Attribution 4.0 International Licence', src: '//i.creativecommons.org/l/by/4.0/88x31.png' }
56
+ = render(Primer::TextComponent.new(mt: 1)) { t '.cc_by_licence_html' }
57
+
58
+ - if @article.draft?
59
+ - component.row do
60
+ = render(Primer::TextComponent.new(tag: :div, color: :text_danger, font_weight: :bold)) { t '.draft' }
@@ -0,0 +1,15 @@
1
+ = render(Primer::FlexComponent.new(direction: [:column, nil, :row, nil])) do
2
+ = render(Primer::FlexItemComponent.new(flex_auto: true)) do
3
+ = render(Primer::HeadingComponent.new(tag: :h3, mb: 1)) do
4
+ = link_to article.title, frontend_issue_article_path(article.issue, article)
5
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary)) do
6
+ = render(Primer::OcticonComponent.new(article.affiliations.many? ? 'people' : 'person'))
7
+ = render(Primer::BaseComponent.new(tag: :address, display: :inline)) do
8
+ = article.authorships.sorted_within_article.collect { |authorship| authorship.affiliation.name }.to_sentence
9
+ - unless article.doi.blank?
10
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary)) do
11
+ = link_to nil, article.doi
12
+ - if article.has_content?(:attachment)
13
+ = render(Primer::ButtonComponent.new(tag: :a, href: main_app.url_for(article.content(:attachment)), mt: 2, download: '')) do
14
+ = render Primer::OcticonComponent.new('download')
15
+ = t '.download'
@@ -0,0 +1,17 @@
1
+ = render(Primer::FlexComponent.new(direction: [:column, nil, :row, nil])) do
2
+ - if issue.content(:cover_img).present?
3
+ = render(Primer::FlexItemComponent.new(mr: 4)) do
4
+ = render partial: 'issue_cover', locals: { issue: issue, cover_img: issue.content(:cover_img), size: [150, 300] }
5
+ = render(Primer::FlexItemComponent.new(flex_auto: true)) do
6
+ = render(Primer::HeadingComponent.new(tag: :h3, mb: 1)) do
7
+ = link_to t('spina.conferences.primer_theme.journal.volume_issue',
8
+ volume_number: issue.volume.number,
9
+ issue_number: issue.number), frontend_issue_path(issue)
10
+ - unless issue.title.blank?
11
+ = render(Primer::HeadingComponent.new(tag: :h4, color: :text_secondary, mb: 1)) do
12
+ = issue.title
13
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary, font_weight: :bold)) do
14
+ = time_tag issue.date, format: :long
15
+ - if issue.has_content?(:description)
16
+ = render(Primer::TextComponent.new(tag: :div, color: :text_secondary, mt: 2)) do
17
+ = issue.content.html(:description)
@@ -0,0 +1,6 @@
1
+ - cache cover_img do
2
+ = image_tag main_app.url_for(cover_img.variant(resize_to_limit: size)),
3
+ srcset: srcset(cover_img, variant: { resize_to_limit: size }),
4
+ alt_description: t('spina.conferences.primer_theme.journal.volume_issue', volume_number: issue.volume.number, issue_number: issue.number),
5
+ draggable: false,
6
+ class: 'p-1'
@@ -0,0 +1,30 @@
1
+ = render(Primer::FlexComponent.new(direction: [:column, nil, :row, nil])) do
2
+ = render(Primer::FlexComponent.new(direction: :column, flex: :auto)) do
3
+ = render(Primer::HeadingComponent.new) { @journal.name }
4
+ - if @journal.has_content? :description
5
+ = render(Primer::MarkdownComponent.new(my: 4)) { @journal.content.html(:description) }
6
+ = render(Primer::BorderBoxComponent.new(ml: [nil, nil, 4, nil], style: 'min-width: 15vw;')) do |sidebar|
7
+ - if @journal.has_content? :logo
8
+ - sidebar.header(bg: :primary) do
9
+ = render(Primer::FlexItemComponent.new(mb: 4)) do
10
+ - cache @journal.content(:logo) do
11
+ = image_tag main_app.url_for(@journal.content(:logo).variant(resize_to_limit: [300, 150])),
12
+ srcset: srcset(@journal.content(:logo), variant: { resize_to_limit: [300, 150] }),
13
+ alt_description: t('.logo'),
14
+ draggable: false,
15
+ class: 'p-1'
16
+ - unless @latest_issue.nil?
17
+ - sidebar.row do
18
+ = render(Primer::HeadingComponent.new(tag: :h2, font_size: 3)) do
19
+ = link_to t('.latest_issue', volume_number: @latest_issue.volume.number, issue_number: @latest_issue.number), frontend_issue_path(@latest_issue)
20
+ - if @latest_issue.has_content?(:cover_img)
21
+ - sidebar.row do
22
+ = link_to(frontend_issue_path(@latest_issue)) do
23
+ = render partial: 'issue_cover', locals: { issue: @latest_issue, cover_img: @latest_issue.content(:cover_img), size: [150, 300] }
24
+
25
+ #journal-issues-list
26
+ = render(Primer::HeadingComponent.new(tag: :h2, mt: 3)) { t '.all_issues' }
27
+ - if @issues.any?
28
+ %ul= render partial: 'issue', collection: @issues, layout: 'list_item', cached: true
29
+ - else
30
+ = render Primer::BlankslateComponent.new(title: t(:'.no_issues'), icon: 'mortar-board')
@@ -0,0 +1,27 @@
1
+ - cache [@issue, @issue.volume, @issue.articles, @issue.content(:cover_img), @issue.content(:description)] do
2
+ - cache [@issue, @issue.volume] do
3
+ = render(Primer::HeadingComponent.new) do
4
+ = t('spina.conferences.primer_theme.journal.volume_issue',
5
+ volume_number: @issue.volume.number,
6
+ issue_number: @issue.number)
7
+
8
+ - unless @issue.title.blank?
9
+ = render(Primer::HeadingComponent.new(tag: :h2, color: :text_secondary, mb: 2)) { @issue.title }
10
+
11
+ - if @issue.has_content?(:cover_img)
12
+ = render partial: 'issue_cover', locals: { issue: @issue, cover_img: @issue.content(:cover_img), size: [300, 600] }
13
+
14
+ - if @issue.has_content?(:description)
15
+ = render(Primer::MarkdownComponent.new(my: 4)) do
16
+ = @issue.content.html(:description)
17
+
18
+ - if @issue.has_content?(:attachment)
19
+ = render(Primer::ButtonComponent.new(tag: :a, scheme: :primary, href: main_app.url_for(@issue.content(:attachment)), my: 2, download: '')) do
20
+ = render Primer::OcticonComponent.new('download')
21
+ = t '.download'
22
+
23
+ %div#journal-articles-list.border-top
24
+ - if @articles.any?
25
+ %ul= render partial: 'article', collection: @articles.sorted_asc, layout: 'list_item', cached: true
26
+ - else
27
+ = render Primer::BlankslateComponent.new(title: t(:'.no_articles'), icon: 'mortar-board')
@@ -158,6 +158,18 @@
158
158
  name: 'url',
159
159
  title: 'Link',
160
160
  part_type: 'Spina::Parts::Admin::Conferences::Url'
161
+ }, {
162
+ name: 'embed_url',
163
+ title: 'Form embed URL',
164
+ part_type: 'Spina::Parts::Admin::Conferences::Url'
165
+ }, {
166
+ name: 'abstract',
167
+ title: 'Abstract',
168
+ part_type: 'Spina::Parts::Text'
169
+ }, {
170
+ name: 'cover_img',
171
+ title: 'Cover image',
172
+ part_type: 'Spina::Parts::Image'
161
173
  }]
162
174
 
163
175
  theme.view_templates = [{
@@ -184,6 +196,11 @@
184
196
  title: 'Events',
185
197
  description: 'Contains details of past and upcoming events',
186
198
  parts: %w[text events_list]
199
+ }, {
200
+ name: 'embedded_form',
201
+ title: 'Embedded form',
202
+ description: 'Contains an embedded form',
203
+ parts: %w[text embed_url]
187
204
  }, {
188
205
  name: 'show',
189
206
  title: 'Blank',
@@ -212,5 +229,5 @@
212
229
  label: 'Footer'
213
230
  }]
214
231
 
215
- theme.plugins = ['conferences']
232
+ theme.plugins = %w[conferences journal]
216
233
  end
@@ -99,66 +99,91 @@ en:
99
99
  conferences:
100
100
  primer_theme:
101
101
  conferences:
102
- index:
103
- subscribe: Subscribe
104
- no_conferences: No conferences have been added.
105
- search: Search
106
- no_matching_conferences: No matching conferences.
107
- show:
108
- information: Information
109
- presentations: Presentations
110
- events: Events
111
- subscribe: Subscribe
112
- tabs:
102
+ conferences:
103
+ index:
104
+ subscribe: Subscribe
105
+ no_conferences: No conferences have been added.
106
+ search: Search
107
+ no_matching_conferences: No matching conferences.
108
+ show:
113
109
  information: Information
114
110
  presentations: Presentations
115
111
  events: Events
116
- no_tab: No tab.
117
- tab_does_not_exist: "The tab '%{tab}' does not exist."
118
- no_information: No information.
119
- conference_navigation: Conference content
112
+ subscribe: Subscribe
113
+ tabs:
114
+ information: Information
115
+ presentations: Presentations
116
+ events: Events
117
+ no_tab: No tab.
118
+ tab_does_not_exist: "The tab '%{tab}' does not exist."
119
+ no_information: No information.
120
+ conference_navigation: Conference content
121
+ presentations:
122
+ all_presentation_types: All
123
+ results: Results
124
+ search: Search
125
+ no_matching_presentations: No matching presentations.
126
+ no_presentations: No presentations.
127
+ presentation_type:
128
+ results: Results
129
+ events:
130
+ search: Search
131
+ no_matching_events: No matching events.
132
+ no_events: No events.
133
+ event:
134
+ times_html: "%{start_time}–%{finish_time}"
135
+ conference:
136
+ dates_html: "%{start_date}–%{finish_date}"
137
+ locations: "%{institutions}, %{cities}"
138
+ submission_flash:
139
+ submit_by_html: Submit abstracts by %{date}
140
+ submit_abstract: Submit an abstract
141
+ header:
142
+ dates_html: "%{start_date}–%{finish_date}"
143
+ locations: "%{institutions}, %{cities}"
144
+ gallery:
145
+ previous: Previous
146
+ next: Next
147
+ sponsors:
148
+ title: Sponsors
149
+
120
150
  presentations:
121
- all_presentation_types: All
122
- results: Results
123
- search: Search
124
- no_matching_presentations: No matching presentations.
125
- no_presentations: No presentations.
126
- presentation_type:
127
- results: Results
128
- events:
129
- search: Search
130
- no_matching_events: No matching events.
131
- no_events: No events.
132
- event:
133
- times_html: "%{start_time}–%{finish_time}"
134
- conference:
135
- dates_html: "%{start_date}–%{finish_date}"
136
- locations: "%{institutions}, %{cities}"
137
- submission_flash:
138
- submit_by_html: Submit abstracts by %{date}
139
- submit_abstract: Submit an abstract
140
- header:
141
- dates_html: "%{start_date}–%{finish_date}"
142
- locations: "%{institutions}, %{cities}"
143
- gallery:
144
- previous: Previous
145
- next: Next
146
- sponsors:
147
- title: Sponsors
151
+ show:
152
+ room_and_institution: "%{room}, %{institution}"
148
153
 
149
- presentations:
150
- show:
151
- room_and_institution: "%{room}, %{institution}"
154
+ kaminari:
155
+ next_page:
156
+ next: Next
157
+ next_page: Next page
158
+ prev_page:
159
+ previous: Previous
160
+ previous_page: Previous page
161
+ page:
162
+ page: Page %{number}
152
163
 
153
- kaminari:
154
- next_page:
155
- next: Next
156
- next_page: Next page
157
- prev_page:
158
- previous: Previous
159
- previous_page: Previous page
160
- page:
161
- page: Page %{number}
164
+ journal:
165
+ volume_issue: "Volume %{volume_number} (Issue %{issue_number})"
166
+ issues:
167
+ index:
168
+ no_issues: This journal has no issues.
169
+ logo: Journal logo
170
+ all_issues: All Issues
171
+ latest_issue: "Latest Issue (Vol. %{volume_number} Issue %{issue_number})"
172
+ show:
173
+ no_articles: This issue has no articles.
174
+ download: Full Issue PDF
175
+ article:
176
+ download: PDF
177
+ articles:
178
+ show:
179
+ download: PDF
180
+ doi: DOI
181
+ url: URL
182
+ abstract: Abstract
183
+ published: Published
184
+ issue: Issue
185
+ draft: THIS ARTICLE IS A DRAFT
186
+ cc_by_licence_html: This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
162
187
 
163
188
  languages:
164
189
  en-GB: British English
data/config/routes.rb CHANGED
@@ -1,11 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Spina::Engine.routes.draw do
4
- namespace :frontend, path: 'conferences', module: 'conferences/primer_theme' do
4
+ namespace :frontend, path: 'conferences', module: 'conferences/primer_theme/conferences' do
5
5
  resources :conferences, only: %i[index show] do
6
6
  resources :presentations, only: [:show]
7
7
  end
8
8
  resources :presentations, only: [:show]
9
9
  get 'cookies-info', controller: 'application'
10
10
  end
11
+
12
+ namespace :frontend, path: 'journal', module: 'conferences/primer_theme/journal' do
13
+ resources :issues, only: %i[index show] do
14
+ resources :articles, only: %i[show]
15
+ end
16
+ end
11
17
  end
@@ -4,15 +4,14 @@ require 'spina'
4
4
  require 'spina/conferences/primer_theme/engine'
5
5
  require 'spina/conferences/primer_theme/breadcrumbs/builder'
6
6
  require 'spina/admin/conferences'
7
+ require 'spina/admin/journal'
7
8
  require 'octicons_helper'
8
9
  require 'view_component'
9
10
  require 'primer/view_components'
10
11
  require 'icalendar'
11
12
 
12
13
  module Spina
13
- module Conferences
14
- module PrimerTheme
15
- # Your code goes here...
16
- end
14
+ module PrimerTheme
15
+ # Your code goes here...
17
16
  end
18
17
  end
@@ -3,7 +3,7 @@
3
3
  module Spina
4
4
  module Conferences
5
5
  module PrimerTheme
6
- VERSION = '0.3.4'
6
+ VERSION = '0.5.1'
7
7
  end
8
8
  end
9
9
  end