diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..08f52b2da --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,8 @@ +This issue tracker is **reserved** for bug reports and feature requests. + +The place to ask a question or call for help is at Fab-manager forums at https://forum.fab-manager.com/. + +To report a bug, please describe: +- Expected behavior and actual behavior. +- Steps to reproduce the problem. +- Specifications like the version of the project, operating system, or hardware. diff --git a/app/views/api/events/index.rss.builder b/app/views/api/events/index.rss.builder new file mode 100644 index 000000000..b6dff9674 --- /dev/null +++ b/app/views/api/events/index.rss.builder @@ -0,0 +1,21 @@ +#encoding: UTF-8 + +xml.instruct! :xml, version: "1.0" +xml.rss version: "2.0" do + xml.channel do + xml.title "#{t('app.public.events_list.the_fablab_s_courses_and_workshops')} - #{Setting.find_by(name: 'fablab_name').value}" + xml.author Setting.find_by(name: 'fablab_name').value + xml.link request.base_url + "/#!/events" + xml.language I18n.locale.to_s + + @events.each do |event| + xml.item do + xml.guid event.id + xml.pubDate event.created_at.strftime("%F %T") + xml.title event.name + xml.link request.base_url + "/#!/events/" + event.id.to_s + xml.description event.description + end + end + end +end diff --git a/app/views/api/projects/index.rss.builder b/app/views/api/projects/index.rss.builder new file mode 100644 index 000000000..c9579e36b --- /dev/null +++ b/app/views/api/projects/index.rss.builder @@ -0,0 +1,23 @@ +#encoding: UTF-8 + +xml.instruct! :xml, version: "1.0" +xml.rss version: "2.0" do + xml.channel do + xml.title "#{t('app.public.projects_list.the_fablab_projects')} - #{Setting.find_by(name: 'fablab_name').value}" + xml.description t('app.public.projects_list.all_projects') + xml.author Setting.find_by(name: 'fablab_name').value + xml.link request.base_url + "/#!/projects" + xml.language I18n.locale.to_s + + @projects.each do |project| + xml.item do + xml.guid project.id + xml.pubDate project.created_at.strftime("%F %T") + xml.title project.name + xml.link request.base_url + "/#!/projects/" + project.slug + xml.author project.author.first_name + xml.description project.description + end + end + end +end