aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorcedricnjanga2018-01-30 23:07:07 -0800
committercedricnjanga2018-01-31 07:21:15 -0800
commit2ce236aea91bbe35a6b03353b4c5c7f33ded8eac (patch)
treed92a5733782187b3acf859260bb5a00940abb55f /app
parentdd61691343892d502842341bc94ca8b355a716cc (diff)
downloadchouette-core-2ce236aea91bbe35a6b03353b4c5c7f33ded8eac.tar.bz2
Make some changes to avoid unnacessaty lines of code
Diffstat (limited to 'app')
-rw-r--r--app/controllers/calendars_controller.rb3
-rw-r--r--app/views/calendars/index.html.slim10
2 files changed, 11 insertions, 2 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index 61a62c285..eaff3b0c6 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -1,5 +1,4 @@
class CalendarsController < ChouetteController
- include WorkgroupSupport
include PolicyChecker
defaults resource_class: Calendar
before_action :ransack_contains_date, only: [:index]
@@ -96,4 +95,4 @@ class CalendarsController < ChouetteController
scope
end
-end
+end \ No newline at end of file
diff --git a/app/views/calendars/index.html.slim b/app/views/calendars/index.html.slim
index f7192bc01..04ae8c758 100644
--- a/app/views/calendars/index.html.slim
+++ b/app/views/calendars/index.html.slim
@@ -1,6 +1,9 @@
<<<<<<< HEAD
+<<<<<<< HEAD
- breadcrumb :calendars, workgroup
=======
+=======
+>>>>>>> Make some changes to avoid unnacessaty lines of code
<<<<<<< HEAD
- breadcrumb :calendars
<<<<<<< HEAD
@@ -12,7 +15,14 @@
- content_for :page_header_actions do
- if policy(Calendar).create?
= link_to(t('actions.add'), new_workgroup_calendar_path(current_workgroup), class: 'btn btn-default')
+<<<<<<< HEAD
+=======
+>>>>>>> First draft for including calendars into workgroup for having appropriate scoping
+=======
+- breadcrumb :calendars, workgroup
+>>>>>>> Make some changes to avoid unnacessaty lines of code
+>>>>>>> Make some changes to avoid unnacessaty lines of code
.page_content
.container-fluid