spina-admin-journal 0.6.2 → 1.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/config/spina_admin_journal_manifest.js +5 -2
- data/app/assets/javascripts/spina/admin/journal/application.js +0 -0
- data/app/components/spina/admin/journal/affiliations_list_component.rb +32 -0
- data/app/components/spina/admin/journal/application_component.rb +11 -0
- data/app/components/spina/admin/journal/articles_list_component.rb +54 -0
- data/app/components/spina/admin/journal/authors_list_component.rb +37 -0
- data/app/components/spina/admin/journal/authorships_list_component.rb +45 -0
- data/app/components/spina/admin/journal/empty_list_component.html.haml +1 -0
- data/app/components/spina/admin/journal/empty_list_component.rb +14 -0
- data/app/components/spina/admin/journal/institutions_list_component.rb +32 -0
- data/app/components/spina/admin/journal/issues_list_component.rb +47 -0
- data/app/components/spina/admin/journal/licences_list_component.rb +32 -0
- data/app/components/spina/admin/journal/list_component.html.haml +10 -0
- data/app/components/spina/admin/journal/list_component.rb +22 -0
- data/app/components/spina/admin/journal/list_item_component.html.haml +17 -0
- data/app/components/spina/admin/journal/list_item_component.rb +23 -0
- data/app/components/spina/admin/journal/volumes_list_component.rb +34 -0
- data/app/controllers/spina/admin/journal/application_controller.rb +1 -1
- data/app/controllers/spina/admin/journal/articles_controller.rb +11 -23
- data/app/controllers/spina/admin/journal/authors_controller.rb +10 -24
- data/app/controllers/spina/admin/journal/institutions_controller.rb +6 -4
- data/app/controllers/spina/admin/journal/issues_controller.rb +12 -25
- data/app/controllers/spina/admin/journal/journals_controller.rb +2 -1
- data/app/controllers/spina/admin/journal/licences_controller.rb +6 -4
- data/app/controllers/spina/admin/journal/volumes_controller.rb +9 -20
- data/app/views/spina/admin/hooks/journal/_primary_navigation.html.haml +35 -26
- data/app/views/spina/admin/journal/articles/_form.html.haml +23 -24
- data/app/views/spina/admin/journal/articles/_form_authors.html.haml +1 -15
- data/app/views/spina/admin/journal/articles/_form_details.html.haml +27 -56
- data/app/views/spina/admin/journal/articles/index.html.haml +7 -17
- data/app/views/spina/admin/journal/authors/_form.html.haml +24 -24
- data/app/views/spina/admin/journal/authors/_form_affiliation.html.haml +8 -20
- data/app/views/spina/admin/journal/authors/_form_articles.html.haml +1 -18
- data/app/views/spina/admin/journal/authors/_form_details.html.haml +2 -6
- data/app/views/spina/admin/journal/authors/index.html.haml +7 -15
- data/app/views/spina/admin/journal/institutions/_form.html.haml +24 -24
- data/app/views/spina/admin/journal/institutions/_form_details.html.haml +2 -8
- data/app/views/spina/admin/journal/institutions/_form_view_affiliations.html.haml +1 -10
- data/app/views/spina/admin/journal/institutions/index.html.haml +7 -15
- data/app/views/spina/admin/journal/issues/_form.html.haml +23 -23
- data/app/views/spina/admin/journal/issues/_form_articles.html.haml +1 -14
- data/app/views/spina/admin/journal/issues/_form_details.html.haml +13 -28
- data/app/views/spina/admin/journal/issues/index.html.haml +7 -16
- data/app/views/spina/admin/journal/journals/_form.html.haml +22 -32
- data/app/views/spina/admin/journal/licences/_form.html.haml +19 -34
- data/app/views/spina/admin/journal/licences/index.html.haml +7 -16
- data/app/views/spina/admin/journal/volumes/_form.html.haml +25 -12
- data/app/views/spina/admin/journal/volumes/_form_details.html.haml +4 -10
- data/app/views/spina/admin/journal/volumes/_form_issues.html.haml +1 -13
- data/app/views/spina/admin/journal/volumes/index.html.haml +7 -16
- data/config/locales/en.yml +25 -3
- data/config/routes.rb +5 -5
- data/lib/spina/admin/journal/engine.rb +12 -0
- data/lib/spina/admin/journal/version.rb +1 -1
- data/lib/spina/admin/journal.rb +1 -0
- metadata +47 -65
- data/app/assets/javascripts/spina/admin/journal/application.es6 +0 -72
- data/app/views/layouts/spina/admin/journal/articles.html.haml +0 -10
- data/app/views/layouts/spina/admin/journal/authors.html.haml +0 -10
- data/app/views/layouts/spina/admin/journal/institutions.html.haml +0 -10
- data/app/views/layouts/spina/admin/journal/issues.html.haml +0 -10
- data/app/views/layouts/spina/admin/journal/journals.html.haml +0 -10
- data/app/views/layouts/spina/admin/journal/licences.html.haml +0 -10
- data/app/views/layouts/spina/admin/journal/volumes.html.haml +0 -10
- data/app/views/spina/admin/journal/affiliations/_affiliation.html.haml +0 -8
- data/app/views/spina/admin/journal/application/_empty_list.html.haml +0 -3
- data/app/views/spina/admin/journal/articles/_article.html.haml +0 -10
- data/app/views/spina/admin/journal/authors/_author.html.haml +0 -8
- data/app/views/spina/admin/journal/authorships/_authorship.html.haml +0 -9
- data/app/views/spina/admin/journal/institutions/_institution.html.haml +0 -9
- data/app/views/spina/admin/journal/issues/_issue.html.haml +0 -9
- data/app/views/spina/admin/journal/journals/index.html.haml +0 -27
- data/app/views/spina/admin/journal/licences/_licence.html.haml +0 -11
- data/app/views/spina/admin/journal/volumes/_volume.html.haml +0 -7
- data/vendor/assets/javascripts/spina/admin/journal/html5sortable.js +0 -1295
metadata
CHANGED
@@ -1,71 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spina-admin-journal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Louis Van Steene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: haml-rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '6.
|
33
|
+
version: '6.0'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '8'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '6.0'
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '8'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: rails-i18n
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - ">="
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '6.0'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '8'
|
48
57
|
type: :runtime
|
49
58
|
prerelease: false
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
|
-
- - "
|
61
|
+
- - ">="
|
53
62
|
- !ruby/object:Gem::Version
|
54
63
|
version: '6.0'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '8'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: spina
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
60
72
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2.
|
73
|
+
version: '2.8'
|
62
74
|
type: :runtime
|
63
75
|
prerelease: false
|
64
76
|
version_requirements: !ruby/object:Gem::Requirement
|
65
77
|
requirements:
|
66
78
|
- - "~>"
|
67
79
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2.
|
80
|
+
version: '2.8'
|
69
81
|
- !ruby/object:Gem::Dependency
|
70
82
|
name: capybara
|
71
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,20 +120,6 @@ dependencies:
|
|
108
120
|
- - "~>"
|
109
121
|
- !ruby/object:Gem::Version
|
110
122
|
version: '1.2'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: minitest-rails
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '6.1'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '6.1'
|
125
123
|
- !ruby/object:Gem::Dependency
|
126
124
|
name: minitest-reporters
|
127
125
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,14 +210,14 @@ dependencies:
|
|
212
210
|
requirements:
|
213
211
|
- - "~>"
|
214
212
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
213
|
+
version: '4.1'
|
216
214
|
type: :development
|
217
215
|
prerelease: false
|
218
216
|
version_requirements: !ruby/object:Gem::Requirement
|
219
217
|
requirements:
|
220
218
|
- - "~>"
|
221
219
|
- !ruby/object:Gem::Version
|
222
|
-
version: '
|
220
|
+
version: '4.1'
|
223
221
|
- !ruby/object:Gem::Dependency
|
224
222
|
name: simplecov
|
225
223
|
requirement: !ruby/object:Gem::Requirement
|
@@ -234,20 +232,6 @@ dependencies:
|
|
234
232
|
- - "~>"
|
235
233
|
- !ruby/object:Gem::Version
|
236
234
|
version: '0.21'
|
237
|
-
- !ruby/object:Gem::Dependency
|
238
|
-
name: spina-upgrade
|
239
|
-
requirement: !ruby/object:Gem::Requirement
|
240
|
-
requirements:
|
241
|
-
- - ">="
|
242
|
-
- !ruby/object:Gem::Version
|
243
|
-
version: '0'
|
244
|
-
type: :development
|
245
|
-
prerelease: false
|
246
|
-
version_requirements: !ruby/object:Gem::Requirement
|
247
|
-
requirements:
|
248
|
-
- - ">="
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version: '0'
|
251
235
|
- !ruby/object:Gem::Dependency
|
252
236
|
name: yard
|
253
237
|
requirement: !ruby/object:Gem::Requirement
|
@@ -273,8 +257,23 @@ files:
|
|
273
257
|
- README.md
|
274
258
|
- Rakefile
|
275
259
|
- app/assets/config/spina_admin_journal_manifest.js
|
276
|
-
- app/assets/javascripts/spina/admin/journal/application.
|
260
|
+
- app/assets/javascripts/spina/admin/journal/application.js
|
277
261
|
- app/assets/stylesheets/spina/admin/journal/application.css
|
262
|
+
- app/components/spina/admin/journal/affiliations_list_component.rb
|
263
|
+
- app/components/spina/admin/journal/application_component.rb
|
264
|
+
- app/components/spina/admin/journal/articles_list_component.rb
|
265
|
+
- app/components/spina/admin/journal/authors_list_component.rb
|
266
|
+
- app/components/spina/admin/journal/authorships_list_component.rb
|
267
|
+
- app/components/spina/admin/journal/empty_list_component.html.haml
|
268
|
+
- app/components/spina/admin/journal/empty_list_component.rb
|
269
|
+
- app/components/spina/admin/journal/institutions_list_component.rb
|
270
|
+
- app/components/spina/admin/journal/issues_list_component.rb
|
271
|
+
- app/components/spina/admin/journal/licences_list_component.rb
|
272
|
+
- app/components/spina/admin/journal/list_component.html.haml
|
273
|
+
- app/components/spina/admin/journal/list_component.rb
|
274
|
+
- app/components/spina/admin/journal/list_item_component.html.haml
|
275
|
+
- app/components/spina/admin/journal/list_item_component.rb
|
276
|
+
- app/components/spina/admin/journal/volumes_list_component.rb
|
278
277
|
- app/controllers/spina/admin/journal/application_controller.rb
|
279
278
|
- app/controllers/spina/admin/journal/articles_controller.rb
|
280
279
|
- app/controllers/spina/admin/journal/authors_controller.rb
|
@@ -295,26 +294,15 @@ files:
|
|
295
294
|
- app/models/spina/admin/journal/volume.rb
|
296
295
|
- app/models/spina/parts/admin/journal/page_range.rb
|
297
296
|
- app/validators/spina/admin/journal/uri_validator.rb
|
298
|
-
- app/views/layouts/spina/admin/journal/articles.html.haml
|
299
|
-
- app/views/layouts/spina/admin/journal/authors.html.haml
|
300
|
-
- app/views/layouts/spina/admin/journal/institutions.html.haml
|
301
|
-
- app/views/layouts/spina/admin/journal/issues.html.haml
|
302
|
-
- app/views/layouts/spina/admin/journal/journals.html.haml
|
303
|
-
- app/views/layouts/spina/admin/journal/licences.html.haml
|
304
|
-
- app/views/layouts/spina/admin/journal/volumes.html.haml
|
305
297
|
- app/views/spina/admin/hooks/journal/_head.html.haml
|
306
298
|
- app/views/spina/admin/hooks/journal/_primary_navigation.html.haml
|
307
299
|
- app/views/spina/admin/hooks/journal/_website_secondary_navigation.html.haml
|
308
|
-
- app/views/spina/admin/journal/affiliations/_affiliation.html.haml
|
309
|
-
- app/views/spina/admin/journal/application/_empty_list.html.haml
|
310
|
-
- app/views/spina/admin/journal/articles/_article.html.haml
|
311
300
|
- app/views/spina/admin/journal/articles/_form.html.haml
|
312
301
|
- app/views/spina/admin/journal/articles/_form_authors.html.haml
|
313
302
|
- app/views/spina/admin/journal/articles/_form_details.html.haml
|
314
303
|
- app/views/spina/admin/journal/articles/edit.html.haml
|
315
304
|
- app/views/spina/admin/journal/articles/index.html.haml
|
316
305
|
- app/views/spina/admin/journal/articles/new.html.haml
|
317
|
-
- app/views/spina/admin/journal/authors/_author.html.haml
|
318
306
|
- app/views/spina/admin/journal/authors/_form.html.haml
|
319
307
|
- app/views/spina/admin/journal/authors/_form_affiliation.html.haml
|
320
308
|
- app/views/spina/admin/journal/authors/_form_articles.html.haml
|
@@ -322,34 +310,28 @@ files:
|
|
322
310
|
- app/views/spina/admin/journal/authors/edit.html.haml
|
323
311
|
- app/views/spina/admin/journal/authors/index.html.haml
|
324
312
|
- app/views/spina/admin/journal/authors/new.html.haml
|
325
|
-
- app/views/spina/admin/journal/authorships/_authorship.html.haml
|
326
313
|
- app/views/spina/admin/journal/institutions/_form.html.haml
|
327
314
|
- app/views/spina/admin/journal/institutions/_form_details.html.haml
|
328
315
|
- app/views/spina/admin/journal/institutions/_form_view_affiliations.html.haml
|
329
|
-
- app/views/spina/admin/journal/institutions/_institution.html.haml
|
330
316
|
- app/views/spina/admin/journal/institutions/edit.html.haml
|
331
317
|
- app/views/spina/admin/journal/institutions/index.html.haml
|
332
318
|
- app/views/spina/admin/journal/institutions/new.html.haml
|
333
319
|
- app/views/spina/admin/journal/issues/_form.html.haml
|
334
320
|
- app/views/spina/admin/journal/issues/_form_articles.html.haml
|
335
321
|
- app/views/spina/admin/journal/issues/_form_details.html.haml
|
336
|
-
- app/views/spina/admin/journal/issues/_issue.html.haml
|
337
322
|
- app/views/spina/admin/journal/issues/edit.html.haml
|
338
323
|
- app/views/spina/admin/journal/issues/index.html.haml
|
339
324
|
- app/views/spina/admin/journal/issues/new.html.haml
|
340
325
|
- app/views/spina/admin/journal/journals/_form.html.haml
|
341
326
|
- app/views/spina/admin/journal/journals/edit.html.haml
|
342
|
-
- app/views/spina/admin/journal/journals/index.html.haml
|
343
327
|
- app/views/spina/admin/journal/journals/new.html.haml
|
344
328
|
- app/views/spina/admin/journal/licences/_form.html.haml
|
345
|
-
- app/views/spina/admin/journal/licences/_licence.html.haml
|
346
329
|
- app/views/spina/admin/journal/licences/edit.html.haml
|
347
330
|
- app/views/spina/admin/journal/licences/index.html.haml
|
348
331
|
- app/views/spina/admin/journal/licences/new.html.haml
|
349
332
|
- app/views/spina/admin/journal/volumes/_form.html.haml
|
350
333
|
- app/views/spina/admin/journal/volumes/_form_details.html.haml
|
351
334
|
- app/views/spina/admin/journal/volumes/_form_issues.html.haml
|
352
|
-
- app/views/spina/admin/journal/volumes/_volume.html.haml
|
353
335
|
- app/views/spina/admin/journal/volumes/edit.html.haml
|
354
336
|
- app/views/spina/admin/journal/volumes/index.html.haml
|
355
337
|
- app/views/spina/admin/journal/volumes/new.html.haml
|
@@ -377,11 +359,11 @@ files:
|
|
377
359
|
- lib/spina/admin/journal/engine.rb
|
378
360
|
- lib/spina/admin/journal/version.rb
|
379
361
|
- lib/tasks/spina/admin/journal_tasks.rake
|
380
|
-
- vendor/assets/javascripts/spina/admin/journal/html5sortable.js
|
381
362
|
homepage: https://github.com/louis-vs/spina-admin-journal
|
382
363
|
licenses:
|
383
364
|
- MIT
|
384
|
-
metadata:
|
365
|
+
metadata:
|
366
|
+
rubygems_mfa_required: 'true'
|
385
367
|
post_install_message:
|
386
368
|
rdoc_options: []
|
387
369
|
require_paths:
|
@@ -393,9 +375,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
393
375
|
version: '2.7'
|
394
376
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
395
377
|
requirements:
|
396
|
-
- - "
|
378
|
+
- - ">"
|
397
379
|
- !ruby/object:Gem::Version
|
398
|
-
version:
|
380
|
+
version: 1.3.1
|
399
381
|
requirements: []
|
400
382
|
rubygems_version: 3.1.6
|
401
383
|
signing_key:
|
@@ -1,72 +0,0 @@
|
|
1
|
-
//= require spina/admin/journal/html5sortable
|
2
|
-
/* global sortable */
|
3
|
-
|
4
|
-
$(document).on('turbolinks:load', () => {
|
5
|
-
// html5sortable configuration
|
6
|
-
sortable('.html5sortable', {
|
7
|
-
items: 'tr',
|
8
|
-
itemSerializer: (serializedItem) => {
|
9
|
-
return {
|
10
|
-
position: serializedItem.index + 1,
|
11
|
-
id: serializedItem.node.getAttribute('data-id')
|
12
|
-
};
|
13
|
-
},
|
14
|
-
containerSerializer: (serializedContainer) => {
|
15
|
-
return {
|
16
|
-
name: serializedContainer.node.getAttribute('data-sorted-collection')
|
17
|
-
};
|
18
|
-
}
|
19
|
-
});
|
20
|
-
|
21
|
-
// add sorting event listener if there is a sortable container on the page
|
22
|
-
if(typeof sortable('.html5sortable')[0] !== 'undefined') {
|
23
|
-
sortable('.html5sortable')[0].addEventListener('sortupdate', e => {
|
24
|
-
let container = e.detail.destination.container;
|
25
|
-
let serialized = sortable('.html5sortable', 'serialize')[0];
|
26
|
-
let data = serialized.items.reduce((map, obj) => {
|
27
|
-
map[`${serialized.container.name}[list[${obj.id}]]`] = obj.position;
|
28
|
-
return map;
|
29
|
-
}, {});
|
30
|
-
|
31
|
-
let displayError = (...args) => {
|
32
|
-
let message = 'An unknown error occured.'; // not translateable (but should never happen)
|
33
|
-
if(typeof args[0] === 'string') {
|
34
|
-
message = args[0];
|
35
|
-
}
|
36
|
-
// display error message
|
37
|
-
$('.sort-message').html('');
|
38
|
-
$('.sort-message').removeClass('animate-fadein success');
|
39
|
-
$('.sort-message').width(); // trigger reflow
|
40
|
-
$('.sort-message').html(message).addClass('error animate-fadein');
|
41
|
-
// TODO: return element to its origin
|
42
|
-
// this needs to be done manually, but may not really be necessary since the displayed
|
43
|
-
// numbers won't change
|
44
|
-
};
|
45
|
-
|
46
|
-
// send sort request
|
47
|
-
$.ajax({
|
48
|
-
url: $('.html5sortable').eq(0).data('sort-url'),
|
49
|
-
type: 'PATCH',
|
50
|
-
dataType: 'json',
|
51
|
-
data: data,
|
52
|
-
success: (data) => {
|
53
|
-
if(data.success) {
|
54
|
-
// display success message
|
55
|
-
$('.sort-message').html(''); // clear message
|
56
|
-
$('.sort-message').removeClass('animate-fadein error');
|
57
|
-
$('.sort-message').width(); // trigger reflow (for animation to work)
|
58
|
-
$('.sort-message').html(data.message).addClass('success animate-fadein');
|
59
|
-
// update displayed position number
|
60
|
-
// NB this is done entirely clientside, so there is the potential for desync
|
61
|
-
for(let i = 0; i < container.children.length; i++) {
|
62
|
-
container.children[i].getElementsByClassName('position-display')[0].innerHTML = (i+1).toString();
|
63
|
-
}
|
64
|
-
} else {
|
65
|
-
displayError(data.message);
|
66
|
-
}
|
67
|
-
},
|
68
|
-
error: displayError
|
69
|
-
});
|
70
|
-
});
|
71
|
-
}
|
72
|
-
});
|
@@ -1,8 +0,0 @@
|
|
1
|
-
%tr{ data: { id: affiliation.id } }
|
2
|
-
%td= affiliation.name
|
3
|
-
%td= affiliation.institution.name
|
4
|
-
%td= affiliation.articles.count
|
5
|
-
%td.nowrap.align-right
|
6
|
-
= link_to edit_admin_journal_author_path(affiliation.author.id), class: 'button button-link' do
|
7
|
-
= icon 'pencil-outline'
|
8
|
-
= t '.view'
|
@@ -1,10 +0,0 @@
|
|
1
|
-
%tr{ data: { id: article.id } }
|
2
|
-
%td= article.issue.volume.number
|
3
|
-
%td= article.issue.number
|
4
|
-
%td.position-display= article.number
|
5
|
-
%td= time_tag article.issue.date, format: :iso8601
|
6
|
-
%td= article.title
|
7
|
-
%td.nowrap.align-right
|
8
|
-
= link_to edit_admin_journal_article_path(article.id), class: 'button button-link' do
|
9
|
-
= icon 'pencil-outline'
|
10
|
-
= t '.view'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
%tr{ data: { id: author.id } }
|
2
|
-
%td= author.primary_affiliation.name
|
3
|
-
%td= author.primary_affiliation.institution.nil? ? '' : author.primary_affiliation.institution.name
|
4
|
-
%td= author.articles.count
|
5
|
-
%td.nowrap.align-right
|
6
|
-
= link_to edit_admin_journal_author_path(author.id), class: 'button button-link' do
|
7
|
-
= icon 'pencil-outline'
|
8
|
-
= t '.view'
|
@@ -1,9 +0,0 @@
|
|
1
|
-
%tr{ data: { id: authorship.id } }
|
2
|
-
%td.position-display= authorship.position
|
3
|
-
%td= authorship.affiliation.name
|
4
|
-
%td= authorship.affiliation.institution.name
|
5
|
-
%td= authorship.affiliation.articles.count
|
6
|
-
%td.nowrap.align-right
|
7
|
-
= link_to edit_admin_journal_author_path(authorship.affiliation.author.id), class: 'button button-link' do
|
8
|
-
= icon 'pencil-outline'
|
9
|
-
= t '.view'
|
@@ -1,9 +0,0 @@
|
|
1
|
-
%tr{ data: { id: institution.id } }
|
2
|
-
%td
|
3
|
-
= link_to institution.name, edit_admin_journal_institution_path(institution)
|
4
|
-
%td
|
5
|
-
= institution.affiliations.count
|
6
|
-
%td.nowrap.align-right
|
7
|
-
= link_to edit_admin_journal_institution_path(institution), class: 'button button-link' do
|
8
|
-
= icon 'pencil-outline'
|
9
|
-
= t '.edit'
|
@@ -1,9 +0,0 @@
|
|
1
|
-
%tr{ data: { id: issue.id } }
|
2
|
-
%td= issue.volume.number
|
3
|
-
%td.position-display= issue.number
|
4
|
-
%td= issue.title
|
5
|
-
%td= time_tag issue.date, format: :iso8601
|
6
|
-
%td.nowrap.align-right
|
7
|
-
= link_to edit_admin_journal_issue_path(issue.id), class: 'button button-link' do
|
8
|
-
= icon 'pencil-outline'
|
9
|
-
= t '.view'
|
@@ -1,27 +0,0 @@
|
|
1
|
-
- content_for :header_actions do
|
2
|
-
= link_to new_admin_journal_journal_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
3
|
-
= icon 'plus'
|
4
|
-
= t '.new'
|
5
|
-
|
6
|
-
.well
|
7
|
-
.table-container
|
8
|
-
%table.table
|
9
|
-
%thead
|
10
|
-
%tr
|
11
|
-
%th= ::Spina::Admin::Journal::Journal.human_attribute_name :name
|
12
|
-
%th
|
13
|
-
|
14
|
-
%tbody
|
15
|
-
- if @journals.any?
|
16
|
-
- @journals.each do |journal|
|
17
|
-
%tr
|
18
|
-
%td
|
19
|
-
= journal.name
|
20
|
-
%td.nowrap.align-right
|
21
|
-
= link_to spina.edit_admin_journal_journal_path(journal), class: %w[button button-link] do
|
22
|
-
= icon 'pencil-outline'
|
23
|
-
|
24
|
-
- else
|
25
|
-
%tr
|
26
|
-
%td.align-center{colspan: 2}
|
27
|
-
%em= t '.no_journals'
|
@@ -1,11 +0,0 @@
|
|
1
|
-
%tr{ data: { id: licence.id } }
|
2
|
-
%td
|
3
|
-
= link_to licence.name, edit_admin_journal_licence_path(licence)
|
4
|
-
%td
|
5
|
-
= licence.abbreviated_name
|
6
|
-
%td
|
7
|
-
= licence.articles.count
|
8
|
-
%td.nowrap.align-right
|
9
|
-
= link_to edit_admin_journal_licence_path(licence), class: 'button button-link' do
|
10
|
-
= icon 'pencil-outline'
|
11
|
-
= t '.edit'
|
@@ -1,7 +0,0 @@
|
|
1
|
-
%tr{ data: { id: volume.id } }
|
2
|
-
%td.position-display= volume.number
|
3
|
-
%td= volume.issues.any? ? time_tag(volume.issues.first.date, format: :year) : t('.no_date')
|
4
|
-
%td.nowrap.align-right
|
5
|
-
= link_to edit_admin_journal_volume_path(volume.id), class: 'button button-link' do
|
6
|
-
= icon 'pencil-outline'
|
7
|
-
= t '.view'
|