Commits on Source 28
-
archive creation requires the same permissions as group destruction. users can either create an archive directly or issue a request. archives contain pages owned by a group and all committees. they include - a table of contents - wiki pages as HTML with linked attachments and discussions, - discussion pages - gallery pages - assets from asset pages archives come in two flavours: - a single page per group for all content - one file per page archives can be downloaded by all members who see the settings (group admins) councils can be exported from the council settings page and are only accessible for council members archives are created asynchronously via rake jobs:work Not working yet: links to pages with id suffix
-
azul authored
[Rendering views outside of controllers in Rails 5](https://blog.bigbinary.com/2016/01/08/rendering-views-outside-of-controllers-in-rails-5.html)
-
azul authored
We will probably also want to use greencloth rendering with custom link renderers to generate the wiki html for archives.
-
azul authored
The resulting archive should be independent of the user who created it. So let's not hand the user to the generators.
-
azul authored
Currently this is the single page generator. However we will combine the two into one that creates one archive including both multi page and singlepage format.
-
azul authored
This also allows us to speed up the tests by using RackTest.
-
azul authored
Showing
- Gemfile 0 additions, 4 deletionsGemfile
- Gemfile.lock 0 additions, 3 deletionsGemfile.lock
- app/assets/stylesheets/archive.css 66 additions, 0 deletionsapp/assets/stylesheets/archive.css
- app/controllers/group/archive_controller.rb 30 additions, 0 deletionsapp/controllers/group/archive_controller.rb
- app/controllers/group/requests_controller.rb 2 additions, 1 deletionapp/controllers/group/requests_controller.rb
- app/helpers/group/links_helper.rb 41 additions, 0 deletionsapp/helpers/group/links_helper.rb
- app/jobs/group_archive_job.rb 16 additions, 0 deletionsapp/jobs/group_archive_job.rb
- app/models/group.rb 13 additions, 0 deletionsapp/models/group.rb
- app/models/group/archive.rb 97 additions, 0 deletionsapp/models/group/archive.rb
- app/models/group/archive/path.rb 52 additions, 0 deletionsapp/models/group/archive/path.rb
- app/models/group/pages.rb 4 additions, 0 deletionsapp/models/group/pages.rb
- app/models/notice/group_archived_notice.rb 27 additions, 0 deletionsapp/models/notice/group_archived_notice.rb
- app/models/page.rb 7 additions, 0 deletionsapp/models/page.rb
- app/models/requests/request_to_create_group_archive.rb 68 additions, 0 deletionsapp/models/requests/request_to_create_group_archive.rb
- app/models/tracking/action.rb 1 addition, 1 deletionapp/models/tracking/action.rb
- app/models/wiki.rb 4 additions, 0 deletionsapp/models/wiki.rb
- app/policies/group_policy.rb 6 additions, 0 deletionsapp/policies/group_policy.rb
- app/stylesheets/ui/_forms.scss 3 additions, 0 deletionsapp/stylesheets/ui/_forms.scss
- app/views/group/archive/_page.html.haml 31 additions, 0 deletionsapp/views/group/archive/_page.html.haml
- app/views/group/archive/indexpage.html.haml 37 additions, 0 deletionsapp/views/group/archive/indexpage.html.haml
... | @@ -152,10 +152,6 @@ gem 'daemons' | ... | @@ -152,10 +152,6 @@ gem 'daemons' |
# unpack file uploads | # unpack file uploads | ||
gem 'rubyzip', '~> 1.2.2', require: false | gem 'rubyzip', '~> 1.2.2', require: false | ||
# load new rubyzip, but with the old API. | |||
# TODO: use the new zip api and remove gem zip-zip | |||
gem 'zip-zip', require: 'zip' | |||
# gnupg for email encryption | # gnupg for email encryption | ||
# | # | ||
gem 'mail-gpg', '~> 0.3.3' | gem 'mail-gpg', '~> 0.3.3' | ||
... | ... |
app/assets/stylesheets/archive.css
0 → 100644
app/controllers/group/archive_controller.rb
0 → 100644
app/jobs/group_archive_job.rb
0 → 100644
app/models/group/archive.rb
0 → 100644
app/models/group/archive/path.rb
0 → 100644
app/models/notice/group_archived_notice.rb
0 → 100644
app/views/group/archive/_page.html.haml
0 → 100644
app/views/group/archive/indexpage.html.haml
0 → 100644