aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorcedricnjanga2018-01-31 09:00:34 -0800
committercedricnjanga2018-01-31 09:00:53 -0800
commitf32ffd5b740583777634d0b58e3d50aa9d2414a3 (patch)
tree59ed9c258af84d5fbb3d24cad5680ac5bd8ae5f1 /app/helpers
parent2ce236aea91bbe35a6b03353b4c5c7f33ded8eac (diff)
downloadchouette-core-f32ffd5b740583777634d0b58e3d50aa9d2414a3.tar.bz2
Fix calendar mailer url
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/table_builder_helper.rb11
-rw-r--r--app/helpers/table_builder_helper/url.rb8
2 files changed, 1 insertions, 18 deletions
diff --git a/app/helpers/table_builder_helper.rb b/app/helpers/table_builder_helper.rb
index 245843eab..f48075ed9 100644
--- a/app/helpers/table_builder_helper.rb
+++ b/app/helpers/table_builder_helper.rb
@@ -316,7 +316,6 @@ module TableBuilderHelper
content_tag :span, '', class: 'fa fa-cog'
end
-<<<<<<< HEAD
action_links = item.action_links
if action_links.is_a?(AF83::Decorator::ActionLinks)
menu = content_tag :div, class: 'dropdown-menu' do
@@ -337,15 +336,6 @@ module TableBuilderHelper
gear_menu_link(link)
end.join.html_safe
end
-=======
- menu = content_tag :ul, class: 'dropdown-menu' do
- (
- CustomLinks.new(item, pundit_user, links, referential, workgroup).links +
- item.action_links.select { |link| link.is_a?(Link) }
- ).map do |link|
- gear_menu_link(link)
- end.join.html_safe
->>>>>>> First draft for including calendars into workgroup for having appropriate scoping
end
content_tag :div, trigger + menu, class: 'btn-group'
@@ -405,6 +395,7 @@ module TableBuilderHelper
klass << link.extra_class if link.extra_class
klass << 'delete-action' if link.method == :delete
klass << 'disabled' if link.disabled
+
content_tag(
:li,
link_to(
diff --git a/app/helpers/table_builder_helper/url.rb b/app/helpers/table_builder_helper/url.rb
index 63a559162..0e3dce0aa 100644
--- a/app/helpers/table_builder_helper/url.rb
+++ b/app/helpers/table_builder_helper/url.rb
@@ -20,15 +20,7 @@ module TableBuilderHelper
end
end
else
-<<<<<<< HEAD
-<<<<<<< HEAD
polymorph_url << item.workgroup if item.respond_to? :workgroup
-=======
- polymorph_url << item.workgroup if item.is_a?(Calendar)
->>>>>>> First draft for including calendars into workgroup for having appropriate scoping
-=======
- polymorph_url << item.workgroup if item.respond_to? :workgroup
->>>>>>> update calendar build_links for table builder
polymorph_url << item
end