elabs 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +9 -0
- data/.node-version +1 -1
- data/.rubocop.yml +4 -0
- data/.stylelintrc.yml +12 -2
- data/CHANGELOG.md +81 -12
- data/Gemfile +1 -1
- data/Gemfile.lock +96 -94
- data/README.md +2 -0
- data/ROADMAP.md +4 -2
- data/app/assets/config/elabs_manifest.js +2 -1
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.eot +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.svg +1148 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.ttf +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.woff +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.woff2 +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.eot +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.svg +467 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.ttf +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.woff +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.woff2 +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.eot +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.svg +2231 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.ttf +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.woff +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.woff2 +0 -0
- data/app/assets/fonts/elabs/OpenSans/Apache License.txt +201 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Bold.ttf +0 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Light.ttf +0 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Regular.ttf +0 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Semibold.ttf +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.eot +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.svg +51 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.ttf +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.woff +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.woff2 +0 -0
- data/app/assets/images/elabs/preview_placeholder.png +0 -0
- data/app/assets/images/elabs/preview_placeholder_nsfw.png +0 -0
- data/app/assets/javascripts/elabs/announcements.js +33 -0
- data/app/assets/javascripts/elabs/application.js.erb +17 -14
- data/app/assets/javascripts/elabs/forms.js +0 -1
- data/app/assets/javascripts/elabs/helpers-markdown.js +2 -2
- data/app/assets/javascripts/elabs/helpers.js +17 -0
- data/app/assets/javascripts/elabs/menu.js +5 -0
- data/app/assets/stylesheets/elabs/_fonts.scss +32 -0
- data/app/assets/stylesheets/elabs/_variables.scss +286 -5
- data/app/assets/stylesheets/elabs/app/components/_act.scss +83 -0
- data/app/assets/stylesheets/elabs/app/components/_announcement.scss +41 -0
- data/app/assets/stylesheets/elabs/app/components/_classifier_types.scss +43 -0
- data/app/assets/stylesheets/elabs/app/components/_comment.scss +29 -0
- data/app/assets/stylesheets/elabs/app/components/_content_relations.scss +53 -0
- data/app/assets/stylesheets/elabs/app/components/_content_statuses.scss +39 -0
- data/app/assets/stylesheets/elabs/app/components/_content_types.scss +41 -0
- data/app/assets/stylesheets/elabs/app/components/_git_cards.scss +122 -0
- data/app/assets/stylesheets/elabs/app/elements/_alerts.scss +3 -0
- data/app/assets/stylesheets/elabs/app/elements/_badges.scss +17 -0
- data/app/assets/stylesheets/elabs/app/elements/_buttons.scss +34 -0
- data/app/assets/stylesheets/elabs/app/elements/_dropdowns.scss +78 -0
- data/app/assets/stylesheets/elabs/app/elements/_empty.scss +31 -0
- data/app/assets/stylesheets/elabs/app/elements/_errors.scss +15 -0
- data/app/assets/stylesheets/elabs/app/elements/_filter_link.scss +23 -0
- data/app/assets/stylesheets/elabs/app/elements/_fixed_links.scss +19 -0
- data/app/assets/stylesheets/elabs/app/elements/_forms.scss +123 -0
- data/app/assets/stylesheets/elabs/app/elements/_icons.scss +74 -0
- data/app/assets/stylesheets/elabs/app/{_medias.scss → elements/_medias.scss} +2 -0
- data/app/assets/stylesheets/elabs/app/{_modals.scss → elements/_modals.scss} +8 -4
- data/app/assets/stylesheets/elabs/app/elements/_nsfw.scss +41 -0
- data/app/assets/stylesheets/elabs/app/{_pagination.scss → elements/_pagination.scss} +0 -0
- data/app/assets/stylesheets/elabs/app/{_tables.scss → elements/_tables.scss} +2 -2
- data/app/assets/stylesheets/elabs/app/elements/_tabs.scss +73 -0
- data/app/assets/stylesheets/elabs/app/helpers/_cards.scss +80 -0
- data/app/assets/stylesheets/elabs/app/helpers/_containers.scss +7 -0
- data/app/assets/stylesheets/elabs/app/helpers/_states.scss +3 -0
- data/app/assets/stylesheets/elabs/app/{_helpers.scss → helpers/_typo.scss} +6 -4
- data/app/assets/stylesheets/elabs/app/layouts/_acts.scss +25 -0
- data/app/assets/stylesheets/elabs/app/layouts/_classifiers.scss +32 -0
- data/app/assets/stylesheets/elabs/app/{_comments.scss → layouts/_comments.scss} +0 -2
- data/app/assets/stylesheets/elabs/app/layouts/_devise.scss +65 -0
- data/app/assets/stylesheets/elabs/app/layouts/_layout.scss +40 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page.scss +14 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_content.scss +13 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_footer.scss +20 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_header.scss +146 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_menu.scss +232 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_messages.scss +4 -0
- data/app/assets/stylesheets/elabs/app/layouts/_private_layout.scss +78 -0
- data/app/assets/stylesheets/elabs/app/{_typo.scss → layouts/_typo.scss} +3 -0
- data/app/assets/stylesheets/elabs/app/mixins/_classifier_card.scss +43 -0
- data/app/assets/stylesheets/elabs/app/mixins/_content_card.scss +103 -0
- data/app/assets/stylesheets/elabs/app/mixins/_content_full.scss +158 -0
- data/app/assets/stylesheets/elabs/app/mixins/{_content-inline.scss → _content_inline.scss} +0 -0
- data/app/assets/stylesheets/elabs/lib/_codemirror.scss +2 -2
- data/app/assets/stylesheets/elabs/{_colors.scss → lib/_colors_reference.scss} +0 -52
- data/app/assets/stylesheets/elabs/lib/_license_icons.scss +121 -0
- data/app/assets/stylesheets/elabs/lib/fontawesome/_fontawesome.scss +1 -1
- data/app/assets/stylesheets/elabs/lib/fontawesome/_fonts.scss +18 -18
- data/app/assets/stylesheets/elabs/lib/knacss/_knacss.scss +1 -1
- data/app/assets/stylesheets/elabs/lib/knacss/_knacss_variables.scss +227 -0
- data/app/assets/stylesheets/elabs/style.scss +62 -57
- data/app/controllers/elabs/admin/admin_application_controller.rb +1 -1
- data/app/controllers/elabs/admin/announcements_controller.rb +71 -0
- data/app/controllers/elabs/concerns/elabs_controller.rb +3 -0
- data/app/controllers/elabs/content_application_controller.rb +4 -0
- data/app/controllers/elabs/elabs_public_controller.rb +15 -0
- data/app/controllers/elabs/languages_controller.rb +1 -5
- data/app/controllers/elabs/member/comments_controller.rb +42 -0
- data/app/controllers/elabs/member/member_application_controller.rb +1 -1
- data/app/controllers/elabs/reports_controller.rb +2 -0
- data/app/helpers/elabs/acts_helper.rb +7 -2
- data/app/helpers/elabs/application_helper.rb +8 -50
- data/app/helpers/elabs/content_filters_helper.rb +17 -24
- data/app/helpers/elabs/content_helper.rb +8 -35
- data/app/helpers/elabs/content_renderer_helper.rb +4 -112
- data/app/helpers/elabs/form_helper.rb +11 -11
- data/app/helpers/elabs/icons_helper.rb +63 -0
- data/app/helpers/elabs/{admin_content_helper.rb → links_admin_helper.rb} +1 -1
- data/app/helpers/elabs/links_helper.rb +58 -0
- data/app/helpers/elabs/{member_content_helper.rb → links_member_helper.rb} +2 -2
- data/app/helpers/elabs/notification_helper.rb +17 -3
- data/app/helpers/elabs/shortcodes_helper.rb +108 -0
- data/app/helpers/elabs/thumbnails_helper.rb +1 -1
- data/app/models/elabs/album.rb +14 -0
- data/app/models/elabs/announcement.rb +33 -0
- data/app/models/elabs/article.rb +14 -0
- data/app/models/elabs/comment.rb +10 -4
- data/app/models/elabs/note.rb +14 -0
- data/app/models/elabs/project.rb +12 -0
- data/app/models/elabs/report.rb +1 -0
- data/app/models/elabs/upload.rb +16 -0
- data/app/models/elabs/user.rb +2 -1
- data/app/views/elabs/acts/_filters.html.haml +3 -2
- data/app/views/elabs/acts/index.html.haml +2 -13
- data/app/views/elabs/admin/announcements/_announcement.json.jbuilder +10 -0
- data/app/views/elabs/admin/announcements/_form.html.haml +52 -0
- data/app/views/elabs/admin/announcements/edit.html.haml +3 -0
- data/app/views/elabs/admin/announcements/index.html.haml +28 -0
- data/app/views/elabs/admin/announcements/index.json.jbuilder +1 -0
- data/app/views/elabs/admin/announcements/new.html.haml +3 -0
- data/app/views/elabs/admin/licenses/index.html.haml +2 -2
- data/app/views/elabs/admin/uploads/_upload.json.jbuilder +3 -3
- data/app/views/elabs/albums/_card_content.html.haml +8 -0
- data/app/views/elabs/albums/_filters.html.haml +5 -3
- data/app/views/elabs/albums/index.html.haml +1 -1
- data/app/views/elabs/albums/show.html.haml +38 -29
- data/app/views/elabs/articles/_filters.html.haml +5 -3
- data/app/views/elabs/articles/index.html.haml +1 -1
- data/app/views/elabs/articles/show.html.haml +33 -25
- data/app/views/elabs/auth/confirmations/new.html.haml +1 -1
- data/app/views/elabs/auth/passwords/edit.html.haml +1 -1
- data/app/views/elabs/auth/passwords/new.html.haml +1 -1
- data/app/views/elabs/auth/registrations/new.html.haml +7 -2
- data/app/views/elabs/auth/sessions/_new.html.haml +1 -1
- data/app/views/elabs/auth/unlocks/new.html.haml +1 -1
- data/app/views/elabs/comments/_comments.html.haml +29 -20
- data/app/views/elabs/comments/_form.html.haml +40 -36
- data/app/views/elabs/languages/_filters.html.haml +3 -5
- data/app/views/elabs/languages/index.html.haml +12 -13
- data/app/views/elabs/languages/show.html.haml +36 -31
- data/app/views/elabs/layouts/_announcements.html.haml +9 -0
- data/app/views/elabs/layouts/_content_associations.html.haml +89 -0
- data/app/views/elabs/layouts/_content_card.html.haml +41 -0
- data/app/views/elabs/layouts/_flash_messages.html.haml +4 -0
- data/app/views/elabs/layouts/_footer.html.haml +18 -10
- data/app/views/elabs/layouts/_form_honeypot.html.haml +12 -0
- data/app/views/elabs/layouts/_hidden_entry.html.haml +1 -1
- data/app/views/elabs/layouts/_hidden_entry_full.html.haml +4 -2
- data/app/views/elabs/layouts/_hidden_entry_inline.html.haml +1 -1
- data/app/views/elabs/layouts/_language_menu.html.haml +2 -2
- data/app/views/elabs/layouts/_menu.html.haml +58 -75
- data/app/views/elabs/layouts/_menu_admin.html.haml +40 -0
- data/app/views/elabs/layouts/_menu_member.html.haml +57 -0
- data/app/views/elabs/layouts/application.html.haml +24 -13
- data/app/views/elabs/layouts/application_admin.html.haml +33 -0
- data/app/views/elabs/layouts/application_member.html.haml +36 -0
- data/app/views/elabs/layouts/{lists → content_classifiers_lists}/_albums.html.haml +0 -0
- data/app/views/elabs/layouts/{lists → content_classifiers_lists}/_projects.html.haml +0 -0
- data/app/views/elabs/layouts/{lists → content_classifiers_lists}/_tags.html.haml +0 -0
- data/app/views/elabs/layouts/{_shortcode_infinite_loop.html.haml → shortcodes/_infinite_loop.html.haml} +1 -1
- data/app/views/elabs/layouts/{_shortcode_infinite_loop_inline.html.haml → shortcodes/_infinite_loop_inline.html.haml} +0 -0
- data/app/views/elabs/layouts/{_shortcode_missing_content.html.haml → shortcodes/_missing_content.html.haml} +1 -1
- data/app/views/elabs/layouts/{_shortcode_missing_content_inline.html.haml → shortcodes/_missing_content_inline.html.haml} +0 -0
- data/app/views/elabs/layouts/shortcodes/_open_to_see.html.haml +2 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_github_repo_card.html.haml +1 -1
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_github_repo_inline.html.haml +0 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_github_user_card.html.haml +0 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_group_card.html.haml +1 -1
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_repo_card.html.haml +1 -1
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_repo_inline.html.haml +0 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_user_card.html.haml +1 -1
- data/app/views/elabs/layouts/shortcodes/widgets/vue/_all_widgets.html.haml +5 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_github_repo_card_vue.html.haml +8 -8
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_github_user_card_vue.html.haml +5 -5
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_gitlab_group_card_vue.html.haml +5 -5
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_gitlab_repo_card_vue.html.haml +8 -8
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_gitlab_user_card_vue.html.haml +4 -4
- data/app/views/elabs/licenses/_filters.html.haml +3 -2
- data/app/views/elabs/licenses/index.html.haml +14 -12
- data/app/views/elabs/licenses/show.html.haml +40 -34
- data/app/views/elabs/member/albums/_form.html.haml +1 -43
- data/app/views/elabs/member/articles/_form.html.haml +1 -39
- data/app/views/elabs/member/layouts/_form_commons.html.haml +55 -0
- data/app/views/elabs/member/notes/_form.html.haml +1 -39
- data/app/views/elabs/member/preferences/edit.html.haml +1 -2
- data/app/views/elabs/member/projects/_form.html.haml +3 -38
- data/app/views/elabs/member/uploads/_form.html.haml +1 -42
- data/app/views/elabs/member/uploads/_upload.json.jbuilder +3 -3
- data/app/views/elabs/member/users/edit.html.haml +3 -4
- data/app/views/elabs/notes/_filters.html.haml +5 -3
- data/app/views/elabs/notes/index.html.haml +1 -1
- data/app/views/elabs/notes/show.html.haml +33 -25
- data/app/views/elabs/projects/_filters.html.haml +5 -3
- data/app/views/elabs/projects/index.html.haml +1 -1
- data/app/views/elabs/projects/show.html.haml +68 -62
- data/app/views/elabs/reports/_form.html.haml +2 -0
- data/app/views/elabs/tags/_filters.html.haml +3 -2
- data/app/views/elabs/tags/index.html.haml +11 -11
- data/app/views/elabs/tags/show.html.haml +31 -28
- data/app/views/elabs/uploads/_filters.html.haml +5 -3
- data/app/views/elabs/uploads/_preview.html.haml +5 -4
- data/app/views/elabs/uploads/_thumbnail.html.haml +9 -0
- data/app/views/elabs/uploads/_upload.json.jbuilder +3 -3
- data/app/views/elabs/uploads/index.html.haml +1 -1
- data/app/views/elabs/uploads/show.html.haml +45 -39
- data/app/views/elabs/users/_filters.html.haml +3 -2
- data/app/views/elabs/users/_user.html.haml +3 -3
- data/app/views/elabs/users/show.html.haml +48 -43
- data/config/routes.rb +13 -8
- data/db/migrate/20181025084232_add_archived_field_to_comments.rb +5 -0
- data/db/migrate/20181026071743_delete_comment_notifications.rb +5 -0
- data/db/migrate/20181030063505_create_announcements.rb +14 -0
- data/docs/CODEOWNERS +10 -0
- data/docs/migrating.md +16 -1
- data/docs/shortcodes_guide.md +51 -0
- data/lib/assets/javascripts/README-highlight.js.md +5 -5
- data/lib/assets/javascripts/highlight.js-9.13.1/highlight.pack.js +2 -0
- data/lib/assets/stylesheets/{highlight.js-9.12.0 → highlight.js-9.13.1}/styles/atelier-sulphurpool-light.css +0 -0
- data/lib/elabs.rb +8 -0
- data/lib/elabs/version.rb +1 -1
- data/lib/generators/elabs/{devise_views_generator.rb → devise_mailer_views_generator.rb} +2 -2
- data/lib/generators/elabs/images_generator.rb +24 -0
- data/lib/generators/elabs/required_assets_generator.rb +0 -2
- data/lib/generators/templates/elabs.rb +3 -0
- data/locale/app.pot +132 -19
- data/locale/en/app.edit.po +130 -17
- data/locale/en/app.po +130 -17
- data/locale/fr/app.edit.po +145 -28
- data/locale/fr/app.po +141 -27
- data/package.json +10 -12
- data/yarn.lock +885 -668
- metadata +136 -97
- data/app/assets/stylesheets/elabs/_icons.scss +0 -17
- data/app/assets/stylesheets/elabs/app/_acts.scss +0 -69
- data/app/assets/stylesheets/elabs/app/_alerts.scss +0 -3
- data/app/assets/stylesheets/elabs/app/_badges.scss +0 -11
- data/app/assets/stylesheets/elabs/app/_buttons.scss +0 -29
- data/app/assets/stylesheets/elabs/app/_content.scss +0 -25
- data/app/assets/stylesheets/elabs/app/_content_statuses.scss +0 -32
- data/app/assets/stylesheets/elabs/app/_content_uploads.scss +0 -39
- data/app/assets/stylesheets/elabs/app/_empty.scss +0 -19
- data/app/assets/stylesheets/elabs/app/_errors.scss +0 -9
- data/app/assets/stylesheets/elabs/app/_filter_links.scss +0 -27
- data/app/assets/stylesheets/elabs/app/_forms.scss +0 -74
- data/app/assets/stylesheets/elabs/app/_languages.scss +0 -6
- data/app/assets/stylesheets/elabs/app/_layout.scss +0 -206
- data/app/assets/stylesheets/elabs/app/_licenses.scss +0 -6
- data/app/assets/stylesheets/elabs/app/_link-to-top.scss +0 -8
- data/app/assets/stylesheets/elabs/app/_tabs.scss +0 -54
- data/app/assets/stylesheets/elabs/app/_tags.scss +0 -6
- data/app/assets/stylesheets/elabs/app/_toolbars.scss +0 -3
- data/app/assets/stylesheets/elabs/app/_users.scss +0 -21
- data/app/assets/stylesheets/elabs/app/admin-members/_forms.scss +0 -13
- data/app/assets/stylesheets/elabs/app/admin-members/_indexes.scss +0 -46
- data/app/assets/stylesheets/elabs/app/admin-members/_layout.scss +0 -17
- data/app/assets/stylesheets/elabs/app/areas/_devise.scss +0 -31
- data/app/assets/stylesheets/elabs/app/components/_cards.scss +0 -16
- data/app/assets/stylesheets/elabs/app/components/_container.scss +0 -4
- data/app/assets/stylesheets/elabs/app/mixins/_classifier-card.scss +0 -16
- data/app/assets/stylesheets/elabs/app/mixins/_content-card.scss +0 -72
- data/app/assets/stylesheets/elabs/app/mixins/_content-full.scss +0 -77
- data/app/assets/stylesheets/elabs/app/widgets/_git-cards.scss +0 -88
- data/app/assets/stylesheets/elabs/lib/fontawesome/_icons.scss +0 -1118
- data/app/assets/stylesheets/elabs/lib/knacss/_knacss-variables.scss +0 -239
- data/app/views/elabs/albums/_album.html.haml +0 -38
- data/app/views/elabs/articles/_article.html.haml +0 -30
- data/app/views/elabs/languages/_associations.html.haml +0 -61
- data/app/views/elabs/layouts/_shortcode_open_to_see.html.haml +0 -2
- data/app/views/elabs/layouts/admin_application.html.haml +0 -21
- data/app/views/elabs/layouts/member_application.html.haml +0 -24
- data/app/views/elabs/layouts/widgets/vue/_all_widgets.html.haml +0 -5
- data/app/views/elabs/licenses/_associations.html.haml +0 -61
- data/app/views/elabs/notes/_note.html.haml +0 -31
- data/app/views/elabs/projects/_associations.html.haml +0 -54
- data/app/views/elabs/projects/_project.html.haml +0 -29
- data/app/views/elabs/tags/_associations.html.haml +0 -61
- data/app/views/elabs/uploads/_upload.html.haml +0 -41
- data/app/views/elabs/users/_associations.html.haml +0 -61
- data/db/seeds.rb +0 -10
- data/db/seeds_development.rb +0 -21
- data/db/seeds_production.rb +0 -0
- data/lib/assets/javascripts/codemirror-5.39.2/addon/mode/overlay.js +0 -90
- data/lib/assets/javascripts/codemirror-5.39.2/lib/codemirror.js +0 -9684
- data/lib/assets/javascripts/codemirror-5.39.2/mode/clike/clike.js +0 -834
- data/lib/assets/javascripts/codemirror-5.39.2/mode/css/css.js +0 -832
- data/lib/assets/javascripts/codemirror-5.39.2/mode/gfm/gfm.js +0 -129
- data/lib/assets/javascripts/codemirror-5.39.2/mode/htmlmixed/htmlmixed.js +0 -152
- data/lib/assets/javascripts/codemirror-5.39.2/mode/javascript/javascript.js +0 -896
- data/lib/assets/javascripts/codemirror-5.39.2/mode/markdown/markdown.js +0 -882
- data/lib/assets/javascripts/codemirror-5.39.2/mode/meta.js +0 -217
- data/lib/assets/javascripts/codemirror-5.39.2/mode/xml/xml.js +0 -402
- data/lib/assets/javascripts/highlight.js-9.12.0/highlight.pack.js +0 -2
- data/lib/assets/stylesheets/codemirror-5.39.2/lib/codemirror.css +0 -346
- data/lib/assets/stylesheets/codemirror-5.39.2/theme/base16-dark.css +0 -38
- data/lib/assets/stylesheets/codemirror-5.39.2/theme/base16-light.css +0 -38
@@ -8,21 +8,21 @@
|
|
8
8
|
%header
|
9
9
|
.icon= icon 'tag', %w[2x fw]
|
10
10
|
.headers
|
11
|
-
%h3= link_to tag.name, tag
|
11
|
+
%h3.title= link_to tag.name, tag
|
12
12
|
|
13
13
|
.content
|
14
14
|
= link_to tag_projects_path(tag), class: 'btn btn--block' do
|
15
|
-
= icon 'cog'
|
16
|
-
= format(n_('%<nb>i project', '%<nb>i projects', tag.projects_count), nb: tag.projects_count)
|
15
|
+
= icon 'cog', %w[fw icon]
|
16
|
+
.text= format(n_('%<nb>i project', '%<nb>i projects', tag.projects_count), nb: tag.projects_count)
|
17
17
|
= link_to tag_articles_path(tag), class: 'btn btn--block' do
|
18
|
-
= icon 'font'
|
19
|
-
= format(n_('%<nb>i article', '%<nb>i articles', tag.articles_count), nb: tag.articles_count)
|
18
|
+
= icon 'font', %w[fw icon]
|
19
|
+
.text= format(n_('%<nb>i article', '%<nb>i articles', tag.articles_count), nb: tag.articles_count)
|
20
20
|
= link_to tag_notes_path(tag), class: 'btn btn--block' do
|
21
|
-
= icon 'sticky-note'
|
22
|
-
= format(n_('%<nb>i note', '%<nb>i notes', tag.notes_count), nb: tag.notes_count)
|
21
|
+
= icon 'sticky-note', %w[fw icon]
|
22
|
+
.text= format(n_('%<nb>i note', '%<nb>i notes', tag.notes_count), nb: tag.notes_count)
|
23
23
|
= link_to tag_uploads_path(tag), class: 'btn btn--block' do
|
24
|
-
= icon 'image'
|
25
|
-
= format(n_('%<nb>i upload', '%<nb>i uploads', tag.uploads_count), nb: tag.uploads_count)
|
24
|
+
= icon 'image', %w[fw icon]
|
25
|
+
.text= format(n_('%<nb>i upload', '%<nb>i uploads', tag.uploads_count), nb: tag.uploads_count)
|
26
26
|
= link_to tag_albums_path(tag), class: 'btn btn--block' do
|
27
|
-
= icon 'book'
|
28
|
-
= format(n_('%<nb>i album', '%<nb>i albums', tag.albums_count), nb: tag.albums_count)
|
27
|
+
= icon 'book', %w[fw icon]
|
28
|
+
.text= format(n_('%<nb>i album', '%<nb>i albums', tag.albums_count), nb: tag.albums_count)
|
@@ -1,34 +1,37 @@
|
|
1
1
|
- @page_title = @tag.name
|
2
2
|
|
3
3
|
.tag.tag--full
|
4
|
-
%aside
|
4
|
+
%aside.always--inline
|
5
5
|
%ul
|
6
|
-
%li
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
6
|
+
%li.separator
|
7
|
+
%ul
|
8
|
+
%li
|
9
|
+
= icon('amount', ['fw'])
|
10
|
+
%strong= _('Albums:')
|
11
|
+
= @tag.albums_count
|
12
|
+
%li
|
13
|
+
= icon('amount', ['fw'])
|
14
|
+
%strong= _('Articles:')
|
15
|
+
= @tag.articles_count
|
16
|
+
%li
|
17
|
+
= icon('amount', ['fw'])
|
18
|
+
%strong= _('Notes:')
|
19
|
+
= @tag.notes_count
|
20
|
+
%li
|
21
|
+
= icon('amount', ['fw'])
|
22
|
+
%strong= _('Projects:')
|
23
|
+
= @tag.projects_count
|
24
|
+
%li
|
25
|
+
= icon('amount', ['fw'])
|
26
|
+
%strong= _('Uploads:')
|
27
|
+
= @tag.uploads_count
|
26
28
|
|
27
29
|
.content
|
28
|
-
= render '
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
= render 'elabs/layouts/content_associations',
|
31
|
+
is_section: true,
|
32
|
+
entity: @tag,
|
33
|
+
albums: @tag_albums,
|
34
|
+
articles: @tag_articles,
|
35
|
+
notes: @tag_notes,
|
36
|
+
projects: @tag_projects,
|
37
|
+
uploads: @tag_uploads
|
@@ -1,7 +1,9 @@
|
|
1
|
-
.
|
2
|
-
.
|
1
|
+
.page__header__actions__filters
|
2
|
+
.page__header__actions__filters__group
|
3
|
+
.page__header__actions__filters__group__title= _('Sort by…')
|
3
4
|
= order_link _('Pub. date'), 'published_at'
|
4
5
|
= order_link _('Upd. date'), 'updated_at'
|
5
6
|
|
6
|
-
.
|
7
|
+
.page__header__actions__filters__group
|
8
|
+
.page__header__actions__filters__group__title= _('NSFW content')
|
7
9
|
= sfw_status_links
|
@@ -1,12 +1,13 @@
|
|
1
1
|
.upload__preview
|
2
2
|
.preview
|
3
|
+
.upload__title= upload.title
|
3
4
|
- if !show_item? upload
|
4
|
-
= image_tag 'preview_placeholder_nsfw.png'
|
5
|
+
= image_tag '/assets/elabs/preview_placeholder_nsfw.png', class: 'upload-object'
|
5
6
|
- else
|
6
7
|
= link_to upload_url(upload) do
|
7
|
-
= image_tag thumbnail_center_crop(upload.file)
|
8
|
+
= image_tag thumbnail_center_crop(upload.file), class: 'upload-object'
|
8
9
|
.content
|
9
|
-
|
10
|
-
= link_to main_app.url_for(upload.file), class: 'action' do
|
10
|
+
= link_to main_app.url_for(upload.file), class: 'btn btn--block btn--primary' do
|
11
11
|
%i.fa.fa-fw.fa-download
|
12
12
|
= _('Download')
|
13
|
+
(#{upload.file.content_type})
|
@@ -0,0 +1,9 @@
|
|
1
|
+
= link_to upload_url(upload) do
|
2
|
+
- if upload.file.variable?
|
3
|
+
= image_tag main_app.url_for(upload.file.variant(image_resize_properties).processed), class: 'upload-object'
|
4
|
+
- elsif playable? upload.file
|
5
|
+
= render 'elabs/uploads/player', file: upload.file
|
6
|
+
- elsif upload.file.previewable?
|
7
|
+
= image_tag main_app.url_for(upload.file.preview(image_resize_properties).processed), class: 'upload-object'
|
8
|
+
- else
|
9
|
+
= image_tag main_app.url_for(thumbnail_preview_placeholder_file), class: 'upload-object'
|
@@ -9,6 +9,6 @@ json.extract! upload, :id,
|
|
9
9
|
:created_at,
|
10
10
|
:updated_at
|
11
11
|
json.file content_type: upload.file.content_type,
|
12
|
-
url:
|
13
|
-
filename:
|
14
|
-
metadata:
|
12
|
+
url: main_app.url_for(upload.file),
|
13
|
+
filename: upload.file.filename,
|
14
|
+
metadata: upload.file.metadata
|
@@ -6,48 +6,54 @@
|
|
6
6
|
.upload.upload--full
|
7
7
|
%aside
|
8
8
|
%ul
|
9
|
-
%li
|
10
|
-
= icon('user', ['fw'])
|
11
|
-
%b= _('Author:')
|
12
|
-
= link_to @upload.user.display_name, @upload.user
|
13
|
-
%li
|
14
|
-
= icon('calendar-check', ['fw'])
|
15
|
-
%b= _('Published at:')
|
16
|
-
= medium_datetime @upload.published_at
|
17
|
-
%li
|
18
|
-
= icon('calendar', ['fw'])
|
19
|
-
%b= _('Updated at:')
|
20
|
-
= medium_datetime @upload.updated_at
|
21
|
-
%li
|
22
|
-
= icon('font', ['fw'])
|
23
|
-
%b= _('Original name:')
|
24
|
-
= @upload.file.filename
|
25
|
-
%li
|
26
|
-
= icon('mime-type', ['fw'])
|
27
|
-
%b= _('Mime type:')
|
28
|
-
= @upload.file.content_type
|
29
|
-
|
30
9
|
%li.separator
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
10
|
+
%ul
|
11
|
+
%li
|
12
|
+
= icon('user', ['fw'])
|
13
|
+
%b= _('Author:')
|
14
|
+
= link_to @upload.user.display_name, @upload.user
|
15
|
+
%li
|
16
|
+
= icon('calendar-check', ['fw'])
|
17
|
+
%b= _('Published at:')
|
18
|
+
= medium_datetime @upload.published_at
|
19
|
+
%li
|
20
|
+
= icon('calendar', ['fw'])
|
21
|
+
%b= _('Updated at:')
|
22
|
+
= medium_datetime @upload.updated_at
|
23
|
+
%li
|
24
|
+
= icon('font', ['fw'])
|
25
|
+
%b= _('Original name:')
|
26
|
+
= @upload.file.filename
|
27
|
+
%li
|
28
|
+
= icon('mime-type', ['fw'])
|
29
|
+
%b= _('Mime type:')
|
30
|
+
= @upload.file.content_type
|
46
31
|
|
47
32
|
%li.separator
|
48
|
-
|
49
|
-
|
50
|
-
|
33
|
+
%ul
|
34
|
+
%li
|
35
|
+
= icon('info', ['fw'])
|
36
|
+
%b= _('Is SFW:')
|
37
|
+
= @upload.sfw
|
38
|
+
%li
|
39
|
+
= icon('language', ['fw'])
|
40
|
+
%b= _('Language:')
|
41
|
+
= link_to @upload.language.name, @upload.language
|
42
|
+
%li
|
43
|
+
= icon('license', ['fw'])
|
44
|
+
%b= _('License:')
|
45
|
+
= link_to @upload.license do
|
46
|
+
= license_icon @upload.license
|
47
|
+
= @upload.license.name
|
48
|
+
%li.separator
|
49
|
+
%ul
|
50
|
+
%li= render 'elabs/layouts/content_classifiers_lists/projects', projects: @upload.visible_projects
|
51
|
+
%li.separator= render 'elabs/layouts/content_classifiers_lists/albums', albums: @upload.visible_albums
|
52
|
+
%li.separator= render 'elabs/layouts/content_classifiers_lists/tags', tags: @upload.tags
|
53
|
+
%li.separator
|
54
|
+
= link_to main_app.url_for(@upload.file), class: 'btn btn--download btn--block', target: '_blank' do
|
55
|
+
= icon 'download', ['fw']
|
56
|
+
= _('Download')
|
51
57
|
|
52
58
|
.content
|
53
59
|
%article{ lang: @upload.language.iso639_1 }
|
@@ -6,13 +6,13 @@
|
|
6
6
|
- else
|
7
7
|
= icon 'user', %w[3x fw]
|
8
8
|
.headers
|
9
|
-
%h3= link_to user.display_name, user
|
9
|
+
%h3.title= link_to user.display_name, user
|
10
10
|
|
11
|
-
%ul.
|
11
|
+
%ul.information
|
12
12
|
- if user.real_name.present?
|
13
13
|
%li
|
14
14
|
%b @#{user.username}
|
15
|
-
%ul.
|
15
|
+
%ul.information
|
16
16
|
%li
|
17
17
|
%b= _('Role:')
|
18
18
|
= user.role
|
@@ -1,53 +1,58 @@
|
|
1
1
|
- @page_title = @user.display_name
|
2
2
|
.user.user--full
|
3
|
-
%aside
|
3
|
+
%aside.has-image.always--inline
|
4
|
+
- if Elabs.use_avatars && @user.avatar.attached?
|
5
|
+
= image_tag avatar_image(@user.avatar, :medium), class: 'image'
|
4
6
|
%ul
|
5
|
-
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
= short_date @user.created_at
|
7
|
+
%li.separator
|
8
|
+
%ul
|
9
|
+
%li
|
10
|
+
= icon('user', ['fw'])
|
11
|
+
%strong= _('Username:')
|
12
|
+
= @user.username
|
13
|
+
- if @user.real_name.present?
|
14
|
+
%li
|
15
|
+
= icon('user', ['fw'])
|
16
|
+
%strong= _('Real name:')
|
17
|
+
= @user.real_name
|
18
|
+
%li
|
19
|
+
= icon('calendar-check', ['fw'])
|
20
|
+
%strong= _('Since:')
|
21
|
+
= short_date @user.created_at
|
21
22
|
|
22
23
|
%li.separator
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
24
|
+
%ul
|
25
|
+
%li
|
26
|
+
= icon('amount', ['fw'])
|
27
|
+
%strong= _('Albums:')
|
28
|
+
= @user.albums_count
|
29
|
+
%li
|
30
|
+
= icon('amount', ['fw'])
|
31
|
+
%strong= _('Articles:')
|
32
|
+
= @user.articles_count
|
33
|
+
%li
|
34
|
+
= icon('amount', ['fw'])
|
35
|
+
%strong= _('Notes:')
|
36
|
+
= @user.notes_count
|
37
|
+
%li
|
38
|
+
= icon('amount', ['fw'])
|
39
|
+
%strong= _('Projects:')
|
40
|
+
= @user.projects_count
|
41
|
+
%li
|
42
|
+
= icon('amount', ['fw'])
|
43
|
+
%strong= _('Uploads:')
|
44
|
+
= @user.uploads_count
|
45
|
+
|
42
46
|
.content
|
43
47
|
- if @user.biography.present?
|
44
48
|
%article
|
45
49
|
= render_entity_content @user, :biography
|
46
50
|
|
47
|
-
= render '
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
= render 'elabs/layouts/content_associations',
|
52
|
+
is_section: true,
|
53
|
+
entity: @user,
|
54
|
+
albums: @user_albums,
|
55
|
+
articles: @user_articles,
|
56
|
+
notes: @user_notes,
|
57
|
+
projects: @user_projects,
|
58
|
+
uploads: @user_uploads
|
data/config/routes.rb
CHANGED
@@ -2,10 +2,10 @@ Elabs::Engine.routes.draw do
|
|
2
2
|
# Devise routes: use Elabs custom controllers (adds support for username and preferences)
|
3
3
|
devise_for :users, path: 'auth', controllers: {
|
4
4
|
confirmations: 'elabs/auth/confirmations',
|
5
|
-
passwords:
|
5
|
+
passwords: 'elabs/auth/passwords',
|
6
6
|
registrations: 'elabs/auth/registrations',
|
7
|
-
sessions:
|
8
|
-
unlocks:
|
7
|
+
sessions: 'elabs/auth/sessions',
|
8
|
+
unlocks: 'elabs/auth/unlocks'
|
9
9
|
}
|
10
10
|
# Resources
|
11
11
|
resources :albums, only: %i[index show], param: :slug do
|
@@ -85,6 +85,10 @@ Elabs::Engine.routes.draw do
|
|
85
85
|
|
86
86
|
resources :notifications, only: %i[index destroy]
|
87
87
|
|
88
|
+
resources :comments, only: %i[destroy] do
|
89
|
+
put '/archive', to: 'comments#archive', as: :archive
|
90
|
+
end
|
91
|
+
|
88
92
|
get '/preferences', to: 'preferences#edit', as: :edit_preferences
|
89
93
|
patch '/preferences', to: 'preferences#update', as: :update_preferences
|
90
94
|
|
@@ -114,10 +118,11 @@ Elabs::Engine.routes.draw do
|
|
114
118
|
end
|
115
119
|
|
116
120
|
# Basic resources
|
117
|
-
resources :
|
118
|
-
resources :
|
119
|
-
resources :
|
120
|
-
resources :
|
121
|
-
resources :
|
121
|
+
resources :announcements, except: %i[show]
|
122
|
+
resources :languages, except: %i[show], param: :iso639_1
|
123
|
+
resources :licenses, except: %i[show], param: :slug
|
124
|
+
resources :reports, only: %i[index destroy]
|
125
|
+
resources :tags, except: %i[create show], param: :slug
|
126
|
+
resources :users, only: %i[index show destroy], param: :username
|
122
127
|
end
|
123
128
|
end
|