From b7c3403e0e73d50841be2ecb673e64cca9ec1005 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 29 Jun 2015 10:59:25 +0200 Subject: [PATCH] Added shorter/ical routes and made them defaults. --- .../app/views/profile/calendar_subscriptions.jst.eco | 4 ++-- config/routes/calendar_subscriptions.rb | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/views/profile/calendar_subscriptions.jst.eco b/app/assets/javascripts/app/views/profile/calendar_subscriptions.jst.eco index 9c2b2daa3..bc63f36d0 100644 --- a/app/assets/javascripts/app/views/profile/calendar_subscriptions.jst.eco +++ b/app/assets/javascripts/app/views/profile/calendar_subscriptions.jst.eco @@ -8,7 +8,7 @@

<%= @T('See your tickets from within your favorite calendar by adding the following url to your calendar app.') %>

<%= @T('URL') %>

- +

<%= @T('Subscription Settings') %>

@@ -25,7 +25,7 @@ <% end %> diff --git a/config/routes/calendar_subscriptions.rb b/config/routes/calendar_subscriptions.rb index ef609e982..204d0da0e 100644 --- a/config/routes/calendar_subscriptions.rb +++ b/config/routes/calendar_subscriptions.rb @@ -1,5 +1,11 @@ Zammad::Application.routes.draw do + # shorter version + match '/ical', to: 'calendar_subscriptions#all', via: :get + match '/ical/:object', to: 'calendar_subscriptions#object', via: :get + match '/ical/:object/:method', to: 'calendar_subscriptions#object', via: :get + + # wording version match '/calendar_subscriptions', to: 'calendar_subscriptions#all', via: :get match '/calendar_subscriptions/:object', to: 'calendar_subscriptions#object', via: :get match '/calendar_subscriptions/:object/:method', to: 'calendar_subscriptions#object', via: :get
<%= @translationTable[stateType] %> - +