diff options
| author | Alex Yatskov <alex@foosoft.net> | 2016-12-21 18:56:03 -0800 | 
|---|---|---|
| committer | Alex Yatskov <alex@foosoft.net> | 2016-12-21 18:56:03 -0800 | 
| commit | e973788f7d245fcbcbc85783e4cf67c2e8670b4e (patch) | |
| tree | fa0850303a0fd767cb978f31a9c9bd73db3908b2 | |
| parent | b6cf6af7bbd0d65aee40ac22115e482954e2edf8 (diff) | |
Remove dictionary delete button
| -rw-r--r-- | ext/bg/js/templates.js | 8 | ||||
| -rw-r--r-- | tmpl/dictionary.html | 18 | 
2 files changed, 16 insertions, 10 deletions
| diff --git a/ext/bg/js/templates.js b/ext/bg/js/templates.js index 94dfd4ee..b46d8813 100644 --- a/ext/bg/js/templates.js +++ b/ext/bg/js/templates.js @@ -9,11 +9,15 @@ templates['dictionary.html'] = template({"1":function(container,depth0,helpers,p    return "<div class=\"dict-group well well-sm\" data-title=\""      + alias4(((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"title","hash":{},"data":data}) : helper))) -    + "\">\n    <div class=\"row\">\n        <div class=\"col-xs-8\">\n            <h4><span class=\"text-muted glyphicon glyphicon-book\"></span> " +    + "\">\n    <h4><span class=\"text-muted glyphicon glyphicon-book\"></span> "      + alias4(((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"title","hash":{},"data":data}) : helper)))      + " <small>v."      + alias4(((helper = (helper = helpers.version || (depth0 != null ? depth0.version : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"version","hash":{},"data":data}) : helper))) -    + "</small></h4>\n        </div>\n        <div class=\"col-xs-4 text-right disabled\">\n            <button type=\"button\" class=\"dict-group-controls dict-delete btn btn-danger\">Delete</button>\n        </div>\n    </div>\n\n    <div class=\"dict-delete-progress\">\n        Dictionary data is being deleted, please be patient...\n        <div class=\"progress\">\n            <div class=\"progress-bar progress-bar-striped progress-bar-danger\" style=\"width: 0%\"></div>\n        </div>\n    </div>\n\n    <div class=\"checkbox dict-group-controls " +    + "</small></h4>\n\n    <!-- <div class=\"row\"> -->\n    <!--     <div class=\"col-xs-8\"> -->\n    <!--         <h4><span class=\"text-muted glyphicon glyphicon-book\"></span> " +    + alias4(((helper = (helper = helpers.title || (depth0 != null ? depth0.title : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"title","hash":{},"data":data}) : helper))) +    + " <small>v." +    + alias4(((helper = (helper = helpers.version || (depth0 != null ? depth0.version : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"version","hash":{},"data":data}) : helper))) +    + "</small></h4> -->\n    <!--     </div> -->\n    <!--     <div class=\"col-xs-4 text-right disabled\"> -->\n    <!--         <button type=\"button\" class=\"dict-group-controls dict-delete btn btn-danger\">Delete</button> -->\n    <!--     </div> -->\n    <!-- </div> -->\n\n    <div class=\"dict-delete-progress\">\n        Dictionary data is being deleted, please be patient...\n        <div class=\"progress\">\n            <div class=\"progress-bar progress-bar-striped progress-bar-danger\" style=\"width: 0%\"></div>\n        </div>\n    </div>\n\n    <div class=\"checkbox dict-group-controls "      + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.hasTerms : depth0),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")      + "\">\n        <label><input type=\"checkbox\" class=\"dict-enable-terms\" "      + ((stack1 = helpers.unless.call(alias1,(depth0 != null ? depth0.hasTerms : depth0),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "") diff --git a/tmpl/dictionary.html b/tmpl/dictionary.html index 824dc2cf..af0a6d28 100644 --- a/tmpl/dictionary.html +++ b/tmpl/dictionary.html @@ -1,12 +1,14 @@  <div class="dict-group well well-sm" data-title="{{title}}"> -    <div class="row"> -        <div class="col-xs-8"> -            <h4><span class="text-muted glyphicon glyphicon-book"></span> {{title}} <small>v.{{version}}</small></h4> -        </div> -        <div class="col-xs-4 text-right disabled"> -            <button type="button" class="dict-group-controls dict-delete btn btn-danger">Delete</button> -        </div> -    </div> +    <h4><span class="text-muted glyphicon glyphicon-book"></span> {{title}} <small>v.{{version}}</small></h4> + +    <!-- <div class="row"> --> +    <!--     <div class="col-xs-8"> --> +    <!--         <h4><span class="text-muted glyphicon glyphicon-book"></span> {{title}} <small>v.{{version}}</small></h4> --> +    <!--     </div> --> +    <!--     <div class="col-xs-4 text-right disabled"> --> +    <!--         <button type="button" class="dict-group-controls dict-delete btn btn-danger">Delete</button> --> +    <!--     </div> --> +    <!-- </div> -->      <div class="dict-delete-progress">          Dictionary data is being deleted, please be patient... |