decidim-posts 1.0.0 → 2.0.0

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.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +60 -5
  3. data/app/cells/decidim/posts/content_blocks/posts/show.erb +41 -3
  4. data/app/cells/decidim/posts/content_blocks/posts_cell.rb +6 -7
  5. data/app/cells/decidim/posts/meeting/show.erb +2 -2
  6. data/app/cells/decidim/posts/meeting_cell.rb +5 -1
  7. data/app/cells/decidim/posts/post/show.erb +2 -2
  8. data/app/cells/decidim/posts/post/survey.erb +6 -6
  9. data/app/cells/decidim/posts/post_attachments/show.erb +1 -1
  10. data/app/cells/decidim/posts/post_cell.rb +0 -1
  11. data/app/cells/decidim/posts/post_comment/show.erb +1 -1
  12. data/app/cells/decidim/posts/post_header/show.erb +4 -4
  13. data/app/cells/decidim/posts/post_host/show.erb +2 -2
  14. data/app/cells/decidim/posts/post_metadata_cell.rb +2 -0
  15. data/app/cells/decidim/posts/reaction_menu/show.erb +1 -1
  16. data/app/controllers/decidim/posts/meetings_controller.rb +28 -12
  17. data/app/helpers/decidim/posts/application_helper.rb +20 -0
  18. data/app/packs/src/decidim/posts/host_status.js +13 -9
  19. data/app/packs/src/decidim/posts/posts.js +38 -1
  20. data/app/packs/stylesheets/decidim/posts/_variables.scss +19 -8
  21. data/app/packs/stylesheets/decidim/posts/posts.scss +219 -164
  22. data/app/views/decidim/posts/meetings/edit.html.erb +15 -14
  23. data/app/views/decidim/posts/meetings/new.html.erb +27 -0
  24. data/app/views/decidim/posts/posts/_attachment.html.erb +1 -1
  25. data/app/views/decidim/posts/posts/_form.html.erb +24 -24
  26. data/app/views/decidim/posts/posts/_index.html.erb +9 -9
  27. data/app/views/decidim/posts/posts/_meeting_form.erb +1 -1
  28. data/app/views/decidim/posts/posts/_new_survey.html.erb +1 -1
  29. data/app/views/decidim/posts/posts/_new_survey_question.html.erb +1 -1
  30. data/app/views/decidim/posts/posts/_post.html.erb +1 -1
  31. data/app/views/decidim/posts/posts/_sidebar.html.erb +19 -19
  32. data/app/views/decidim/posts/posts/edit.html.erb +7 -6
  33. data/app/views/decidim/posts/posts/index.html.erb +1 -1
  34. data/config/assets.rb +1 -1
  35. data/config/locales/bs.yml +11 -3
  36. data/config/locales/de.yml +11 -3
  37. data/config/locales/en.yml +11 -3
  38. data/config/locales/hr.yml +11 -3
  39. data/config/locales/it.yml +11 -3
  40. data/config/locales/sr.yml +11 -4
  41. data/config/locales/tr.yml +11 -3
  42. data/lib/decidim/posts/component.rb +4 -0
  43. data/lib/decidim/posts/content_blocks/content_blocks_homepage.rb +16 -12
  44. data/lib/decidim/posts/version.rb +2 -2
  45. metadata +5 -5
  46. data/app/views/decidim/posts/posts/_new.html.erb +0 -33
@@ -1,33 +0,0 @@
1
- <form id="newElementForm">
2
- <label for="body" class="sr-only"><%= t("decidim.components.posts.newFeed.text") %></label>
3
- <textarea id="body" name="body" rows="4" aria-required="true" class="posts__post_newElement_Body"></textarea>
4
- <fieldset>
5
- <legend class="sr-only"><%= t("decidim.components.posts.newFeed.category") %></legend>
6
- <div class="postType">
7
- <input type="radio" id="post" name="category" value="post" class="sr-only" checked>
8
- <label for="post" class="button button__sm button__transparent-primary"><%= t("decidim.components.posts.filter.post") %></label>
9
- <input type="radio" id="sharecare" name="category" value="sharecare" class="sr-only">
10
- <label for="sharecare" class="button button__sm button__transparent-primary"><%= t("decidim.components.posts.filter.sharecare") %></label>
11
- <input type="radio" id="host" name="category" value="host" class="sr-only">
12
- <label for="host" class="button button__sm button__transparent-primary"><%= t("decidim.components.posts.filter.host") %></label>
13
- <input type="radio" id="calendar" name="category" value="calendar" class="sr-only" aria-controls="extraFieldsForCalendar" aria-expanded="false">
14
- <label for="calendar" class="button button__sm button__transparent-primary"><%= t("decidim.components.posts.filter.calendar") %></label>
15
- <input type="radio" id="survey" name="category" value="survey" class="sr-only" aria-controls="extraFieldsForSurvey" aria-expanded="false">
16
- <label for="survey" class="button button__sm button__transparent-primary"><%= t("decidim.components.posts.filter.survey") %></label>
17
- </div>
18
- </fieldset>
19
-
20
- <div id="extraFieldsForCalendar" class="posts__post_newElement_Xtra posts__post_newCalender">
21
- <%= render partial: 'decidim/posts/posts/new_calendar.html' %>
22
- </div>
23
- <div id="extraFieldsForSurvey" class="posts__post_newElement_Xtra posts__post_newSurvey">
24
- <%= render partial: 'decidim/posts/posts/new_survey.html' %>
25
- </div>
26
-
27
- <%= render partial: 'decidim/posts/posts/attachment.html' %>
28
-
29
- <button class="sndBtn button button__sm button__transparent-primary" type="submit">
30
- <%= t("decidim.components.posts.newFeed.action") %>
31
- <%= icon "send-plane-line" %>
32
- </button>
33
- </form>