entry modification indication

pull/8/head
Antelle 2015-10-25 12:26:59 +03:00
parent 0f77eca492
commit 6044776d9d
3 changed files with 9 additions and 1 deletions

View File

@ -27,7 +27,7 @@ var FooterView = Backbone.View.extend({
KeyHandler.onKey(Keys.DOM_VK_S, this.saveAll, this, KeyHandler.SHORTCUT_ACTION);
KeyHandler.onKey(Keys.DOM_VK_COMMA, this.toggleSettings, this, KeyHandler.SHORTCUT_ACTION);
this.listenTo(this.model.files, 'update reset', this.render);
this.listenTo(this.model.files, 'update reset change', this.render);
},
render: function () {

View File

@ -21,6 +21,13 @@
&--expanded {
@include flex(1);
}
&-mod-sign {
font-size: 6px;
vertical-align: top;
margin-left: $base-padding-h;
@include th { color: action-color(); }
}
}
&__btn {

View File

@ -2,6 +2,7 @@
<% files.forEach(function(file) { %>
<div class="footer__db footer__db-item <%= file.get('open') ? '' : 'footer__db--dimmed' %>" data-file-id="<%= file.cid %>">
<i class="fa fa-<%= file.get('open') ? 'unlock' : 'lock' %>"></i> <%- file.get('name') %>
<% if (file.get('modified')) { %><i class="fa fa-circle footer__db-mod-sign"></i><% } %>
</div>
<% }); %>
<div class="footer__db footer__db--dimmed footer__db--expanded footer__db-open"><i class="fa fa-plus"></i> Open / New</div>