mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Closes #101: Allow export buttons for read-only documents
This commit is contained in:
parent
575ad75a0a
commit
e631aa0e8a
@ -12,8 +12,8 @@
|
||||
</div>
|
||||
|
||||
<div ng-show="document">
|
||||
<div class="pull-right" ng-show="document.writable">
|
||||
<div class="btn-group dropdown" dropdown>
|
||||
<div class="pull-right">
|
||||
<div class="dropdown btn-export" dropdown ng-class="{ 'btn-group': document.writable }">
|
||||
<button class="btn btn-default" dropdown-toggle>
|
||||
<span class="glyphicon glyphicon-export"></span>
|
||||
Export
|
||||
@ -33,8 +33,8 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<button class="btn btn-danger" ng-click="deleteDocument(document)"><span class="glyphicon glyphicon-trash"></span> Delete</button>
|
||||
<a href="#/document/edit/{{ document.id }}" class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Edit</a>
|
||||
<button class="btn btn-danger" ng-show="document.writable" ng-click="deleteDocument(document)"><span class="glyphicon glyphicon-trash"></span> Delete</button>
|
||||
<a href="#/document/edit/{{ document.id }}" ng-show="document.writable" class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-md-10">
|
||||
<div class="text-right">
|
||||
<div class="btn-group dropdown" dropdown>
|
||||
<div class="pull-right">
|
||||
<div class="dropdown" dropdown>
|
||||
<button class="btn btn-default" dropdown-toggle>
|
||||
<span class="glyphicon glyphicon-export"></span>
|
||||
Export
|
||||
|
@ -254,6 +254,13 @@ input[readonly].share-link {
|
||||
}
|
||||
}
|
||||
|
||||
// Export dropdown
|
||||
.btn-export {
|
||||
.dropdown-menu {
|
||||
left: -62px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Styling for the ngProgress itself */
|
||||
#ngProgress {
|
||||
margin: 0;
|
||||
|
Loading…
Reference in New Issue
Block a user