Improved overview.
This commit is contained in:
parent
dd444f63e0
commit
904e407e96
1 changed files with 10 additions and 4 deletions
|
@ -20,8 +20,15 @@
|
||||||
<div class="action-flow action-flow--row">
|
<div class="action-flow action-flow--row">
|
||||||
<div class="action-row">
|
<div class="action-row">
|
||||||
<div class="action-flow action-flow--noWrap">
|
<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>
|
<div class="action-label">Default</div>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-row">
|
<div class="action-row">
|
||||||
|
@ -54,7 +61,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-block action-block--flex">
|
<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">
|
<table class="table table-fluid">
|
||||||
<% if _.isEmpty(calendar.public_holidays_preview): %>-<% end %>
|
<% if _.isEmpty(calendar.public_holidays_preview): %>-<% end %>
|
||||||
<% for holiday, meta of calendar.public_holidays_preview: %>
|
<% 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>
|
<div class="sla-toggle btn btn--secondary js-default"><%- @T('Set as Default') %></div>
|
||||||
<% else: %>
|
<% else: %>
|
||||||
<div class="btn btn--danger btn--secondary is-disabled"><%- @T('Delete') %></div>
|
<div class="btn btn--danger btn--secondary is-disabled"><%- @T('Delete') %></div>
|
||||||
<div class="btn btn--secondary is-disabled"><%- @T('Is Default') %></div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="sla-edit btn js-edit"><%- @T('Edit') %></div>
|
<div class="sla-edit btn js-edit"><%- @T('Edit') %></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue