Improved overview.

This commit is contained in:
Martin Edenhofer 2015-09-22 22:28:31 +02:00
parent dd444f63e0
commit 904e407e96

View file

@ -20,8 +20,15 @@
<div class="action-flow action-flow--row">
<div class="action-row">
<div class="action-flow action-flow--noWrap">
<h2><span title="Last iCal Feed sync at: <%= calendar.last_sync %>: <%= calendar.last_log %>"><%- @Icon('status', 'ok inline') %></span> <%= calendar.name %></h2>
<h2><% if !_.isEmpty(calendar.ical_url): %><span title="<%- @T('Last sync at') %>: <%= @Ttimestamp(calendar.last_sync) %><% if calendar.last_log: %>: <%= calendar.last_log %><% end %>">
<% if calendar.last_log: %>
<%- @Icon('status', 'error inline') %>
<% else: %>
<%- @Icon('status', 'ok inline') %>
<% end %></span><% end %> <%= calendar.name %></h2>
<% if calendar.default: %>
<div class="action-label">Default</div>
<% end %>
</div>
</div>
<div class="action-row">
@ -54,7 +61,7 @@
</table>
</div>
<div class="action-block action-block--flex">
<div class="label"><%- @T('Public Holidays') %></div>
<div class="label"><%- @T('Holidays') %></div>
<table class="table table-fluid">
<% if _.isEmpty(calendar.public_holidays_preview): %>-<% end %>
<% for holiday, meta of calendar.public_holidays_preview: %>
@ -69,7 +76,6 @@
<div class="sla-toggle btn btn--secondary js-default"><%- @T('Set as Default') %></div>
<% else: %>
<div class="btn btn--danger btn--secondary is-disabled"><%- @T('Delete') %></div>
<div class="btn btn--secondary is-disabled"><%- @T('Is Default') %></div>
<% end %>
<div class="sla-edit btn js-edit"><%- @T('Edit') %></div>
</div>