From 25b5b1f33cd4bf0ee647030a8f3bb3cfdd8a82fe Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Thu, 17 Sep 2015 14:24:47 +0200 Subject: [PATCH] calendar: adjust list for long calendar names --- .../app/views/calendar/index.jst.eco | 77 +++++++++---------- 1 file changed, 37 insertions(+), 40 deletions(-) diff --git a/app/assets/javascripts/app/views/calendar/index.jst.eco b/app/assets/javascripts/app/views/calendar/index.jst.eco index 04aa75991..0a8fb0c70 100644 --- a/app/assets/javascripts/app/views/calendar/index.jst.eco +++ b/app/assets/javascripts/app/views/calendar/index.jst.eco @@ -18,48 +18,45 @@ <% for calendar in @calendars: %>
-
+

<%- @Icon('status', 'ok inline') %> <%= calendar.name %>

-
-
-
-
<%- @T('Timezone') %>
<%= calendar.timezone %> -
-
-
<%- @T('Business Hours') %>
- - - - - - - - - - - - - - - - - - - - - - -
<%- @T('Monday') %><% if _.isEmpty(calendar.business_hours['mon']): %>-<% else: %><% for from, till of calendar.business_hours['mon']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Tuesday') %><% if _.isEmpty(calendar.business_hours['tue']): %>-<% else: %><% for from, till of calendar.business_hours['tue']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Wednesday') %><% if _.isEmpty(calendar.business_hours['wed']): %>-<% else: %><% for from, till of calendar.business_hours['wed']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Thursday') %><% if _.isEmpty(calendar.business_hours['thu']): %>-<% else: %><% for from, till of calendar.business_hours['thu']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Friday') %><% if _.isEmpty(calendar.business_hours['fri']): %>-<% else: %><% for from, till of calendar.business_hours['fri']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Saturday') %><% if _.isEmpty(calendar.business_hours['sat']): %>-<% else: %><% for from, till of calendar.business_hours['sat']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Sunday') %><% if _.isEmpty(calendar.business_hours['sun']): %>-<% else: %><% for from, till of calendar.business_hours['sun']: %><%= from %>-<%= till %> <% end %><% end %>
-
-
-
<%- @T('Public Holidays') %>
- - <% for holiday, meta of calendar.public_holidays_preview: %> - class="is-inactive"<% end %>> - <% end %> -
<%- @Tdate(holiday) %><%= meta.summary %>
-
+
+
<%- @T('Timezone') %>
<%= calendar.timezone %> +
+
+
<%- @T('Business Hours') %>
+ + + + + + + + + + + + + + + + + + + + + + +
<%- @T('Monday') %><% if _.isEmpty(calendar.business_hours['mon']): %>-<% else: %><% for from, till of calendar.business_hours['mon']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Tuesday') %><% if _.isEmpty(calendar.business_hours['tue']): %>-<% else: %><% for from, till of calendar.business_hours['tue']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Wednesday') %><% if _.isEmpty(calendar.business_hours['wed']): %>-<% else: %><% for from, till of calendar.business_hours['wed']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Thursday') %><% if _.isEmpty(calendar.business_hours['thu']): %>-<% else: %><% for from, till of calendar.business_hours['thu']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Friday') %><% if _.isEmpty(calendar.business_hours['fri']): %>-<% else: %><% for from, till of calendar.business_hours['fri']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Saturday') %><% if _.isEmpty(calendar.business_hours['sat']): %>-<% else: %><% for from, till of calendar.business_hours['sat']: %><%= from %>-<%= till %> <% end %><% end %>
<%- @T('Sunday') %><% if _.isEmpty(calendar.business_hours['sun']): %>-<% else: %><% for from, till of calendar.business_hours['sun']: %><%= from %>-<%= till %> <% end %><% end %>
+
+
+
<%- @T('Public Holidays') %>
+ + <% for holiday, meta of calendar.public_holidays_preview: %> + class="is-inactive"<% end %>> + <% end %> +
<%- @Tdate(holiday) %><%= meta.summary %>